Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 90.03 kB / 16.67 MB, free: 6.602 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.001453/0.001453, allocations: 183.5 kB / 17.58 MB, free: 6.184 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.376/1.376, allocations: 223.3 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7248/0.7248, allocations: 115.5 MB / 408.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003875/0.0003877, allocations: 8 kB / 496.5 MB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3892, allocations: 77.52 MB / 0.5606 GB, free: 36.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02004/0.4093, allocations: 22.48 MB / 0.5825 GB, free: 20.01 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00932/0.4186, allocations: 6.497 MB / 0.5889 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001402/0.4201, allocations: 24.38 kB / 0.5889 GB, free: 15.44 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.4212, allocations: 323 kB / 0.5892 GB, free: 15.29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003258/0.4244, allocations: 0.9867 MB / 0.5902 GB, free: 14.76 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00296/0.4274, allocations: 0.9598 MB / 0.5911 GB, free: 14.27 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00409/0.4315, allocations: 2.512 MB / 0.5936 GB, free: 13.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.4328, allocations: 0.6246 MB / 0.5942 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.4346, allocations: 0.7306 MB / 0.5949 GB, free: 12.71 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.4357, allocations: 0.6823 MB / 0.5956 GB, free: 12.33 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.4358, allocations: 31.25 kB / 0.5956 GB, free: 12.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00216/0.4379, allocations: 0.9432 MB / 0.5965 GB, free: 11.79 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.4382, allocations: 177 kB / 0.5967 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005424/0.4387, allocations: 469.7 kB / 0.5971 GB, free: 11.35 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.4401, allocations: 1.043 MB / 0.5982 GB, free: 10.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4401, allocations: 0 / 0.5982 GB, free: 10.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.4401, allocations: 1.281 kB / 0.5982 GB, free: 10.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.4401, allocations: 0 / 0.5982 GB, free: 10.67 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002004/0.4421, allocations: 1.239 MB / 0.5994 GB, free: 9.668 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4422, allocations: 14.38 kB / 0.5994 GB, free: 9.664 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.4424, allocations: 116.5 kB / 0.5995 GB, free: 9.605 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009502/0.4433, allocations: 0.6725 MB / 0.6001 GB, free: 9.066 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.579e-05/0.4434, allocations: 48.16 kB / 0.6002 GB, free: 9.047 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.4435, allocations: 62.28 kB / 0.6002 GB, free: 9.027 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.4445, allocations: 0.671 MB / 0.6009 GB, free: 8.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.4446, allocations: 5.094 kB / 0.6009 GB, free: 8.586 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.4446, allocations: 25.44 kB / 0.6009 GB, free: 8.566 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.4446, allocations: 14.31 kB / 0.6009 GB, free: 8.566 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008249/0.4455, allocations: 460.5 kB / 0.6014 GB, free: 8.359 MB / 446.1 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.003116/0.4486, allocations: 2.546 MB / 0.6039 GB, free: 6.195 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007182/0.4493, allocations: 370 kB / 0.6042 GB, free: 6.023 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000344/0.4497, allocations: 200.9 kB / 0.6044 GB, free: 5.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002413/0.4499, allocations: 342.1 kB / 0.6047 GB, free: 5.539 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000545/0.4505, allocations: 333 kB / 0.6051 GB, free: 5.297 MB / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 2.094e-06/0.4505, allocations: 1.406 kB / 0.6051 GB, free: 5.297 MB / 446.1 MB Notification: Performance of matching and sorting (n=37): time 0.001286/0.4518, allocations: 0.7113 MB / 0.6058 GB, free: 4.707 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.4519, allocations: 239.3 kB / 0.606 GB, free: 4.418 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000793/0.4527, allocations: 0.8445 MB / 0.6068 GB, free: 3.551 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.4527, allocations: 41.7 kB / 0.6068 GB, free: 3.504 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.453, allocations: 436.3 kB / 0.6073 GB, free: 3.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.743e-05/0.4531, allocations: 122.5 kB / 0.6074 GB, free: 2.949 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.4531, allocations: 65.67 kB / 0.6074 GB, free: 2.879 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.332e-05/0.4532, allocations: 326.5 kB / 0.6078 GB, free: 2.555 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.4536, allocations: 209.1 kB / 0.608 GB, free: 2.352 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.454, allocations: 375.6 kB / 0.6083 GB, free: 1.926 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006775/0.4547, allocations: 0.5418 MB / 0.6088 GB, free: 1.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.4547, allocations: 0 / 0.6088 GB, free: 1.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001061/0.4558, allocations: 0.7488 MB / 0.6096 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.128e-05/0.4559, allocations: 210.1 kB / 0.6098 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.4559, allocations: 4 kB / 0.6098 GB, free: 328 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.4559, allocations: 7.984 kB / 0.6098 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009487/0.4568, allocations: 179.7 kB / 0.61 GB, free: 140 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.4579, allocations: 1.774 MB / 0.6117 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008498/0.4588, allocations: 111.3 kB / 0.6118 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.304e-05/0.4589, allocations: 24 kB / 0.6118 GB, free: 14.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.4589, allocations: 4 kB / 0.6118 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001131/0.46, allocations: 0.6465 MB / 0.6125 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.46, allocations: 4 kB / 0.6125 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.46, allocations: 4 kB / 0.6125 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.4606, allocations: 135.8 kB / 0.6126 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.4606, allocations: 8.219 kB / 0.6126 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006705/0.4613, allocations: 107.3 kB / 0.6127 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.4613, allocations: 24 kB / 0.6127 GB, free: 13.22 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005064/0.4618, allocations: 343.9 kB / 0.6131 GB, free: 12.87 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.462, allocations: 94.88 kB / 0.6131 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.4632, allocations: 0.6814 MB / 0.6138 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.4633, allocations: 4 kB / 0.6138 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.4633, allocations: 4 kB / 0.6138 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4633, allocations: 0 / 0.6138 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.4654, allocations: 1.539 MB / 0.6153 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.4655, allocations: 0 / 0.6153 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.4659, allocations: 95.86 kB / 0.6154 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4659, allocations: 0 / 0.6154 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.4659, allocations: 23.92 kB / 0.6154 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007954/0.4668, allocations: 1.762 MB / 0.6172 GB, free: 8.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4668, allocations: 4.281 kB / 0.6172 GB, free: 8.516 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.4682, allocations: 1.131 MB / 0.6183 GB, free: 7.355 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003312/0.4686, allocations: 231.7 kB / 0.6185 GB, free: 7.109 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.4687, allocations: 12 kB / 0.6185 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.4693, allocations: 56 kB / 0.6185 GB, free: 7.043 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.4694, allocations: 39.94 kB / 0.6186 GB, free: 7.004 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.604e-05/0.4695, allocations: 23.92 kB / 0.6186 GB, free: 6.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007035/0.4702, allocations: 0.5748 MB / 0.6192 GB, free: 6.395 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4702, allocations: 0 / 0.6192 GB, free: 6.395 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001369/0.4716, allocations: 463.1 kB / 0.6196 GB, free: 5.941 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007054/0.4723, allocations: 333.3 kB / 0.6199 GB, free: 5.621 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.4745, allocations: 1.047 MB / 0.621 GB, free: 4.547 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4746, allocations: 0 / 0.621 GB, free: 4.547 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006444/0.4752, allocations: 355.6 kB / 0.6213 GB, free: 4.188 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/0.4775, allocations: 370.9 kB / 0.6216 GB, free: 3.832 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.4804, allocations: 1.85 MB / 0.6235 GB, free: 1.934 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005666/0.481, allocations: 1.009 MB / 0.6244 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.4812, allocations: 71.41 kB / 0.6245 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4812, allocations: 0 / 0.6245 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of Templates: time 0.02927/0.5105, allocations: 23.74 MB / 0.6477 GB, free: 9.191 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)