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.008135/0.008135, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7889/0.7889, allocations: 132.3 MB / 148.1 MB, free: 212 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.641/1.641, allocations: 223.1 MB / 403.2 MB, free: 6.754 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.0009767/0.0009765, allocations: 99.75 kB / 485.5 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003821, allocations: 16 kB / 0.5641 GB, free: 2.105 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.507/0.5074, allocations: 81.57 MB / 0.6438 GB, free: 39.3 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1705/0.678, allocations: 114.2 MB / 0.7553 GB, free: 5.762 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.6783, allocations: 87.92 kB / 0.7553 GB, free: 5.676 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01714/0.6955, allocations: 5.897 MB / 0.7611 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.103e-06/0.6955, allocations: 0 / 0.7611 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.951e-05/0.6955, allocations: 8 kB / 0.7611 GB, free: 15.76 MB / 0.5417 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.0009808/0.6965, allocations: 0.5896 MB / 0.7617 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.6966, allocations: 15.97 kB / 0.7617 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.854e-05/0.6967, allocations: 27.62 kB / 0.7617 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.6972, allocations: 293.5 kB / 0.762 GB, free: 14.74 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.6972, allocations: 8 kB / 0.762 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.413e-05/0.6973, allocations: 16 kB / 0.762 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005281/0.6978, allocations: 259.2 kB / 0.7623 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.6979, allocations: 0 / 0.7623 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.6979, allocations: 4 kB / 0.7623 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.6979, allocations: 8 kB / 0.7623 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.6982, allocations: 164.3 kB / 0.7624 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.6993, allocations: 0.7354 MB / 0.7632 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005122/0.6999, allocations: 222.5 kB / 0.7634 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.6999, allocations: 0 / 0.7634 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003928/0.7003, allocations: 213 kB / 0.7636 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.7003, allocations: 4 kB / 0.7636 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.001095/0.7014, allocations: 0.5584 MB / 0.7641 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.837e-05/0.7015, allocations: 136.5 kB / 0.7643 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.7018, allocations: 249.8 kB / 0.7645 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.7019, allocations: 29.64 kB / 0.7645 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.702, allocations: 164.2 kB / 0.7647 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.495e-05/0.7021, allocations: 43.44 kB / 0.7647 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.321e-05/0.7021, allocations: 4 kB / 0.7647 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.7022, allocations: 338.8 kB / 0.765 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.7025, allocations: 116.1 kB / 0.7652 GB, free: 11.31 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.7028, allocations: 165.5 kB / 0.7653 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.703, allocations: 135.9 kB / 0.7654 GB, free: 11 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.703, allocations: 0 / 0.7654 GB, free: 11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000718/0.7037, allocations: 418.7 kB / 0.7658 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.741e-05/0.7038, allocations: 44.03 kB / 0.7659 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.7038, allocations: 8 kB / 0.7659 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.7039, allocations: 0 / 0.7659 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.704, allocations: 32.08 kB / 0.7659 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.597e-06/0.7041, allocations: 0 / 0.7659 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.7042, allocations: 31.92 kB / 0.766 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.7043, allocations: 19.98 kB / 0.766 GB, free: 10.44 MB / 0.5417 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 () * Number of clocked 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.0002013/0.7045, allocations: 189.3 kB / 0.7662 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.023e-05/0.7045, allocations: 31.67 kB / 0.7662 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.664e-05/0.7046, allocations: 33.81 kB / 0.7662 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.7046, allocations: 4 kB / 0.7662 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.7046, allocations: 0 / 0.7662 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.7046, allocations: 0 / 0.7662 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003118/0.705, allocations: 293.4 kB / 0.7665 GB, free: 9.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.705, allocations: 0 / 0.7665 GB, free: 9.836 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.7051, allocations: 31.98 kB / 0.7665 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.7051, allocations: 3.953 kB / 0.7665 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.7052, allocations: 7.984 kB / 0.7665 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.7052, allocations: 0 / 0.7665 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.7052, allocations: 0 / 0.7665 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.7062, allocations: 0.59 MB / 0.7671 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.777e-05/0.7064, allocations: 92.86 kB / 0.7672 GB, free: 9.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.7064, allocations: 11.95 kB / 0.7672 GB, free: 9.059 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.7066, allocations: 36.03 kB / 0.7673 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.7067, allocations: 28.14 kB / 0.7673 GB, free: 8.996 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.7067, allocations: 15.98 kB / 0.7673 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002104/0.7069, allocations: 201.9 kB / 0.7675 GB, free: 8.789 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.31e-07/0.707, allocations: 0 / 0.7675 GB, free: 8.789 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003553/0.7073, allocations: 71.97 kB / 0.7676 GB, free: 8.719 MB / 0.5417 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) * Number of clocked states: 0 () * 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.0002527/0.7076, allocations: 134.5 kB / 0.7677 GB, free: 8.578 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005907/0.7082, allocations: 324.6 kB / 0.768 GB, free: 8.25 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.7082, allocations: 0 / 0.768 GB, free: 8.25 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.7085, allocations: 195.3 kB / 0.7682 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.7088, allocations: 28.55 kB / 0.7682 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.7098, allocations: 0.5185 MB / 0.7687 GB, free: 7.477 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.7102, allocations: 0.7597 MB / 0.7695 GB, free: 6.691 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.593e-05/0.7103, allocations: 17.42 kB / 0.7695 GB, free: 6.676 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.756e-05/0.7103, allocations: 15.44 kB / 0.7695 GB, free: 6.66 MB / 0.5417 GB Notification: Performance of SimCode: time 5.91e-07/0.7103, allocations: 0 / 0.7695 GB, free: 6.66 MB / 0.5417 GB Notification: Performance of Templates: time 0.00616/0.7165, allocations: 2.503 MB / 0.7719 GB, free: 4.18 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)