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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.914/0.914, allocations: 143.4 MB / 159.2 MB, free: 4.863 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 184.5 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 222.9 MB / 447.3 MB, free: 5.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 111.7 kB / 0.517 GB, free: 3.68 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001885/0.001884, allocations: 282.8 kB / 0.5973 GB, free: 49.34 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 79.89 kB / 0.6885 GB, free: 3.812 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3697, allocations: 81.3 MB / 0.7679 GB, free: 27.63 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.0219/0.3916, allocations: 29.18 MB / 0.7964 GB, free: 14.35 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.4025, allocations: 6.928 MB / 0.8032 GB, free: 7.406 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0016/0.4042, allocations: 47.62 kB / 0.8032 GB, free: 7.359 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001618/0.4058, allocations: 0.5988 MB / 0.8038 GB, free: 6.758 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004031/0.4099, allocations: 1.35 MB / 0.8051 GB, free: 5.402 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003129/0.413, allocations: 1.085 MB / 0.8062 GB, free: 4.328 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.004006/0.417, allocations: 3.265 MB / 0.8094 GB, free: 1.051 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.4182, allocations: 0.7412 MB / 0.8101 GB, free: 308 kB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001808/0.42, allocations: 0.9645 MB / 0.811 GB, free: 15.33 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.4211, allocations: 0.8285 MB / 0.8119 GB, free: 14.5 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.4212, allocations: 44 kB / 0.8119 GB, free: 14.46 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001909/0.4231, allocations: 0.7639 MB / 0.8126 GB, free: 13.69 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.4234, allocations: 270.9 kB / 0.8129 GB, free: 13.43 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005302/0.4239, allocations: 0.5358 MB / 0.8134 GB, free: 12.89 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001926/0.4259, allocations: 1.585 MB / 0.815 GB, free: 11.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4259, allocations: 0 / 0.815 GB, free: 11.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.4259, allocations: 0 / 0.815 GB, free: 11.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.4259, allocations: 0 / 0.815 GB, free: 11.3 MB / 490.7 MB 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.002589/0.4285, allocations: 1.582 MB / 0.8165 GB, free: 9.656 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.4286, allocations: 12.03 kB / 0.8165 GB, free: 9.645 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0034/0.432, allocations: 0.5923 MB / 0.8171 GB, free: 9.051 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.4333, allocations: 0.8136 MB / 0.8179 GB, free: 8.184 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.403e-05/0.4334, allocations: 54.36 kB / 0.818 GB, free: 8.129 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.4335, allocations: 83.88 kB / 0.818 GB, free: 8.047 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002361/0.4359, allocations: 1.103 MB / 0.8191 GB, free: 6.867 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.4359, allocations: 3.938 kB / 0.8191 GB, free: 6.863 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.176e-05/0.436, allocations: 32 kB / 0.8191 GB, free: 6.832 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.436, allocations: 16 kB / 0.8192 GB, free: 6.816 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003077/0.4391, allocations: 1 MB / 0.8201 GB, free: 5.816 MB / 490.7 MB 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.006061/0.4452, allocations: 4.951 MB / 0.825 GB, free: 0.5781 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00282/0.448, allocations: 0.9039 MB / 0.8259 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.4496, allocations: 482.2 kB / 0.8263 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001376/0.4509, allocations: 1.584 MB / 0.8279 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001662/0.4526, allocations: 0.5923 MB / 0.8284 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=61): time 2.976e-06/0.4526, allocations: 4 kB / 0.8284 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61): time 0.004779/0.4574, allocations: 1.473 MB / 0.8299 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.4575, allocations: 63.97 kB / 0.8299 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.459, allocations: 1.128 MB / 0.831 GB, free: 9.957 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.666e-05/0.4591, allocations: 41.7 kB / 0.8311 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.4595, allocations: 0.5512 MB / 0.8316 GB, free: 9.352 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.4598, allocations: 205.2 kB / 0.8318 GB, free: 9.148 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.46, allocations: 166.5 kB / 0.832 GB, free: 8.98 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4602, allocations: 337.9 kB / 0.8323 GB, free: 8.645 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001505/0.4617, allocations: 453.6 kB / 0.8327 GB, free: 8.199 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.4634, allocations: 0.7357 MB / 0.8335 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003027/0.4664, allocations: 1.12 MB / 0.8345 GB, free: 6.113 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4664, allocations: 4 kB / 0.8345 GB, free: 6.109 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003559/0.47, allocations: 1.27 MB / 0.8358 GB, free: 4.832 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.47, allocations: 12.92 kB / 0.8358 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.4701, allocations: 11.94 kB / 0.8358 GB, free: 4.809 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.4701, allocations: 16 kB / 0.8358 GB, free: 4.793 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.4712, allocations: 267.6 kB / 0.8361 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/0.4713, allocations: 19.92 kB / 0.8361 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.4727, allocations: 202.8 kB / 0.8363 GB, free: 4.312 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.4728, allocations: 47.97 kB / 0.8363 GB, free: 4.266 MB / 0.4948 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.0004721/0.4733, allocations: 295.7 kB / 0.8366 GB, free: 3.965 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002522/0.4735, allocations: 122.4 kB / 0.8367 GB, free: 3.844 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003839/0.4774, allocations: 1.359 MB / 0.8381 GB, free: 2.477 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.4774, allocations: 11.98 kB / 0.8381 GB, free: 2.465 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.4774, allocations: 0 / 0.8381 GB, free: 2.465 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.4774, allocations: 7.984 kB / 0.8381 GB, free: 2.457 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005113/0.4825, allocations: 2.366 MB / 0.8404 GB, free: 20 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.4826, allocations: 4 kB / 0.8404 GB, free: 16 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.4836, allocations: 187.9 kB / 0.8406 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.4836, allocations: 8 kB / 0.8406 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.171e-05/0.4837, allocations: 23.97 kB / 0.8406 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.4837, allocations: 4 kB / 0.8406 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4837, allocations: 0 / 0.8406 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01074/0.4945, allocations: 5.017 MB / 0.8455 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004686/0.495, allocations: 271.3 kB / 0.8458 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.4951, allocations: 27.98 kB / 0.8458 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009785/0.4961, allocations: 115.8 kB / 0.8459 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.4963, allocations: 52.5 kB / 0.846 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.811e-05/0.4963, allocations: 31.97 kB / 0.846 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001008/0.4974, allocations: 0.772 MB / 0.8467 GB, free: 9.254 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4974, allocations: 0 / 0.8467 GB, free: 9.254 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001453/0.4988, allocations: 427.6 kB / 0.8472 GB, free: 8.836 MB / 0.5105 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.001865/0.5007, allocations: 0.669 MB / 0.8478 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003439/0.5042, allocations: 1.107 MB / 0.8489 GB, free: 7.223 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5042, allocations: 3.938 kB / 0.8489 GB, free: 7.219 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.506, allocations: 0.5736 MB / 0.8495 GB, free: 6.648 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002164/0.5081, allocations: 445.9 kB / 0.8499 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005679/0.5138, allocations: 3.145 MB / 0.8529 GB, free: 3.012 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008594/0.5147, allocations: 1.127 MB / 0.854 GB, free: 1.852 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001139/0.5159, allocations: 256.7 kB / 0.8543 GB, free: 1.602 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.5162, allocations: 107.4 kB / 0.8544 GB, free: 1.496 MB / 0.5105 GB Notification: Performance of SimCode: time 1.172e-06/0.5162, allocations: 0 / 0.8544 GB, free: 1.496 MB / 0.5105 GB Notification: Performance of Templates: time 0.03527/0.5515, allocations: 20.14 MB / 0.8741 GB, free: 13.6 MB / 0.5417 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)