Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.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.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001713/0.001713, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002106/0.002106, allocations: 286 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9477/0.9477, allocations: 169.2 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 99.84 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4398, allocations: 86.98 MB / 0.7671 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02932/0.4691, allocations: 29.8 MB / 0.7962 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01158/0.4808, allocations: 8.153 MB / 0.8041 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.4821, allocations: 31.75 kB / 0.8041 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001318/0.4835, allocations: 437 kB / 0.8046 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00392/0.4874, allocations: 1.43 MB / 0.806 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002946/0.4904, allocations: 1.141 MB / 0.8071 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004133/0.4945, allocations: 3.562 MB / 0.8106 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002013/0.4966, allocations: 1.333 MB / 0.8119 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003066/0.4997, allocations: 1.702 MB / 0.8135 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003294/0.503, allocations: 1.62 MB / 0.8151 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006251/0.5036, allocations: 124 kB / 0.8152 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002626/0.5062, allocations: 1.018 MB / 0.8162 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006694/0.5069, allocations: 410.6 kB / 0.8166 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.5083, allocations: 0.7428 MB / 0.8173 GB, free: 256 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003107/0.5114, allocations: 2.211 MB / 0.8195 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.5114, allocations: 0 / 0.8195 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.144e-06/0.5114, allocations: 0 / 0.8195 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.949e-05/0.5115, allocations: 4 kB / 0.8195 GB, free: 14.03 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003196/0.5147, allocations: 1.671 MB / 0.8211 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.5148, allocations: 12.03 kB / 0.8211 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004484/0.5152, allocations: 151.3 kB / 0.8213 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001874/0.5171, allocations: 0.926 MB / 0.8222 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.933e-05/0.5172, allocations: 77.31 kB / 0.8223 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.5174, allocations: 124 kB / 0.8224 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.5184, allocations: 0.6278 MB / 0.823 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.5185, allocations: 0 / 0.823 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-05/0.5185, allocations: 24 kB / 0.823 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.5185, allocations: 23.98 kB / 0.823 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000858/0.5194, allocations: 468.8 kB / 0.8235 GB, free: 9.809 MB / 0.5919 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.004215/0.5236, allocations: 2.856 MB / 0.8263 GB, free: 6.801 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005516/0.5242, allocations: 313.6 kB / 0.8266 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000289/0.5245, allocations: 149.3 kB / 0.8267 GB, free: 6.34 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002887/0.5248, allocations: 348.7 kB / 0.827 GB, free: 5.926 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.5248, allocations: 30.84 kB / 0.8271 GB, free: 5.887 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=33): time 1.593e-06/0.5248, allocations: 0 / 0.8271 GB, free: 5.887 MB / 0.5919 GB Notification: Performance of matching and sorting (n=33): time 0.001227/0.5261, allocations: 0.5322 MB / 0.8276 GB, free: 5.348 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.5261, allocations: 59.34 kB / 0.8277 GB, free: 5.277 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009333/0.527, allocations: 0.9152 MB / 0.8285 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.5272, allocations: 57.7 kB / 0.8286 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003936/0.5276, allocations: 474.7 kB / 0.8291 GB, free: 3.812 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.5277, allocations: 114.4 kB / 0.8292 GB, free: 3.699 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003762/0.5281, allocations: 302.9 kB / 0.8295 GB, free: 3.391 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5282, allocations: 326.1 kB / 0.8298 GB, free: 3.066 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/0.5286, allocations: 193.4 kB / 0.8299 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/0.5298, allocations: 1.151 MB / 0.8311 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007787/0.5306, allocations: 467.3 kB / 0.8315 GB, free: 0.8828 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.5306, allocations: 0 / 0.8315 GB, free: 0.8828 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001205/0.5318, allocations: 0.6541 MB / 0.8322 GB, free: 232 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.5318, allocations: 4 kB / 0.8322 GB, free: 228 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5319, allocations: 4 kB / 0.8322 GB, free: 224 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.5319, allocations: 4 kB / 0.8322 GB, free: 220 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.5333, allocations: 227.7 kB / 0.8324 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.5348, allocations: 2.961 MB / 0.8353 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003133/0.5379, allocations: 0.6988 MB / 0.836 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/0.538, allocations: 27.98 kB / 0.836 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006287/0.5386, allocations: 365.3 kB / 0.8363 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001211/0.5398, allocations: 1.162 MB / 0.8375 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007193/0.5406, allocations: 452.7 kB / 0.8379 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.863e-06/0.5406, allocations: 4 kB / 0.8379 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001273/0.5419, allocations: 0.6548 MB / 0.8385 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.738e-06/0.5419, allocations: 4 kB / 0.8385 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.5419, allocations: 4.312 kB / 0.8386 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/0.5419, allocations: 12 kB / 0.8386 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006405/0.5426, allocations: 159.7 kB / 0.8387 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.5426, allocations: 8 kB / 0.8387 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004262/0.5469, allocations: 0.9613 MB / 0.8397 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.5469, allocations: 23.98 kB / 0.8397 GB, free: 7.977 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002273/0.5471, allocations: 245 kB / 0.8399 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.5473, allocations: 98.69 kB / 0.84 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.5483, allocations: 0.5172 MB / 0.8405 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.5483, allocations: 0 / 0.8405 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.5483, allocations: 0 / 0.8405 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002488/0.5486, allocations: 219.7 kB / 0.8407 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.5487, allocations: 8 kB / 0.8407 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004249/0.5491, allocations: 27.91 kB / 0.8408 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.351e-05/0.5492, allocations: 28.23 kB / 0.8408 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001136/0.5503, allocations: 0.5491 MB / 0.8413 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001188/0.5515, allocations: 0.8154 MB / 0.8421 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003174/0.5519, allocations: 171.7 kB / 0.8423 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000681/0.5526, allocations: 0.6084 MB / 0.8429 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of Backend: time 4.3e-07/0.5526, allocations: 0 / 0.8429 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003106/0.5557, allocations: 1.035 MB / 0.8439 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of SimCode: time 0.003192/0.5589, allocations: 2.214 MB / 0.8461 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of Templates: time 0.04066/0.5995, allocations: 26.97 MB / 0.8724 GB, free: 6.875 MB / 0.6387 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)