Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0008003/0.0008004, allocations: 91.38 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007897/0.0007897, allocations: 181.2 kB / 16.92 MB, free: 6.652 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.293/1.293, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9291/0.9291, allocations: 135.3 MB / 427.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000314/0.0003139, allocations: 13.72 kB / 0.5082 GB, free: 4.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1556, allocations: 82.3 MB / 0.5886 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.315/0.4706, allocations: 22.5 MB / 0.6106 GB, free: 34.28 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.008136/0.4788, allocations: 6.501 MB / 0.6169 GB, free: 34.09 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.48, allocations: 23.94 kB / 0.617 GB, free: 34.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009289/0.4809, allocations: 315.5 kB / 0.6173 GB, free: 33.99 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002592/0.4835, allocations: 0.9941 MB / 0.6182 GB, free: 33.74 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002845/0.4864, allocations: 0.9744 MB / 0.6192 GB, free: 33.68 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002944/0.4893, allocations: 2.489 MB / 0.6216 GB, free: 33.34 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008652/0.4902, allocations: 0.629 MB / 0.6222 GB, free: 33.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.4914, allocations: 0.731 MB / 0.6229 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007694/0.4922, allocations: 0.6798 MB / 0.6236 GB, free: 32.91 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.469e-05/0.4923, allocations: 33.03 kB / 0.6236 GB, free: 32.91 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001617/0.4939, allocations: 0.9376 MB / 0.6246 GB, free: 32.86 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.4941, allocations: 179.8 kB / 0.6247 GB, free: 32.81 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003732/0.4945, allocations: 470.8 kB / 0.6252 GB, free: 32.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.4955, allocations: 1.044 MB / 0.6262 GB, free: 32.51 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.4955, allocations: 0 / 0.6262 GB, free: 32.51 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4955, allocations: 0 / 0.6262 GB, free: 32.51 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.4955, allocations: 4 kB / 0.6262 GB, free: 32.51 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.001712/0.4973, allocations: 1.236 MB / 0.6274 GB, free: 31.7 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.4973, allocations: 11.19 kB / 0.6274 GB, free: 31.7 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.4975, allocations: 117.8 kB / 0.6275 GB, free: 31.64 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008406/0.4983, allocations: 0.679 MB / 0.6282 GB, free: 31.3 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.965e-05/0.4984, allocations: 47.5 kB / 0.6282 GB, free: 31.3 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.4985, allocations: 65.59 kB / 0.6283 GB, free: 31.3 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008883/0.4993, allocations: 0.6774 MB / 0.629 GB, free: 31.14 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.4994, allocations: 0 / 0.629 GB, free: 31.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.75e-05/0.4994, allocations: 29.09 kB / 0.629 GB, free: 31.13 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.4994, allocations: 15.62 kB / 0.629 GB, free: 31.13 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007169/0.5002, allocations: 451 kB / 0.6294 GB, free: 30.99 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.002782/0.503, allocations: 2.55 MB / 0.6319 GB, free: 29.25 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006176/0.5036, allocations: 371.3 kB / 0.6323 GB, free: 29.12 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.5039, allocations: 194.4 kB / 0.6325 GB, free: 29.05 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002115/0.5041, allocations: 343.6 kB / 0.6328 GB, free: 28.67 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004691/0.5046, allocations: 329.7 kB / 0.6331 GB, free: 28.48 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=37): time 1.723e-06/0.5046, allocations: 0 / 0.6331 GB, free: 28.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=37): time 0.001184/0.5058, allocations: 0.7038 MB / 0.6338 GB, free: 28.22 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.201e-05/0.5059, allocations: 241.2 kB / 0.634 GB, free: 27.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007778/0.5066, allocations: 0.8491 MB / 0.6348 GB, free: 27.58 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.5067, allocations: 44.02 kB / 0.6349 GB, free: 27.54 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.5069, allocations: 428.9 kB / 0.6353 GB, free: 27.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.182e-05/0.507, allocations: 120.9 kB / 0.6354 GB, free: 27.11 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/0.5071, allocations: 63.08 kB / 0.6355 GB, free: 27.07 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.169e-05/0.5072, allocations: 326.8 kB / 0.6358 GB, free: 26.76 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.5075, allocations: 209.2 kB / 0.636 GB, free: 26.7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.508, allocations: 384.5 kB / 0.6364 GB, free: 26.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006618/0.5086, allocations: 0.5363 MB / 0.6369 GB, free: 26.14 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.5086, allocations: 3.938 kB / 0.6369 GB, free: 26.13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001053/0.5097, allocations: 0.755 MB / 0.6376 GB, free: 25.83 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.169e-05/0.5098, allocations: 202.1 kB / 0.6378 GB, free: 25.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.5098, allocations: 3.344 kB / 0.6378 GB, free: 25.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.5098, allocations: 8.5 kB / 0.6378 GB, free: 25.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000923/0.5108, allocations: 173.5 kB / 0.638 GB, free: 25.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006439/0.5114, allocations: 1.775 MB / 0.6397 GB, free: 23.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007222/0.5121, allocations: 111.1 kB / 0.6398 GB, free: 23.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.5122, allocations: 26.69 kB / 0.6399 GB, free: 23.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.444e-06/0.5122, allocations: 2.688 kB / 0.6399 GB, free: 23.75 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009574/0.5132, allocations: 0.6501 MB / 0.6405 GB, free: 23.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.5132, allocations: 2.656 kB / 0.6405 GB, free: 23.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.052e-06/0.5132, allocations: 10.12 kB / 0.6405 GB, free: 23.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004653/0.5137, allocations: 133.8 kB / 0.6406 GB, free: 23.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.5137, allocations: 11.77 kB / 0.6406 GB, free: 23.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.5143, allocations: 103 kB / 0.6407 GB, free: 23.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.5143, allocations: 26.41 kB / 0.6408 GB, free: 23.45 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 (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.0003517/0.5147, allocations: 346.4 kB / 0.6411 GB, free: 23.17 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.5148, allocations: 91.81 kB / 0.6412 GB, free: 23.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.5159, allocations: 0.6835 MB / 0.6418 GB, free: 22.85 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5159, allocations: 5 kB / 0.6419 GB, free: 22.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.5159, allocations: 0 / 0.6419 GB, free: 22.85 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.5159, allocations: 6 kB / 0.6419 GB, free: 22.85 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.5176, allocations: 1.529 MB / 0.6434 GB, free: 22.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.5177, allocations: 7.172 kB / 0.6434 GB, free: 22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003773/0.518, allocations: 97.12 kB / 0.6435 GB, free: 21.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.5181, allocations: 7.188 kB / 0.6435 GB, free: 21.99 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.5181, allocations: 12.67 kB / 0.6435 GB, free: 21.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004838/0.5186, allocations: 1.769 MB / 0.6452 GB, free: 20.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5186, allocations: 2.625 kB / 0.6452 GB, free: 20.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.5199, allocations: 1.125 MB / 0.6463 GB, free: 19.59 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002656/0.5202, allocations: 227.9 kB / 0.6465 GB, free: 19.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.5203, allocations: 10.06 kB / 0.6465 GB, free: 19.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005279/0.5208, allocations: 62.12 kB / 0.6466 GB, free: 19.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.5209, allocations: 49.69 kB / 0.6466 GB, free: 19.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.521, allocations: 21.11 kB / 0.6467 GB, free: 19.37 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0006131/0.5216, allocations: 0.5703 MB / 0.6472 GB, free: 19.13 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5216, allocations: 0 / 0.6472 GB, free: 19.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001222/0.5228, allocations: 459 kB / 0.6476 GB, free: 19.04 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 (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.0006869/0.5235, allocations: 334.1 kB / 0.648 GB, free: 18.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002181/0.5257, allocations: 1.033 MB / 0.649 GB, free: 18.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5257, allocations: 0.75 kB / 0.649 GB, free: 18.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006019/0.5263, allocations: 354.9 kB / 0.6493 GB, free: 18.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.5286, allocations: 369.6 kB / 0.6497 GB, free: 18.24 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.5314, allocations: 1.869 MB / 0.6515 GB, free: 17.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.5319, allocations: 1.009 MB / 0.6525 GB, free: 16.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.5321, allocations: 69.64 kB / 0.6525 GB, free: 16.38 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.5321, allocations: 0.9688 kB / 0.6525 GB, free: 16.38 MB / 0.4981 GB Notification: Performance of Templates: time 0.03438/0.5665, allocations: 23.76 MB / 0.6757 GB, free: 9.797 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)