Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7568/0.7568, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 178.5 kB / 187.3 MB, free: 11.89 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.459/1.459, allocations: 221.3 MB / 441.4 MB, free: 4.598 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.0009842/0.0009846, allocations: 99.33 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 269.7 kB / 0.5939 GB, free: 7.953 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.75e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4739/0.4739, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8358/1.31, allocations: 360.2 MB / 1.116 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.31, allocations: 99.31 kB / 1.116 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 1.094/2.404, allocations: 307.4 MB / 1.416 GB, free: 31.56 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.043e-06/2.404, allocations: 3.938 kB / 1.416 GB, free: 31.55 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.289e-05/2.404, allocations: 31.98 kB / 1.416 GB, free: 31.52 MB / 0.698 GB 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.002029/2.406, allocations: 1.244 MB / 1.418 GB, free: 30.22 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/2.406, allocations: 8.031 kB / 1.418 GB, free: 30.21 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/2.406, allocations: 118.6 kB / 1.418 GB, free: 30.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/2.407, allocations: 0.6678 MB / 1.418 GB, free: 29.39 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/2.407, allocations: 49.31 kB / 1.418 GB, free: 29.34 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.379e-05/2.407, allocations: 72 kB / 1.418 GB, free: 29.27 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008459/2.408, allocations: 0.6509 MB / 1.419 GB, free: 28.58 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/2.408, allocations: 4 kB / 1.419 GB, free: 28.58 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.321e-05/2.408, allocations: 24 kB / 1.419 GB, free: 28.55 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/2.408, allocations: 12 kB / 1.419 GB, free: 28.54 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005846/2.409, allocations: 437 kB / 1.42 GB, free: 28.11 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.00289/2.412, allocations: 2.604 MB / 1.422 GB, free: 25.37 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/2.412, allocations: 336.5 kB / 1.422 GB, free: 25.03 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/2.412, allocations: 204.7 kB / 1.423 GB, free: 24.83 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002449/2.413, allocations: 348.3 kB / 1.423 GB, free: 24.41 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003649/2.413, allocations: 325.2 kB / 1.423 GB, free: 24.06 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 3.297e-06/2.413, allocations: 112 / 1.423 GB, free: 24.06 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.0008856/2.414, allocations: 0.5668 MB / 1.424 GB, free: 23.48 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/2.414, allocations: 239.6 kB / 1.424 GB, free: 23.2 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006504/2.415, allocations: 0.7267 MB / 1.425 GB, free: 22.45 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/2.415, allocations: 41.7 kB / 1.425 GB, free: 22.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/2.415, allocations: 440.3 kB / 1.425 GB, free: 21.96 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.191e-05/2.415, allocations: 114.4 kB / 1.425 GB, free: 21.85 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/2.415, allocations: 12 kB / 1.425 GB, free: 21.84 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.744e-05/2.415, allocations: 330 kB / 1.426 GB, free: 21.51 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/2.415, allocations: 205.3 kB / 1.426 GB, free: 21.31 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/2.416, allocations: 393.6 kB / 1.426 GB, free: 20.84 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/2.416, allocations: 262.4 kB / 1.426 GB, free: 20.58 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/2.416, allocations: 4 kB / 1.426 GB, free: 20.57 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009451/2.417, allocations: 0.7485 MB / 1.427 GB, free: 19.81 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001834/2.417, allocations: 1.079 MB / 1.428 GB, free: 18.65 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/2.417, allocations: 0 / 1.428 GB, free: 18.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/2.417, allocations: 12 kB / 1.428 GB, free: 18.64 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000875/2.418, allocations: 159.7 kB / 1.428 GB, free: 18.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006308/2.419, allocations: 1.778 MB / 1.43 GB, free: 16.63 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007639/2.42, allocations: 127.5 kB / 1.43 GB, free: 16.51 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.779e-05/2.42, allocations: 31.98 kB / 1.43 GB, free: 16.48 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/2.42, allocations: 7.938 kB / 1.43 GB, free: 16.47 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000846/2.42, allocations: 0.6542 MB / 1.431 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/2.421, allocations: 7.953 kB / 1.431 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.811e-06/2.421, allocations: 4 kB / 1.431 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004756/2.421, allocations: 140.1 kB / 1.431 GB, free: 15.66 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/2.421, allocations: 8 kB / 1.431 GB, free: 15.65 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006425/2.422, allocations: 111.5 kB / 1.431 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.927e-05/2.422, allocations: 31.98 kB / 1.431 GB, free: 15.51 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete 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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000157/2.422, allocations: 177.7 kB / 1.431 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/2.422, allocations: 98.86 kB / 1.431 GB, free: 15.23 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/2.423, allocations: 0.7042 MB / 1.432 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/2.423, allocations: 4 kB / 1.432 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/2.423, allocations: 0 / 1.432 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/2.423, allocations: 7.984 kB / 1.432 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/2.425, allocations: 1.564 MB / 1.434 GB, free: 12.86 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/2.425, allocations: 0 / 1.434 GB, free: 12.86 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/2.425, allocations: 107.9 kB / 1.434 GB, free: 12.76 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/2.425, allocations: 4 kB / 1.434 GB, free: 12.75 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/2.425, allocations: 12 kB / 1.434 GB, free: 12.74 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005192/2.426, allocations: 1.77 MB / 1.436 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/2.426, allocations: 0 / 1.436 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/2.427, allocations: 1.2 MB / 1.437 GB, free: 9.648 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/2.427, allocations: 235.8 kB / 1.437 GB, free: 9.398 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/2.427, allocations: 15.98 kB / 1.437 GB, free: 9.383 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005738/2.428, allocations: 79.86 kB / 1.437 GB, free: 9.305 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/2.428, allocations: 52 kB / 1.437 GB, free: 9.254 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.219e-05/2.428, allocations: 23.98 kB / 1.437 GB, free: 9.23 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000541/2.429, allocations: 0.5557 MB / 1.438 GB, free: 8.66 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.61e-07/2.429, allocations: 0 / 1.438 GB, free: 8.66 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001419/2.43, allocations: 0.4992 MB / 1.438 GB, free: 8.16 MB / 0.698 GB 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) * 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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008199/2.431, allocations: 491.9 kB / 1.439 GB, free: 7.688 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001563/2.433, allocations: 0.963 MB / 1.44 GB, free: 6.695 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/2.433, allocations: 4.062 kB / 1.44 GB, free: 6.691 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004446/2.433, allocations: 339.2 kB / 1.44 GB, free: 6.348 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/2.435, allocations: 361.3 kB / 1.44 GB, free: 5.996 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/2.437, allocations: 1.075 MB / 1.441 GB, free: 4.879 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/2.437, allocations: 1.022 MB / 1.442 GB, free: 3.828 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008212/2.438, allocations: 214 kB / 1.442 GB, free: 3.617 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/2.438, allocations: 55.42 kB / 1.443 GB, free: 3.562 MB / 0.698 GB Notification: Performance of SimCode: time 1.203e-06/2.438, allocations: 4 kB / 1.443 GB, free: 3.559 MB / 0.698 GB Notification: Performance of Templates: time 0.4452/2.883, allocations: 18.97 MB / 1.461 GB, free: 169.5 MB / 0.698 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)