Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.000864/0.000864, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009699/0.0009699, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 223.2 MB / 239.9 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8814/0.8814, allocations: 135.2 MB / 426.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003262, allocations: 12.62 kB / 0.5068 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1409, allocations: 82.31 MB / 0.5872 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.274/0.415, allocations: 19.59 MB / 0.6063 GB, free: 34.65 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.007082/0.4221, allocations: 5.628 MB / 0.6118 GB, free: 34.61 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00084/0.423, allocations: 26.22 kB / 0.6118 GB, free: 34.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008771/0.4239, allocations: 346.7 kB / 0.6122 GB, free: 34.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002768/0.4267, allocations: 1.144 MB / 0.6133 GB, free: 34.59 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002659/0.4293, allocations: 1.077 MB / 0.6143 GB, free: 34.58 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001999/0.4313, allocations: 1.211 MB / 0.6155 GB, free: 34.58 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007454/0.4321, allocations: 0.5944 MB / 0.6161 GB, free: 34.5 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.4332, allocations: 0.6505 MB / 0.6167 GB, free: 34.39 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005812/0.4338, allocations: 0.5122 MB / 0.6172 GB, free: 34.28 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.393e-05/0.4338, allocations: 31.75 kB / 0.6173 GB, free: 34.28 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.4354, allocations: 0.896 MB / 0.6181 GB, free: 34.27 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.4355, allocations: 164.2 kB / 0.6183 GB, free: 34.23 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.4357, allocations: 205.3 kB / 0.6185 GB, free: 34.16 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009057/0.4366, allocations: 1.032 MB / 0.6195 GB, free: 34.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.4366, allocations: 0 / 0.6195 GB, free: 34.07 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.615e-06/0.4366, allocations: 0 / 0.6195 GB, free: 34.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.4367, allocations: 2.734 kB / 0.6195 GB, free: 34.07 MB / 0.4981 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.001715/0.4384, allocations: 1.244 MB / 0.6207 GB, free: 33.27 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.4384, allocations: 9.469 kB / 0.6207 GB, free: 33.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.4386, allocations: 120.3 kB / 0.6209 GB, free: 33.21 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008734/0.4394, allocations: 0.6473 MB / 0.6215 GB, free: 32.9 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.4395, allocations: 47.25 kB / 0.6215 GB, free: 32.9 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.178e-05/0.4396, allocations: 59.75 kB / 0.6216 GB, free: 32.9 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008221/0.4404, allocations: 0.6596 MB / 0.6222 GB, free: 32.76 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.4404, allocations: 6.719 kB / 0.6222 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.811e-05/0.4405, allocations: 28.94 kB / 0.6223 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.4405, allocations: 13.56 kB / 0.6223 GB, free: 32.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000658/0.4412, allocations: 449.5 kB / 0.6227 GB, free: 32.74 MB / 0.4981 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.002949/0.4441, allocations: 2.553 MB / 0.6252 GB, free: 31.39 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000639/0.4448, allocations: 370.9 kB / 0.6256 GB, free: 31.36 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002355/0.445, allocations: 340.5 kB / 0.6259 GB, free: 30.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005171/0.4456, allocations: 322.6 kB / 0.6262 GB, free: 30.86 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.4456, allocations: 0 / 0.6262 GB, free: 30.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=37): time 0.001157/0.4467, allocations: 0.7824 MB / 0.6269 GB, free: 30.64 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/0.4468, allocations: 246.7 kB / 0.6272 GB, free: 30.35 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007806/0.4476, allocations: 0.8339 MB / 0.628 GB, free: 30.2 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.4477, allocations: 42.2 kB / 0.628 GB, free: 30.17 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002574/0.4479, allocations: 437.8 kB / 0.6285 GB, free: 30 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.448, allocations: 121.2 kB / 0.6286 GB, free: 29.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.448, allocations: 17.66 kB / 0.6286 GB, free: 29.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.157e-05/0.4481, allocations: 325.1 kB / 0.6289 GB, free: 29.62 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.4485, allocations: 202.7 kB / 0.6291 GB, free: 29.62 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.4489, allocations: 364.6 kB / 0.6294 GB, free: 29.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.4494, allocations: 258.7 kB / 0.6297 GB, free: 29.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4494, allocations: 0 / 0.6297 GB, free: 29.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001035/0.4504, allocations: 0.7289 MB / 0.6304 GB, free: 29.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002893/0.4507, allocations: 1.085 MB / 0.6315 GB, free: 28.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.4507, allocations: 5.875 kB / 0.6315 GB, free: 28.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.4508, allocations: 2.844 kB / 0.6315 GB, free: 28.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009317/0.4517, allocations: 178.6 kB / 0.6316 GB, free: 28.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000641/0.4524, allocations: 1.783 MB / 0.6334 GB, free: 26.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.453, allocations: 112.2 kB / 0.6335 GB, free: 26.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.367e-05/0.4531, allocations: 23.69 kB / 0.6335 GB, free: 26.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.807e-06/0.4531, allocations: 5.844 kB / 0.6335 GB, free: 26.32 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009008/0.454, allocations: 0.6445 MB / 0.6341 GB, free: 26.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.454, allocations: 2.875 kB / 0.6341 GB, free: 26.21 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.31e-06/0.454, allocations: 2.969 kB / 0.6341 GB, free: 26.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004535/0.4545, allocations: 141.2 kB / 0.6343 GB, free: 26.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.4545, allocations: 2.875 kB / 0.6343 GB, free: 26.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/0.455, allocations: 110.2 kB / 0.6344 GB, free: 26.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.4551, allocations: 27.16 kB / 0.6344 GB, free: 26.13 MB / 0.4981 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 () * 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 (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.0003527/0.4554, allocations: 339.4 kB / 0.6347 GB, free: 25.86 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.616e-05/0.4556, allocations: 92.41 kB / 0.6348 GB, free: 25.81 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.4566, allocations: 0.6849 MB / 0.6355 GB, free: 25.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.4566, allocations: 9.422 kB / 0.6355 GB, free: 25.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4566, allocations: 0 / 0.6355 GB, free: 25.54 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.4567, allocations: 3.953 kB / 0.6355 GB, free: 25.54 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.4583, allocations: 1.524 MB / 0.637 GB, free: 24.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.4583, allocations: 2.969 kB / 0.637 GB, free: 24.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.4587, allocations: 96.02 kB / 0.6371 GB, free: 24.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.4587, allocations: 7.094 kB / 0.6371 GB, free: 24.68 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.4588, allocations: 19.97 kB / 0.6371 GB, free: 24.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004562/0.4592, allocations: 1.769 MB / 0.6388 GB, free: 22.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4592, allocations: 0 / 0.6388 GB, free: 22.89 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.4605, allocations: 1.167 MB / 0.64 GB, free: 22.22 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.4607, allocations: 223.5 kB / 0.6402 GB, free: 22.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.4608, allocations: 19.75 kB / 0.6402 GB, free: 22.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/0.4613, allocations: 55.8 kB / 0.6403 GB, free: 22.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.4614, allocations: 47.61 kB / 0.6403 GB, free: 22.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-05/0.4615, allocations: 15.53 kB / 0.6403 GB, free: 22.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005529/0.462, allocations: 0.5708 MB / 0.6409 GB, free: 21.76 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.81e-07/0.462, allocations: 0 / 0.6409 GB, free: 21.76 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001136/0.4632, allocations: 461.3 kB / 0.6413 GB, free: 21.66 MB / 0.4981 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) * 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 (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.000629/0.4638, allocations: 334.3 kB / 0.6416 GB, free: 21.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00182/0.4657, allocations: 1.017 MB / 0.6426 GB, free: 21.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.4657, allocations: 6.812 kB / 0.6426 GB, free: 21.12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004951/0.4662, allocations: 347.1 kB / 0.643 GB, free: 20.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.4678, allocations: 365.3 kB / 0.6433 GB, free: 20.89 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.4701, allocations: 1.738 MB / 0.645 GB, free: 19.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.4705, allocations: 1.028 MB / 0.646 GB, free: 19.17 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005695/0.4711, allocations: 150.1 kB / 0.6462 GB, free: 19.14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.4713, allocations: 68.92 kB / 0.6462 GB, free: 19.12 MB / 0.4981 GB Notification: Performance of SimCode: time 4.71e-07/0.4713, allocations: 0 / 0.6462 GB, free: 19.12 MB / 0.4981 GB Notification: Performance of Templates: time 0.02954/0.5008, allocations: 15.42 MB / 0.6613 GB, free: 17.98 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: