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.00142/0.00142, allocations: 112.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.001556/0.001556, allocations: 190.7 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.318/1.318, 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.002064/0.002064, allocations: 291.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 103.8 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.531/0.533, allocations: 86.96 MB / 0.7671 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03497/0.568, allocations: 29.81 MB / 0.7962 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01356/0.5816, allocations: 8.141 MB / 0.8041 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002332/0.584, allocations: 31.81 kB / 0.8041 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.5857, allocations: 432.9 kB / 0.8046 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00519/0.5909, allocations: 1.37 MB / 0.8059 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003399/0.5944, allocations: 1.155 MB / 0.807 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004794/0.5992, allocations: 3.552 MB / 0.8105 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002392/0.6016, allocations: 1.333 MB / 0.8118 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003553/0.6052, allocations: 1.687 MB / 0.8134 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003462/0.6086, allocations: 1.62 MB / 0.815 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007663/0.6094, allocations: 128 kB / 0.8151 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002878/0.6123, allocations: 1.022 MB / 0.8161 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000799/0.6131, allocations: 414.6 kB / 0.8165 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002024/0.6152, allocations: 0.7428 MB / 0.8173 GB, free: 388 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005023/0.6202, allocations: 2.207 MB / 0.8194 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.6202, allocations: 0 / 0.8194 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.837e-06/0.6203, allocations: 0 / 0.8194 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.955e-05/0.6204, allocations: 0 / 0.8194 GB, free: 14.17 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.004668/0.625, allocations: 1.675 MB / 0.8211 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.6251, allocations: 12.03 kB / 0.8211 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004569/0.6256, allocations: 151.3 kB / 0.8212 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.6275, allocations: 0.9221 MB / 0.8221 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.632e-05/0.6276, allocations: 81.31 kB / 0.8222 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002091/0.6279, allocations: 120 kB / 0.8223 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.6291, allocations: 0.6356 MB / 0.8229 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.6291, allocations: 0 / 0.8229 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.755e-05/0.6292, allocations: 24 kB / 0.8229 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.6292, allocations: 16 kB / 0.823 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008837/0.6301, allocations: 468.8 kB / 0.8234 GB, free: 9.945 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.004556/0.6347, allocations: 2.864 MB / 0.8262 GB, free: 6.93 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006059/0.6353, allocations: 310.3 kB / 0.8265 GB, free: 6.621 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.6356, allocations: 149.3 kB / 0.8266 GB, free: 6.473 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003206/0.6359, allocations: 340.7 kB / 0.827 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.636, allocations: 34.84 kB / 0.827 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=33): time 3.436e-06/0.636, allocations: 0 / 0.827 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of matching and sorting (n=33): time 0.001378/0.6374, allocations: 0.5283 MB / 0.8275 GB, free: 5.488 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.6374, allocations: 55.41 kB / 0.8276 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.6385, allocations: 0.9113 MB / 0.8285 GB, free: 4.492 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.6387, allocations: 53.7 kB / 0.8285 GB, free: 4.434 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004599/0.6391, allocations: 490.6 kB / 0.829 GB, free: 3.949 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.736e-05/0.6392, allocations: 118.4 kB / 0.8291 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000402/0.6396, allocations: 290.9 kB / 0.8294 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.6398, allocations: 334.1 kB / 0.8297 GB, free: 3.203 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004112/0.6402, allocations: 193.3 kB / 0.8299 GB, free: 3.016 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.6416, allocations: 1.151 MB / 0.831 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008826/0.6425, allocations: 455.4 kB / 0.8314 GB, free: 1.031 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.6425, allocations: 4 kB / 0.8314 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001265/0.6438, allocations: 0.6463 MB / 0.8321 GB, free: 388 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.6438, allocations: 15.98 kB / 0.8321 GB, free: 372 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.6438, allocations: 0 / 0.8321 GB, free: 372 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.6439, allocations: 8.031 kB / 0.8321 GB, free: 364 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.6453, allocations: 231.6 kB / 0.8323 GB, free: 132 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.6468, allocations: 2.957 MB / 0.8352 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003255/0.6501, allocations: 0.7027 MB / 0.8359 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-05/0.6502, allocations: 27.98 kB / 0.8359 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007405/0.651, allocations: 369.3 kB / 0.8363 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001246/0.6522, allocations: 1.158 MB / 0.8374 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007349/0.653, allocations: 456.7 kB / 0.8378 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.816e-06/0.653, allocations: 4 kB / 0.8378 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001383/0.6544, allocations: 0.6548 MB / 0.8385 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.6544, allocations: 4 kB / 0.8385 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.6544, allocations: 4 kB / 0.8385 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.6544, allocations: 8.312 kB / 0.8385 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/0.6551, allocations: 155.8 kB / 0.8386 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.6551, allocations: 15.92 kB / 0.8387 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004417/0.6595, allocations: 0.9652 MB / 0.8396 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-05/0.6596, allocations: 27.98 kB / 0.8396 GB, free: 8.102 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.0003056/0.6599, allocations: 241 kB / 0.8399 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.6601, allocations: 98.69 kB / 0.8399 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/0.6613, allocations: 0.5053 MB / 0.8404 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.6613, allocations: 0 / 0.8404 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.6613, allocations: 0 / 0.8404 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002661/0.6616, allocations: 211.8 kB / 0.8406 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.6617, allocations: 15.98 kB / 0.8407 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000439/0.6621, allocations: 27.91 kB / 0.8407 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-05/0.6622, allocations: 28.23 kB / 0.8407 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001192/0.6634, allocations: 0.5491 MB / 0.8412 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00122/0.6646, allocations: 0.8114 MB / 0.842 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003189/0.665, allocations: 171.7 kB / 0.8422 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007571/0.6657, allocations: 0.6123 MB / 0.8428 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of Backend: time 2.11e-07/0.6657, allocations: 0 / 0.8428 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003333/0.6691, allocations: 1.034 MB / 0.8438 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of SimCode: time 0.00345/0.6725, allocations: 2.205 MB / 0.846 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of Templates: time 0.04552/0.7181, allocations: 26.97 MB / 0.8723 GB, free: 7.016 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)