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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.001194/0.001195, allocations: 102.2 kB / 16.27 MB, free: 6 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.001251/0.001251, allocations: 191 kB / 17.2 MB, free: 5.609 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.421/1.421, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8371/0.8371, allocations: 132.2 MB / 423.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 0.5024 GB, free: 11.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.404, allocations: 80.19 MB / 0.5807 GB, free: 27.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02005/0.4241, allocations: 23.28 MB / 0.6035 GB, free: 6.895 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008206/0.4323, allocations: 6.486 MB / 0.6098 GB, free: 440 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.4335, allocations: 28.41 kB / 0.6098 GB, free: 412 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009906/0.4345, allocations: 394.5 kB / 0.6102 GB, free: 16 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003148/0.4377, allocations: 1.112 MB / 0.6113 GB, free: 14.91 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002846/0.4406, allocations: 1.065 MB / 0.6123 GB, free: 13.87 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002679/0.4433, allocations: 2.004 MB / 0.6143 GB, free: 11.86 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.4444, allocations: 0.7336 MB / 0.615 GB, free: 11.11 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001545/0.4459, allocations: 0.8328 MB / 0.6158 GB, free: 10.28 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009936/0.4469, allocations: 0.708 MB / 0.6165 GB, free: 9.566 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.4471, allocations: 72 kB / 0.6166 GB, free: 9.496 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001855/0.4489, allocations: 1.002 MB / 0.6176 GB, free: 8.492 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000269/0.4492, allocations: 215.1 kB / 0.6178 GB, free: 8.281 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005371/0.4498, allocations: 0.4933 MB / 0.6183 GB, free: 7.785 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.4518, allocations: 1.48 MB / 0.6197 GB, free: 6.301 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4518, allocations: 4 kB / 0.6197 GB, free: 6.297 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4518, allocations: 0 / 0.6197 GB, free: 6.297 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.4519, allocations: 0 / 0.6197 GB, free: 6.297 MB / 462.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.002423/0.4543, allocations: 1.403 MB / 0.6211 GB, free: 4.836 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.4544, allocations: 12.03 kB / 0.6211 GB, free: 4.824 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.4546, allocations: 123.5 kB / 0.6212 GB, free: 4.703 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.4557, allocations: 0.6712 MB / 0.6219 GB, free: 3.984 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.974e-05/0.4558, allocations: 49.31 kB / 0.6219 GB, free: 3.938 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-05/0.4559, allocations: 63.94 kB / 0.622 GB, free: 3.875 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.457, allocations: 0.6663 MB / 0.6226 GB, free: 3.168 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4571, allocations: 0 / 0.6226 GB, free: 3.168 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.375e-05/0.4571, allocations: 24 kB / 0.6226 GB, free: 3.145 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.4571, allocations: 12 kB / 0.6227 GB, free: 3.133 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008733/0.458, allocations: 452.9 kB / 0.6231 GB, free: 2.691 MB / 462.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.003806/0.4618, allocations: 2.545 MB / 0.6256 GB, free: 12 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008031/0.4627, allocations: 360.1 kB / 0.6259 GB, free: 15.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003294/0.463, allocations: 192.8 kB / 0.6261 GB, free: 15.46 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000332/0.4634, allocations: 345 kB / 0.6264 GB, free: 15.05 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006637/0.464, allocations: 321.3 kB / 0.6267 GB, free: 14.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=37): time 2.976e-06/0.4641, allocations: 0 / 0.6267 GB, free: 14.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=37): time 0.001435/0.4655, allocations: 0.6924 MB / 0.6274 GB, free: 14 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.4657, allocations: 239.3 kB / 0.6276 GB, free: 13.71 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.4667, allocations: 0.8483 MB / 0.6285 GB, free: 12.84 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/0.4668, allocations: 37.7 kB / 0.6285 GB, free: 12.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.4672, allocations: 440.4 kB / 0.6289 GB, free: 12.36 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.4673, allocations: 114.3 kB / 0.629 GB, free: 12.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.4675, allocations: 138.4 kB / 0.6292 GB, free: 12.11 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4677, allocations: 326 kB / 0.6295 GB, free: 11.79 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.4681, allocations: 211.1 kB / 0.6297 GB, free: 11.58 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006051/0.4687, allocations: 371.6 kB / 0.63 GB, free: 11.15 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008302/0.4696, allocations: 0.5339 MB / 0.6306 GB, free: 10.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.4696, allocations: 4 kB / 0.6306 GB, free: 10.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001363/0.471, allocations: 0.7372 MB / 0.6313 GB, free: 9.816 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.657e-05/0.471, allocations: 41.62 kB / 0.6313 GB, free: 9.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.471, allocations: 4 kB / 0.6313 GB, free: 9.766 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.4711, allocations: 4 kB / 0.6313 GB, free: 9.762 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.4721, allocations: 171.8 kB / 0.6315 GB, free: 9.594 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.4734, allocations: 1.774 MB / 0.6332 GB, free: 7.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006915/0.4741, allocations: 95.48 kB / 0.6333 GB, free: 7.656 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.967e-05/0.4741, allocations: 27.98 kB / 0.6333 GB, free: 7.629 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006511/0.4748, allocations: 381.2 kB / 0.6337 GB, free: 7.25 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005563/0.4754, allocations: 378.1 kB / 0.6341 GB, free: 6.812 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000822/0.4762, allocations: 0.5231 MB / 0.6346 GB, free: 6.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.549e-06/0.4763, allocations: 3.938 kB / 0.6346 GB, free: 6.227 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization_lambda0): time 0.001277/0.4775, allocations: 0.7306 MB / 0.6353 GB, free: 5.48 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.4776, allocations: 37.7 kB / 0.6353 GB, free: 5.438 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.4776, allocations: 4 kB / 0.6353 GB, free: 5.434 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.4776, allocations: 8 kB / 0.6353 GB, free: 5.426 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.4781, allocations: 132.2 kB / 0.6355 GB, free: 5.297 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.4782, allocations: 15.92 kB / 0.6355 GB, free: 5.281 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.4788, allocations: 67.55 kB / 0.6355 GB, free: 5.215 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/0.4789, allocations: 27.98 kB / 0.6356 GB, free: 5.188 MB / 478.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.0002774/0.4792, allocations: 261.8 kB / 0.6358 GB, free: 4.918 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.4793, allocations: 94.81 kB / 0.6359 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.4807, allocations: 0.6637 MB / 0.6366 GB, free: 4.148 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.4807, allocations: 8.078 kB / 0.6366 GB, free: 4.141 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4807, allocations: 4 kB / 0.6366 GB, free: 4.137 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.4807, allocations: 3.984 kB / 0.6366 GB, free: 4.133 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.4829, allocations: 1.521 MB / 0.6381 GB, free: 2.543 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.4829, allocations: 4 kB / 0.6381 GB, free: 2.539 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/0.4834, allocations: 91.81 kB / 0.6381 GB, free: 2.449 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/0.4834, allocations: 4 kB / 0.6382 GB, free: 2.445 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.751e-05/0.4834, allocations: 19.92 kB / 0.6382 GB, free: 2.426 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009493/0.4844, allocations: 1.762 MB / 0.6399 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4844, allocations: 7.969 kB / 0.6399 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.4859, allocations: 1.104 MB / 0.641 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/0.4863, allocations: 211.9 kB / 0.6412 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.4864, allocations: 20.06 kB / 0.6412 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000498/0.4869, allocations: 31.95 kB / 0.6412 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.487, allocations: 47.88 kB / 0.6413 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.985e-05/0.4871, allocations: 16 kB / 0.6413 GB, free: 15.11 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007354/0.4879, allocations: 0.5748 MB / 0.6419 GB, free: 14.53 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4879, allocations: 0 / 0.6419 GB, free: 14.53 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001399/0.4893, allocations: 455.1 kB / 0.6423 GB, free: 14.08 MB / 494.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.0008438/0.4902, allocations: 343.7 kB / 0.6426 GB, free: 13.75 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002488/0.4927, allocations: 1.039 MB / 0.6436 GB, free: 12.69 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4927, allocations: 8 kB / 0.6436 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006625/0.4934, allocations: 344.9 kB / 0.644 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.4952, allocations: 326.3 kB / 0.6443 GB, free: 12.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002744/0.4979, allocations: 1.554 MB / 0.6458 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006216/0.4986, allocations: 0.9973 MB / 0.6468 GB, free: 9.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.4988, allocations: 75.41 kB / 0.6468 GB, free: 9.336 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4988, allocations: 0 / 0.6468 GB, free: 9.336 MB / 494.1 MB Notification: Performance of Templates: time 0.03005/0.5288, allocations: 23.66 MB / 0.6699 GB, free: 1.785 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (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)