Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 192 kB / 16.13 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002003/0.002003, allocations: 274.7 kB / 290.2 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9637/0.9637, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 96.3 kB / 0.5945 GB, free: 28.46 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1803, allocations: 86.99 MB / 0.6794 GB, free: 1.16 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02748/0.2078, allocations: 29.16 MB / 0.7079 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009981/0.2178, allocations: 6.89 MB / 0.7146 GB, free: 13 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.2192, allocations: 51.56 kB / 0.7147 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001584/0.2208, allocations: 0.5988 MB / 0.7153 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00346/0.2243, allocations: 1.342 MB / 0.7166 GB, free: 11 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002668/0.2269, allocations: 1.047 MB / 0.7176 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003756/0.2307, allocations: 3.226 MB / 0.7208 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00123/0.232, allocations: 0.7239 MB / 0.7215 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.2338, allocations: 0.9373 MB / 0.7224 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.235, allocations: 0.8324 MB / 0.7232 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.2351, allocations: 44 kB / 0.7232 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.2372, allocations: 0.7638 MB / 0.724 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003234/0.2375, allocations: 262.9 kB / 0.7242 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006273/0.2381, allocations: 0.5319 MB / 0.7248 GB, free: 2.605 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002279/0.2404, allocations: 1.561 MB / 0.7263 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2404, allocations: 0 / 0.7263 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of FrontEnd: time 8.82e-07/0.2405, allocations: 0 / 0.7263 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.396e-05/0.2405, allocations: 0 / 0.7263 GB, free: 1.039 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002974/0.2435, allocations: 1.574 MB / 0.7278 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.2435, allocations: 12.03 kB / 0.7278 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003558/0.2471, allocations: 0.5845 MB / 0.7284 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.2485, allocations: 0.8134 MB / 0.7292 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.126e-05/0.2486, allocations: 62.31 kB / 0.7293 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.2487, allocations: 71.94 kB / 0.7293 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/0.2511, allocations: 1.099 MB / 0.7304 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.2512, allocations: 7.938 kB / 0.7304 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.382e-05/0.2512, allocations: 28 kB / 0.7304 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.2513, allocations: 16 kB / 0.7304 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003052/0.2543, allocations: 1 MB / 0.7314 GB, free: 11.59 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005874/0.2602, allocations: 4.959 MB / 0.7363 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/0.2631, allocations: 0.8957 MB / 0.7371 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.2646, allocations: 489.3 kB / 0.7376 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001562/0.2661, allocations: 1.595 MB / 0.7392 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001639/0.2678, allocations: 0.5689 MB / 0.7397 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 3.106e-06/0.2678, allocations: 0 / 0.7397 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.004615/0.2724, allocations: 1.485 MB / 0.7412 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.2725, allocations: 59.97 kB / 0.7412 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.274, allocations: 1.108 MB / 0.7423 GB, free: 15.75 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.041e-05/0.2741, allocations: 45.7 kB / 0.7424 GB, free: 15.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004257/0.2745, allocations: 0.5473 MB / 0.7429 GB, free: 15.14 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.2747, allocations: 205.1 kB / 0.7431 GB, free: 14.94 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/0.2749, allocations: 166.4 kB / 0.7432 GB, free: 14.77 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.2751, allocations: 338 kB / 0.7436 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.2765, allocations: 453.6 kB / 0.744 GB, free: 13.99 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.2781, allocations: 0.7127 MB / 0.7447 GB, free: 13.16 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002863/0.281, allocations: 1.12 MB / 0.7458 GB, free: 11.94 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.281, allocations: 7.938 kB / 0.7458 GB, free: 11.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00352/0.2845, allocations: 1.271 MB / 0.747 GB, free: 10.65 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.2846, allocations: 16 kB / 0.747 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.2846, allocations: 4 kB / 0.7471 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.765e-05/0.2846, allocations: 12 kB / 0.7471 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.2858, allocations: 271.6 kB / 0.7473 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.2858, allocations: 15.94 kB / 0.7473 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.287, allocations: 195 kB / 0.7475 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.2872, allocations: 47.97 kB / 0.7476 GB, free: 10.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005035/0.2877, allocations: 296.3 kB / 0.7479 GB, free: 9.801 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.2879, allocations: 122.4 kB / 0.748 GB, free: 9.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003645/0.2915, allocations: 1.359 MB / 0.7493 GB, free: 8.324 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/0.2915, allocations: 11.98 kB / 0.7493 GB, free: 8.312 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.2916, allocations: 4 kB / 0.7493 GB, free: 8.309 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2916, allocations: 3.984 kB / 0.7493 GB, free: 8.305 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00485/0.2964, allocations: 2.374 MB / 0.7516 GB, free: 5.855 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.2964, allocations: 3.984 kB / 0.7516 GB, free: 5.852 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009862/0.2974, allocations: 191.9 kB / 0.7518 GB, free: 5.664 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.2975, allocations: 4 kB / 0.7518 GB, free: 5.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-05/0.2975, allocations: 23.97 kB / 0.7518 GB, free: 5.637 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.2975, allocations: 4 kB / 0.7519 GB, free: 5.633 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2975, allocations: 4 kB / 0.7519 GB, free: 5.629 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004846/0.3024, allocations: 1.977 MB / 0.7538 GB, free: 3.617 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004276/0.3028, allocations: 271.4 kB / 0.754 GB, free: 3.332 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.303, allocations: 19.98 kB / 0.7541 GB, free: 3.312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009368/0.3039, allocations: 119.9 kB / 0.7542 GB, free: 3.195 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.304, allocations: 48.44 kB / 0.7542 GB, free: 3.148 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.386e-05/0.3041, allocations: 31.97 kB / 0.7543 GB, free: 3.117 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008623/0.305, allocations: 0.7677 MB / 0.755 GB, free: 2.344 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.305, allocations: 0 / 0.755 GB, free: 2.344 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009838/0.306, allocations: 351.5 kB / 0.7553 GB, free: 2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001425/0.3074, allocations: 0.6621 MB / 0.756 GB, free: 1.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003098/0.3105, allocations: 1.107 MB / 0.7571 GB, free: 404 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3105, allocations: 0 / 0.7571 GB, free: 404 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.3121, allocations: 0.5775 MB / 0.7576 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.3141, allocations: 440.8 kB / 0.7581 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004623/0.3187, allocations: 2.73 MB / 0.7607 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006218/0.3193, allocations: 1.104 MB / 0.7618 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009684/0.3203, allocations: 246.1 kB / 0.762 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.3206, allocations: 103.4 kB / 0.7621 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of SimCode: time 4.81e-07/0.3206, allocations: 0 / 0.7621 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of Templates: time 0.2876/0.6082, allocations: 19.07 MB / 0.7807 GB, free: 91.36 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)