Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Annex60.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.00116/0.00116, allocations: 108 kB / 15.61 MB, free: 152 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.001559/0.00156, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4129/0.4129, allocations: 54.94 MB / 324.7 MB, free: 15.92 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 71.89 kB / 395.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1569, allocations: 59.6 MB / 454.9 MB, free: 128 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.3134/0.4704, allocations: 1.929 MB / 456.9 MB, free: 38.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.4717, allocations: 0.7487 MB / 457.6 MB, free: 38.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.4718, allocations: 5.969 kB / 457.6 MB, free: 38.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002589/0.4721, allocations: 87.33 kB / 457.7 MB, free: 38.74 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.4723, allocations: 86.61 kB / 457.8 MB, free: 38.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005837/0.4729, allocations: 184.9 kB / 458 MB, free: 38.72 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002743/0.4731, allocations: 266.8 kB / 458.2 MB, free: 38.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.4733, allocations: 69.38 kB / 458.3 MB, free: 38.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.4735, allocations: 113.4 kB / 458.4 MB, free: 38.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.4737, allocations: 150.4 kB / 458.5 MB, free: 38.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.4737, allocations: 25.03 kB / 458.6 MB, free: 38.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.4739, allocations: 93.59 kB / 458.7 MB, free: 38.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-05/0.4739, allocations: 56.59 kB / 458.7 MB, free: 38.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.595e-05/0.474, allocations: 104.8 kB / 458.8 MB, free: 38.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.4744, allocations: 303.5 kB / 459.1 MB, free: 38.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4744, allocations: 0 / 459.1 MB, free: 38.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4744, allocations: 3.562 kB / 459.1 MB, free: 38.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.4744, allocations: 0 / 459.1 MB, free: 38.55 MB / 382.1 MB 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.0008466/0.4753, allocations: 0.586 MB / 459.7 MB, free: 38.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.4753, allocations: 9.688 kB / 459.7 MB, free: 38.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.81e-05/0.4754, allocations: 28.53 kB / 459.7 MB, free: 38.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.4758, allocations: 300.9 kB / 460 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.4758, allocations: 14.28 kB / 460.1 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.081e-05/0.4759, allocations: 13.83 kB / 460.1 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.4763, allocations: 228.9 kB / 460.3 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.4763, allocations: 3.656 kB / 460.3 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.4763, allocations: 10 kB / 460.3 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.4763, allocations: 0 / 460.3 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002325/0.4766, allocations: 126.5 kB / 460.4 MB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007394/0.4773, allocations: 0.6848 MB / 461.1 MB, free: 37.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.4777, allocations: 173 kB / 461.3 MB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.4778, allocations: 98.77 kB / 461.4 MB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.4778, allocations: 2.969 kB / 461.4 MB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003333/0.4782, allocations: 163.2 kB / 461.5 MB, free: 37.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.4782, allocations: 0 / 461.5 MB, free: 37.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006412/0.4788, allocations: 380.7 kB / 461.9 MB, free: 37.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.4789, allocations: 138.4 kB / 462 MB, free: 36.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.4792, allocations: 276.6 kB / 462.3 MB, free: 36.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.4792, allocations: 33.67 kB / 462.3 MB, free: 36.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.162e-05/0.4793, allocations: 155.2 kB / 462.5 MB, free: 36.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.105e-05/0.4793, allocations: 46.55 kB / 462.5 MB, free: 36.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.4794, allocations: 40.44 kB / 462.6 MB, free: 36.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.823e-05/0.4795, allocations: 343.3 kB / 462.9 MB, free: 36.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.4796, allocations: 83.31 kB / 463 MB, free: 36.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.4798, allocations: 134 kB / 463.1 MB, free: 36.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.4801, allocations: 242.5 kB / 463.4 MB, free: 36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4801, allocations: 0 / 463.4 MB, free: 36 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004168/0.4805, allocations: 344.1 kB / 463.7 MB, free: 35.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.4806, allocations: 39.06 kB / 463.7 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.4806, allocations: 1.875 kB / 463.7 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.4806, allocations: 3.469 kB / 463.7 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.4807, allocations: 23.47 kB / 463.8 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.4807, allocations: 0 / 463.8 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.4808, allocations: 26.42 kB / 463.8 MB, free: 35.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.4809, allocations: 6 kB / 463.8 MB, free: 35.82 MB / 382.1 MB 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.0001526/0.481, allocations: 204.5 kB / 464 MB, free: 35.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.4811, allocations: 26.12 kB / 464 MB, free: 35.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.34e-05/0.4811, allocations: 31.72 kB / 464.1 MB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4811, allocations: 0.9375 kB / 464.1 MB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.4812, allocations: 4.312 kB / 464.1 MB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4812, allocations: 128 / 464.1 MB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.4814, allocations: 290.9 kB / 464.3 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4814, allocations: 2.812 kB / 464.4 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.57e-05/0.4815, allocations: 14.38 kB / 464.4 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.4815, allocations: 0 / 464.4 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.4815, allocations: 2.781 kB / 464.4 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.4815, allocations: 5.938 kB / 464.4 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4815, allocations: 1.938 kB / 464.4 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005939/0.4821, allocations: 476.4 kB / 464.8 MB, free: 35.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.282e-05/0.4822, allocations: 97.89 kB / 464.9 MB, free: 35.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.4822, allocations: 9.344 kB / 464.9 MB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.805e-05/0.4823, allocations: 12.66 kB / 465 MB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.368e-05/0.4824, allocations: 22.55 kB / 465 MB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.4825, allocations: 9.781 kB / 465 MB, free: 35.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001653/0.4826, allocations: 205.5 kB / 465.2 MB, free: 34.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.4826, allocations: 0 / 465.2 MB, free: 34.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.4829, allocations: 63.5 kB / 465.3 MB, free: 34.92 MB / 382.1 MB 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.0001946/0.4831, allocations: 130 kB / 465.4 MB, free: 34.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004757/0.4836, allocations: 298.3 kB / 465.7 MB, free: 34.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4836, allocations: 0 / 465.7 MB, free: 34.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.4838, allocations: 186.3 kB / 465.9 MB, free: 34.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.4842, allocations: 33.27 kB / 465.9 MB, free: 34.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009159/0.4851, allocations: 486.5 kB / 466.4 MB, free: 34.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.4853, allocations: 0.7488 MB / 467.1 MB, free: 33.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.344e-05/0.4854, allocations: 26.14 kB / 467.1 MB, free: 33.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.4854, allocations: 18.25 kB / 467.2 MB, free: 33.6 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4854, allocations: 1.031 kB / 467.2 MB, free: 33.6 MB / 382.1 MB Notification: Performance of Templates: time 0.005788/0.4912, allocations: 2.83 MB / 470 MB, free: 33.43 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)