Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.009238/0.009238, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.001553/0.001553, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9736/0.9736, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 59.91 kB / 0.5856 GB, free: 3.359 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5443/0.5455, allocations: 80.92 MB / 0.6646 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002799/0.5484, allocations: 1.944 MB / 0.6665 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001076/0.5495, allocations: 0.7101 MB / 0.6672 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.5496, allocations: 2.719 kB / 0.6672 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.5498, allocations: 90.09 kB / 0.6673 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001047/0.5499, allocations: 88.38 kB / 0.6674 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004913/0.5504, allocations: 186 kB / 0.6676 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000287/0.5507, allocations: 262.1 kB / 0.6678 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.5509, allocations: 77.78 kB / 0.6679 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.551, allocations: 122.7 kB / 0.668 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.5512, allocations: 144.2 kB / 0.6681 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.175e-05/0.5513, allocations: 20.22 kB / 0.6682 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.5514, allocations: 97.42 kB / 0.6683 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.175e-05/0.5515, allocations: 60.91 kB / 0.6683 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.576e-05/0.5516, allocations: 106.4 kB / 0.6684 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.552, allocations: 313.6 kB / 0.6687 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.552, allocations: 0 / 0.6687 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.552, allocations: 0 / 0.6687 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.552, allocations: 1.344 kB / 0.6687 GB, free: 4.543 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.0007378/0.5527, allocations: 0.5907 MB / 0.6693 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.5528, allocations: 10.41 kB / 0.6693 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.431e-05/0.5528, allocations: 35.25 kB / 0.6693 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004359/0.5533, allocations: 310.3 kB / 0.6696 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.5533, allocations: 13.84 kB / 0.6696 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.519e-05/0.5534, allocations: 18.22 kB / 0.6697 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/0.5537, allocations: 221.7 kB / 0.6699 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.5538, allocations: 0 / 0.6699 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.5538, allocations: 6.094 kB / 0.6699 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.5538, allocations: 3.406 kB / 0.6699 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.554, allocations: 136.3 kB / 0.67 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006888/0.5547, allocations: 0.6771 MB / 0.6707 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.5551, allocations: 172 kB / 0.6708 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.5553, allocations: 96 kB / 0.6709 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.5553, allocations: 1.25 kB / 0.6709 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.5555, allocations: 170 kB / 0.6711 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.5556, allocations: 4 kB / 0.6711 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006744/0.5562, allocations: 375 kB / 0.6715 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.5563, allocations: 135.9 kB / 0.6716 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/0.5566, allocations: 272.8 kB / 0.6718 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.5566, allocations: 35.94 kB / 0.6719 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.697e-05/0.5567, allocations: 158.4 kB / 0.672 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.5567, allocations: 46.66 kB / 0.6721 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.5568, allocations: 45.27 kB / 0.6721 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.494e-05/0.5569, allocations: 342.5 kB / 0.6724 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.557, allocations: 79 kB / 0.6725 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.5572, allocations: 132.9 kB / 0.6726 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.5575, allocations: 242 kB / 0.6729 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.5576, allocations: 0 / 0.6729 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004785/0.558, allocations: 340.2 kB / 0.6732 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.5581, allocations: 37.77 kB / 0.6732 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.5581, allocations: 5.062 kB / 0.6732 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.5581, allocations: 1.156 kB / 0.6732 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.5582, allocations: 22.2 kB / 0.6733 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.5583, allocations: 1.312 kB / 0.6733 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.5584, allocations: 31.28 kB / 0.6733 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.5584, allocations: 9.297 kB / 0.6733 GB, free: 0.9102 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.0001393/0.5586, allocations: 197.3 kB / 0.6735 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.833e-05/0.5586, allocations: 29.75 kB / 0.6735 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.5587, allocations: 30.67 kB / 0.6736 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5587, allocations: 1.281 kB / 0.6736 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.5587, allocations: 5 kB / 0.6736 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.5587, allocations: 3.938 kB / 0.6736 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.5589, allocations: 285.7 kB / 0.6738 GB, free: 424 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.5589, allocations: 4.875 kB / 0.6738 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.925e-05/0.559, allocations: 15.61 kB / 0.6739 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.559, allocations: 5.281 kB / 0.6739 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.5591, allocations: 10.38 kB / 0.6739 GB, free: 404 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.5591, allocations: 9.141 kB / 0.6739 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.5591, allocations: 0 / 0.6739 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006792/0.5597, allocations: 469.8 kB / 0.6743 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.5598, allocations: 94.81 kB / 0.6744 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.5599, allocations: 13.08 kB / 0.6744 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.56, allocations: 14.23 kB / 0.6744 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.5601, allocations: 35.12 kB / 0.6745 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.5601, allocations: 3.969 kB / 0.6745 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002009/0.5603, allocations: 209.1 kB / 0.6747 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5603, allocations: 1.281 kB / 0.6747 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002951/0.5606, allocations: 58.36 kB / 0.6747 GB, free: 15.84 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.000201/0.5608, allocations: 133.2 kB / 0.6749 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005042/0.5613, allocations: 291.1 kB / 0.6751 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5614, allocations: 0 / 0.6751 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.5616, allocations: 185 kB / 0.6753 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.5619, allocations: 32.94 kB / 0.6753 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.5629, allocations: 484.5 kB / 0.6758 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.5633, allocations: 0.7582 MB / 0.6766 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.311e-05/0.5633, allocations: 13.52 kB / 0.6766 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.413e-05/0.5634, allocations: 20.88 kB / 0.6766 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.5634, allocations: 1.5 kB / 0.6766 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of Templates: time 0.006308/0.5697, allocations: 2.838 MB / 0.6794 GB, free: 12.99 MB / 0.5137 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)