Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json 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/IDEAS 3.0.0/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 169.3 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7642/0.7642, allocations: 130.7 MB / 138.7 MB, free: 3.551 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 221.5 MB / 391.8 MB, free: 14.16 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.0008904/0.0008904, allocations: 92.52 kB / 473.9 MB, free: 4.469 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.675e-05/1.665e-05, allocations: 4 kB / 0.5485 GB, free: 13.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4911/0.4912, allocations: 81.57 MB / 0.6282 GB, free: 42.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.6358, allocations: 113.5 MB / 0.739 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.6361, allocations: 75.95 kB / 0.739 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01661/0.6527, allocations: 5.85 MB / 0.7448 GB, free: 7.367 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.524e-06/0.6528, allocations: 0 / 0.7448 GB, free: 7.367 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.16e-05/0.6528, allocations: 4 kB / 0.7448 GB, free: 7.363 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008719/0.6537, allocations: 0.5502 MB / 0.7453 GB, free: 6.762 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.6537, allocations: 8.031 kB / 0.7453 GB, free: 6.754 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.992e-05/0.6538, allocations: 27.72 kB / 0.7453 GB, free: 6.727 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.6543, allocations: 293.4 kB / 0.7456 GB, free: 6.398 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.6543, allocations: 11.94 kB / 0.7456 GB, free: 6.387 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.2e-05/0.6544, allocations: 8 kB / 0.7456 GB, free: 6.379 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002396/0.6546, allocations: 132.2 kB / 0.7458 GB, free: 6.246 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.655, allocations: 227.2 kB / 0.746 GB, free: 6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.655, allocations: 0 / 0.746 GB, free: 6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.655, allocations: 4 kB / 0.746 GB, free: 5.996 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.655, allocations: 3.938 kB / 0.746 GB, free: 5.992 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009483/0.656, allocations: 0.6967 MB / 0.7467 GB, free: 5.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.6562, allocations: 150.8 kB / 0.7468 GB, free: 5.094 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.6564, allocations: 104.8 kB / 0.7469 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.6564, allocations: 0 / 0.7469 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.6566, allocations: 178 kB / 0.7471 GB, free: 4.797 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=15): time 1.522e-06/0.6566, allocations: 4 kB / 0.7471 GB, free: 4.793 MB / 0.5261 GB Notification: Performance of matching and sorting (n=15): time 0.0005941/0.6572, allocations: 298.8 kB / 0.7474 GB, free: 4.496 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.036e-05/0.6573, allocations: 140.4 kB / 0.7475 GB, free: 4.328 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.6576, allocations: 222.1 kB / 0.7477 GB, free: 4.105 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.6576, allocations: 29.7 kB / 0.7477 GB, free: 4.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.6577, allocations: 156.2 kB / 0.7479 GB, free: 3.914 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.6578, allocations: 43.45 kB / 0.7479 GB, free: 3.871 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.6578, allocations: 0 / 0.7479 GB, free: 3.871 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.6579, allocations: 338.9 kB / 0.7483 GB, free: 3.531 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.658, allocations: 104 kB / 0.7483 GB, free: 3.426 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.6582, allocations: 133.5 kB / 0.7485 GB, free: 3.277 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.6584, allocations: 83.95 kB / 0.7486 GB, free: 3.195 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.6584, allocations: 0 / 0.7486 GB, free: 3.195 MB / 0.5261 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005312/0.6589, allocations: 335.4 kB / 0.7489 GB, free: 2.863 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.659, allocations: 39.2 kB / 0.7489 GB, free: 2.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.659, allocations: 0 / 0.7489 GB, free: 2.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.659, allocations: 7.938 kB / 0.7489 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.6592, allocations: 31.97 kB / 0.749 GB, free: 2.781 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.6592, allocations: 4 kB / 0.749 GB, free: 2.777 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.6594, allocations: 39.92 kB / 0.749 GB, free: 2.738 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.6594, allocations: 8 kB / 0.749 GB, free: 2.73 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.6596, allocations: 152.2 kB / 0.7491 GB, free: 2.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.953e-05/0.6596, allocations: 27.67 kB / 0.7492 GB, free: 2.543 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.997e-05/0.6597, allocations: 25.95 kB / 0.7492 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.6597, allocations: 8 kB / 0.7492 GB, free: 2.504 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.6597, allocations: 0 / 0.7492 GB, free: 2.504 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.412e-05/0.6597, allocations: 0 / 0.7492 GB, free: 2.504 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000258/0.66, allocations: 262 kB / 0.7495 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.66, allocations: 0 / 0.7495 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.6602, allocations: 19.98 kB / 0.7495 GB, free: 2.191 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.6602, allocations: 0 / 0.7495 GB, free: 2.191 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.417e-05/0.6602, allocations: 8 kB / 0.7495 GB, free: 2.184 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.6602, allocations: 7.953 kB / 0.7495 GB, free: 2.176 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.6602, allocations: 7.984 kB / 0.7495 GB, free: 2.168 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.6609, allocations: 484.2 kB / 0.75 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.49e-05/0.661, allocations: 96.86 kB / 0.7501 GB, free: 1.566 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.6611, allocations: 12 kB / 0.7501 GB, free: 1.555 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.6613, allocations: 32.03 kB / 0.7501 GB, free: 1.523 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.01e-05/0.6614, allocations: 31.91 kB / 0.7501 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.6614, allocations: 8 kB / 0.7501 GB, free: 1.484 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001576/0.6615, allocations: 182 kB / 0.7503 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6616, allocations: 0 / 0.7503 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002964/0.6619, allocations: 67.91 kB / 0.7504 GB, free: 1.242 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * 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 (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002253/0.6621, allocations: 136 kB / 0.7505 GB, free: 1.102 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003351/0.6624, allocations: 263.3 kB / 0.7508 GB, free: 0.832 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.6624, allocations: 0 / 0.7508 GB, free: 0.832 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.6626, allocations: 171.4 kB / 0.7509 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.6629, allocations: 24.77 kB / 0.7509 GB, free: 0.6289 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008108/0.6637, allocations: 347.3 kB / 0.7513 GB, free: 276 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.6641, allocations: 0.7555 MB / 0.752 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.857e-05/0.6642, allocations: 21.19 kB / 0.752 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.6642, allocations: 15.44 kB / 0.752 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of SimCode: time 2.6e-07/0.6642, allocations: 3.938 kB / 0.752 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of Templates: time 0.005549/0.6698, allocations: 2.338 MB / 0.7543 GB, free: 13.13 MB / 0.5417 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)