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.001153/0.001153, allocations: 103.2 kB / 16.36 MB, free: 6.336 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.001276/0.001276, allocations: 198 kB / 17.3 MB, free: 5.883 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8132/0.8132, allocations: 135.1 MB / 426.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 59.89 kB / 0.5067 GB, free: 7.664 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4592/0.4608, allocations: 80.91 MB / 0.5858 GB, free: 25.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003624/0.4644, allocations: 1.951 MB / 0.5877 GB, free: 24.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.4657, allocations: 0.71 MB / 0.5884 GB, free: 23.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.4658, allocations: 1.5 kB / 0.5884 GB, free: 23.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.466, allocations: 82.66 kB / 0.5884 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.4662, allocations: 98.88 kB / 0.5885 GB, free: 23.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.4668, allocations: 188.5 kB / 0.5887 GB, free: 23.33 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003/0.4671, allocations: 259.4 kB / 0.589 GB, free: 23.19 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.4673, allocations: 74.45 kB / 0.589 GB, free: 23.15 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.4674, allocations: 112.5 kB / 0.5891 GB, free: 23.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.4676, allocations: 155.5 kB / 0.5893 GB, free: 22.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.4676, allocations: 20 kB / 0.5893 GB, free: 22.9 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.4677, allocations: 92.61 kB / 0.5894 GB, free: 22.81 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.125e-05/0.4678, allocations: 59.72 kB / 0.5894 GB, free: 22.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.307e-05/0.4679, allocations: 108.1 kB / 0.5895 GB, free: 22.64 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002932/0.4682, allocations: 314.8 kB / 0.5898 GB, free: 22.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4682, allocations: 0.625 kB / 0.5898 GB, free: 22.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4682, allocations: 0.7188 kB / 0.5898 GB, free: 22.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.4683, allocations: 0 / 0.5898 GB, free: 22.34 MB / 446.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.0007549/0.469, allocations: 0.5807 MB / 0.5904 GB, free: 21.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.4691, allocations: 9.109 kB / 0.5904 GB, free: 21.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.4691, allocations: 28.66 kB / 0.5905 GB, free: 21.67 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.4695, allocations: 304.8 kB / 0.5907 GB, free: 21.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.4696, allocations: 13.45 kB / 0.5908 GB, free: 21.33 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.4696, allocations: 19.94 kB / 0.5908 GB, free: 21.31 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003206/0.4699, allocations: 222.2 kB / 0.591 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.47, allocations: 3.938 kB / 0.591 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.47, allocations: 8 kB / 0.591 GB, free: 21.06 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.47, allocations: 4 kB / 0.591 GB, free: 21.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.4702, allocations: 128.9 kB / 0.5911 GB, free: 20.93 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006674/0.4709, allocations: 0.6765 MB / 0.5918 GB, free: 20.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.4712, allocations: 172.3 kB / 0.592 GB, free: 20.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.4713, allocations: 93.95 kB / 0.592 GB, free: 19.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.4714, allocations: 4 kB / 0.592 GB, free: 19.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.4716, allocations: 170.5 kB / 0.5922 GB, free: 19.74 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 2.756e-06/0.4716, allocations: 0.5625 kB / 0.5922 GB, free: 19.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.000546/0.4721, allocations: 375.5 kB / 0.5926 GB, free: 19.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.4722, allocations: 134.9 kB / 0.5927 GB, free: 19.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.4724, allocations: 278.7 kB / 0.593 GB, free: 18.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.4724, allocations: 33.7 kB / 0.593 GB, free: 18.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.432e-05/0.4725, allocations: 160.2 kB / 0.5931 GB, free: 18.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.875e-05/0.4726, allocations: 39.45 kB / 0.5932 GB, free: 18.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.925e-05/0.4726, allocations: 38.77 kB / 0.5932 GB, free: 18.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.4727, allocations: 344.3 kB / 0.5935 GB, free: 18.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.4728, allocations: 91.89 kB / 0.5936 GB, free: 18.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.473, allocations: 132.7 kB / 0.5938 GB, free: 18.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.4733, allocations: 241.9 kB / 0.594 GB, free: 17.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4733, allocations: 0 / 0.594 GB, free: 17.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003824/0.4737, allocations: 334.8 kB / 0.5943 GB, free: 17.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.4737, allocations: 37.69 kB / 0.5943 GB, free: 17.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4737, allocations: 0 / 0.5943 GB, free: 17.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.4737, allocations: 4.594 kB / 0.5944 GB, free: 17.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.4738, allocations: 32.42 kB / 0.5944 GB, free: 17.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.4739, allocations: 3.938 kB / 0.5944 GB, free: 17.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.474, allocations: 32.8 kB / 0.5944 GB, free: 17.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.474, allocations: 16 kB / 0.5944 GB, free: 17.34 MB / 446.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.0001371/0.4741, allocations: 191.5 kB / 0.5946 GB, free: 17.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.4742, allocations: 27.72 kB / 0.5946 GB, free: 17.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.799e-05/0.4742, allocations: 25.83 kB / 0.5947 GB, free: 17.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.4742, allocations: 0 / 0.5947 GB, free: 17.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4743, allocations: 0 / 0.5947 GB, free: 17.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.4743, allocations: 4.625 kB / 0.5947 GB, free: 17.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.4744, allocations: 293.4 kB / 0.595 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.4745, allocations: 1.156 kB / 0.595 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.709e-05/0.4746, allocations: 19.98 kB / 0.595 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4746, allocations: 0 / 0.595 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.4746, allocations: 5.625 kB / 0.595 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4746, allocations: 0 / 0.595 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.4746, allocations: 0 / 0.595 GB, free: 16.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005638/0.4752, allocations: 478.1 kB / 0.5954 GB, free: 16.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.213e-05/0.4752, allocations: 98.39 kB / 0.5955 GB, free: 16.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.815e-05/0.4753, allocations: 4 kB / 0.5955 GB, free: 16.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.474e-05/0.4754, allocations: 15.98 kB / 0.5955 GB, free: 16.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.509e-05/0.4755, allocations: 29.39 kB / 0.5956 GB, free: 16.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.4755, allocations: 7.938 kB / 0.5956 GB, free: 16.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001326/0.4756, allocations: 202 kB / 0.5958 GB, free: 15.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4756, allocations: 1.344 kB / 0.5958 GB, free: 15.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.4759, allocations: 55.98 kB / 0.5958 GB, free: 15.82 MB / 446.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.000167/0.4761, allocations: 132.1 kB / 0.596 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003747/0.4764, allocations: 293.5 kB / 0.5962 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4765, allocations: 0 / 0.5962 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.4766, allocations: 183.3 kB / 0.5964 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.4769, allocations: 45.12 kB / 0.5965 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008408/0.4778, allocations: 480.2 kB / 0.5969 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.478, allocations: 0.7486 MB / 0.5976 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.677e-05/0.4781, allocations: 24.89 kB / 0.5977 GB, free: 13.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.119e-05/0.4781, allocations: 19.42 kB / 0.5977 GB, free: 13.85 MB / 446.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4781, allocations: 0.625 kB / 0.5977 GB, free: 13.85 MB / 446.1 MB Notification: Performance of Templates: time 0.005456/0.4836, allocations: 2.825 MB / 0.6004 GB, free: 11.09 MB / 446.1 MB 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)