Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 114.9 kB / 16.42 MB, free: 6.012 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.001799/0.001799, allocations: 183.2 kB / 17.35 MB, free: 5.629 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002093/0.002093, allocations: 300.5 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9713/0.9713, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 92.27 kB / 0.6821 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4721/0.4741, allocations: 86.98 MB / 0.7671 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.02128/0.4954, allocations: 19.43 MB / 0.786 GB, free: 416 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.007173/0.5026, allocations: 5.157 MB / 0.7911 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006367/0.5033, allocations: 19.88 kB / 0.7911 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006878/0.504, allocations: 266 kB / 0.7913 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.5057, allocations: 0.7789 MB / 0.7921 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.5077, allocations: 0.8725 MB / 0.7929 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001688/0.5094, allocations: 1.552 MB / 0.7945 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006774/0.5101, allocations: 0.5129 MB / 0.795 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009375/0.511, allocations: 0.6304 MB / 0.7956 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006398/0.5117, allocations: 0.5368 MB / 0.7961 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.967e-05/0.5118, allocations: 56 kB / 0.7962 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.5129, allocations: 0.7057 MB / 0.7968 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.5131, allocations: 163.3 kB / 0.797 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003027/0.5134, allocations: 378 kB / 0.7974 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001176/0.5146, allocations: 1.097 MB / 0.7984 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.5146, allocations: 0 / 0.7984 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5146, allocations: 0 / 0.7984 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.5146, allocations: 4 kB / 0.7984 GB, free: 3.648 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001758/0.5164, allocations: 1.098 MB / 0.7995 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.5164, allocations: 12.03 kB / 0.7995 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.5166, allocations: 83.91 kB / 0.7996 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007514/0.5173, allocations: 0.5226 MB / 0.8001 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.5174, allocations: 37 kB / 0.8001 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/0.5174, allocations: 48 kB / 0.8002 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.5185, allocations: 0.6216 MB / 0.8008 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.5185, allocations: 7.938 kB / 0.8008 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.5186, allocations: 16 kB / 0.8008 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.5186, allocations: 12 kB / 0.8008 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.5196, allocations: 495.4 kB / 0.8013 GB, free: 0.5586 MB / 0.5606 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.003186/0.5228, allocations: 3.197 MB / 0.8044 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006609/0.5235, allocations: 344.3 kB / 0.8048 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004596/0.5239, allocations: 236.5 kB / 0.805 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003111/0.5243, allocations: 352.1 kB / 0.8053 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.5243, allocations: 38.56 kB / 0.8054 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 3.016e-06/0.5243, allocations: 3.984 kB / 0.8054 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.002122/0.5264, allocations: 0.8072 MB / 0.8061 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.5265, allocations: 59.16 kB / 0.8062 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007388/0.5272, allocations: 0.5862 MB / 0.8068 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.226e-05/0.5273, allocations: 33.7 kB / 0.8068 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.5275, allocations: 328.4 kB / 0.8071 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.905e-05/0.5276, allocations: 138 kB / 0.8073 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.5278, allocations: 130.1 kB / 0.8074 GB, free: 9.98 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5279, allocations: 370.8 kB / 0.8077 GB, free: 9.609 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004985/0.5284, allocations: 223.4 kB / 0.8079 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006166/0.5291, allocations: 368 kB / 0.8083 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.5302, allocations: 0.5705 MB / 0.8088 GB, free: 8.336 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5302, allocations: 3.938 kB / 0.8089 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001451/0.5316, allocations: 0.7183 MB / 0.8096 GB, free: 7.605 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.5317, allocations: 4.562 kB / 0.8096 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.5317, allocations: 8 kB / 0.8096 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006196/0.5323, allocations: 128.7 kB / 0.8097 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005294/0.5329, allocations: 143.8 kB / 0.8098 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005448/0.5334, allocations: 0.6109 MB / 0.8104 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005649/0.534, allocations: 83.19 kB / 0.8105 GB, free: 6.605 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.967e-05/0.5341, allocations: 35.98 kB / 0.8105 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006412/0.5347, allocations: 355.7 kB / 0.8109 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005898/0.5353, allocations: 368 kB / 0.8112 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001074/0.5364, allocations: 0.5626 MB / 0.8118 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.667e-06/0.5364, allocations: 0 / 0.8118 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001397/0.5378, allocations: 0.671 MB / 0.8124 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.5378, allocations: 11.12 kB / 0.8124 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.5379, allocations: 7.984 kB / 0.8124 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.5379, allocations: 8 kB / 0.8125 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005881/0.5385, allocations: 155.8 kB / 0.8126 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.5385, allocations: 12.34 kB / 0.8126 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.539, allocations: 71.55 kB / 0.8127 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.5391, allocations: 32 kB / 0.8127 GB, free: 4.207 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001993/0.5393, allocations: 220 kB / 0.8129 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.5394, allocations: 71.16 kB / 0.813 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.5409, allocations: 0.6346 MB / 0.8136 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.5409, allocations: 0 / 0.8136 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.5409, allocations: 0 / 0.8136 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.5412, allocations: 208 kB / 0.8138 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.668e-05/0.5413, allocations: 4 kB / 0.8138 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004047/0.5417, allocations: 31.97 kB / 0.8138 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.11e-05/0.5418, allocations: 32.27 kB / 0.8139 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001586/0.5434, allocations: 0.6548 MB / 0.8145 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001727/0.5451, allocations: 0.9656 MB / 0.8155 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00047/0.5456, allocations: 237.2 kB / 0.8157 GB, free: 1.105 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004442/0.5461, allocations: 407 kB / 0.8161 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of Backend: time 4.11e-07/0.5461, allocations: 0 / 0.8161 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002511/0.5486, allocations: 0.935 MB / 0.817 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of SimCode: time 0.002352/0.551, allocations: 1.596 MB / 0.8185 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of Templates: time 0.02409/0.5751, allocations: 14.43 MB / 0.8326 GB, free: 15.88 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)