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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00554/0.00554, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001153/0.001153, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.789/0.789, allocations: 132.2 MB / 422.7 MB, free: 6.625 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.17 kB / 0.5813 GB, free: 23.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2445, allocations: 80.21 MB / 0.6597 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.005867/0.2505, allocations: 1.933 MB / 0.6615 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002358/0.2529, allocations: 0.7285 MB / 0.6623 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002415/0.2531, allocations: 3.938 kB / 0.6623 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000363/0.2535, allocations: 79.64 kB / 0.6623 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003147/0.2539, allocations: 95.62 kB / 0.6624 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.255, allocations: 181.2 kB / 0.6626 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000607/0.2556, allocations: 271.4 kB / 0.6629 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.2559, allocations: 77.81 kB / 0.6629 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003221/0.2562, allocations: 119.6 kB / 0.6631 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004105/0.2567, allocations: 151.5 kB / 0.6632 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.997e-05/0.2568, allocations: 20 kB / 0.6632 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.2571, allocations: 87.94 kB / 0.6633 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.2572, allocations: 63.77 kB / 0.6634 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.2574, allocations: 103.3 kB / 0.6635 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006616/0.2581, allocations: 303 kB / 0.6637 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.2581, allocations: 3.938 kB / 0.6638 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2582, allocations: 4 kB / 0.6638 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.401e-05/0.2582, allocations: 0 / 0.6638 GB, free: 6.09 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001475/0.2597, allocations: 0.5819 MB / 0.6643 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.053e-05/0.2597, allocations: 8.031 kB / 0.6643 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.2599, allocations: 32.56 kB / 0.6644 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009175/0.2608, allocations: 306.9 kB / 0.6647 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.259e-05/0.2609, allocations: 12.12 kB / 0.6647 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-05/0.261, allocations: 16 kB / 0.6647 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.2617, allocations: 223.6 kB / 0.6649 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.2617, allocations: 0 / 0.6649 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.2618, allocations: 8 kB / 0.6649 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.2618, allocations: 4 kB / 0.6649 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004736/0.2623, allocations: 128.4 kB / 0.665 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.2638, allocations: 0.6846 MB / 0.6657 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006366/0.2645, allocations: 170.5 kB / 0.6659 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003168/0.2648, allocations: 105 kB / 0.666 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.2648, allocations: 0 / 0.666 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004438/0.2653, allocations: 169 kB / 0.6661 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 2.374e-06/0.2653, allocations: 0 / 0.6661 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.001221/0.2665, allocations: 373 kB / 0.6665 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.2667, allocations: 140.5 kB / 0.6666 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005033/0.2672, allocations: 282.6 kB / 0.6669 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/0.2673, allocations: 29.7 kB / 0.6669 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.2675, allocations: 160.2 kB / 0.6671 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.081e-05/0.2676, allocations: 39.36 kB / 0.6671 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.2677, allocations: 41.7 kB / 0.6671 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001892/0.2679, allocations: 342.8 kB / 0.6675 GB, free: 2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.2682, allocations: 83.95 kB / 0.6675 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003441/0.2686, allocations: 133.1 kB / 0.6677 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005799/0.2692, allocations: 241 kB / 0.6679 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2692, allocations: 0 / 0.6679 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000902/0.2701, allocations: 339 kB / 0.6682 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.044e-05/0.2702, allocations: 41.69 kB / 0.6683 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.2702, allocations: 0 / 0.6683 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.757e-05/0.2703, allocations: 4 kB / 0.6683 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.2705, allocations: 19.98 kB / 0.6683 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.2705, allocations: 4.094 kB / 0.6683 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.2708, allocations: 35.77 kB / 0.6683 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.203e-05/0.2708, allocations: 8 kB / 0.6683 GB, free: 1.051 MB / 0.4981 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003076/0.2711, allocations: 191.4 kB / 0.6685 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.625e-05/0.2712, allocations: 27.72 kB / 0.6685 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.623e-05/0.2713, allocations: 29.83 kB / 0.6686 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.2713, allocations: 0 / 0.6686 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2713, allocations: 0 / 0.6686 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.2714, allocations: 15.92 kB / 0.6686 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.2718, allocations: 289.4 kB / 0.6689 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2719, allocations: 0 / 0.6689 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.272, allocations: 12 kB / 0.6689 GB, free: 444 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.447e-06/0.272, allocations: 3.984 kB / 0.6689 GB, free: 440 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.2721, allocations: 8 kB / 0.6689 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.2721, allocations: 0 / 0.6689 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2721, allocations: 0 / 0.6689 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.2732, allocations: 470.4 kB / 0.6693 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.2734, allocations: 100.9 kB / 0.6694 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.013e-05/0.2734, allocations: 11.94 kB / 0.6694 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.2736, allocations: 11.98 kB / 0.6695 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.2738, allocations: 31.91 kB / 0.6695 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.2738, allocations: 7.984 kB / 0.6695 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004104/0.2743, allocations: 202 kB / 0.6697 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2743, allocations: 4.062 kB / 0.6697 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004999/0.2748, allocations: 55.91 kB / 0.6697 GB, free: 15.5 MB / 0.5137 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004197/0.2752, allocations: 133.6 kB / 0.6699 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000861/0.2761, allocations: 293.8 kB / 0.6701 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.2761, allocations: 192 / 0.6701 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.2765, allocations: 191.3 kB / 0.6703 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005292/0.2771, allocations: 30.42 kB / 0.6704 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.2789, allocations: 485.2 kB / 0.6708 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007367/0.2797, allocations: 0.7436 MB / 0.6715 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001344/0.2798, allocations: 17.55 kB / 0.6716 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.553e-05/0.2799, allocations: 23.44 kB / 0.6716 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of SimCode: time 6.01e-07/0.2799, allocations: 0 / 0.6716 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of Templates: time 0.01018/0.2901, allocations: 2.837 MB / 0.6744 GB, free: 10.71 MB / 0.5137 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)