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.004715/0.004715, allocations: 101.3 kB / 15.73 MB, free: 6.039 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.001118/0.001118, allocations: 200.1 kB / 16.67 MB, free: 5.977 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.062/1.062, allocations: 135.1 MB / 425.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 0.5856 GB, free: 3.312 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4908/0.4922, allocations: 80.91 MB / 0.6646 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003273/0.4955, allocations: 1.95 MB / 0.6665 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.4969, allocations: 0.7147 MB / 0.6672 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.4971, allocations: 2.344 kB / 0.6672 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.4974, allocations: 78.16 kB / 0.6673 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.4976, allocations: 97.27 kB / 0.6674 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006029/0.4982, allocations: 191.7 kB / 0.6676 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000383/0.4986, allocations: 268.7 kB / 0.6678 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.4987, allocations: 66.05 kB / 0.6679 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002232/0.499, allocations: 118.2 kB / 0.668 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.4992, allocations: 151.8 kB / 0.6682 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.048e-05/0.4993, allocations: 24.72 kB / 0.6682 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.4994, allocations: 93.02 kB / 0.6683 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.4996, allocations: 62.08 kB / 0.6683 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.4997, allocations: 102.3 kB / 0.6684 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.5001, allocations: 305.8 kB / 0.6687 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.5001, allocations: 0 / 0.6687 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5001, allocations: 1.344 kB / 0.6687 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.808e-05/0.5001, allocations: 0 / 0.6687 GB, free: 4.504 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.0009693/0.5011, allocations: 0.5896 MB / 0.6693 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.5012, allocations: 9.531 kB / 0.6693 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.937e-05/0.5012, allocations: 26.81 kB / 0.6693 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.5017, allocations: 306.7 kB / 0.6696 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.5018, allocations: 14.34 kB / 0.6696 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.5018, allocations: 13.91 kB / 0.6696 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003666/0.5022, allocations: 221.1 kB / 0.6699 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.5022, allocations: 5.125 kB / 0.6699 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.5022, allocations: 9.344 kB / 0.6699 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.5022, allocations: 3.938 kB / 0.6699 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.5025, allocations: 136.3 kB / 0.67 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007651/0.5033, allocations: 0.6802 MB / 0.6707 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003235/0.5036, allocations: 163.8 kB / 0.6708 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.5038, allocations: 100.7 kB / 0.6709 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.5038, allocations: 1.406 kB / 0.6709 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002432/0.504, allocations: 174.1 kB / 0.6711 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.5041, allocations: 0 / 0.6711 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006943/0.5048, allocations: 374 kB / 0.6714 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.5048, allocations: 136.5 kB / 0.6716 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.5051, allocations: 280.3 kB / 0.6718 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.5051, allocations: 32.27 kB / 0.6719 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.583e-05/0.5052, allocations: 158.3 kB / 0.672 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.5053, allocations: 46.5 kB / 0.6721 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.676e-05/0.5053, allocations: 37.48 kB / 0.6721 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.832e-05/0.5054, allocations: 341.8 kB / 0.6724 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.5056, allocations: 87.3 kB / 0.6725 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.5058, allocations: 137.2 kB / 0.6726 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.5061, allocations: 241.8 kB / 0.6729 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5061, allocations: 0 / 0.6729 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005311/0.5066, allocations: 344.2 kB / 0.6732 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.5067, allocations: 37.56 kB / 0.6732 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.5067, allocations: 1.094 kB / 0.6732 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.5067, allocations: 1.281 kB / 0.6732 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.5068, allocations: 26.02 kB / 0.6733 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.5069, allocations: 6.094 kB / 0.6733 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.507, allocations: 26.55 kB / 0.6733 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.507, allocations: 5.906 kB / 0.6733 GB, free: 0.875 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.0001538/0.5072, allocations: 193.9 kB / 0.6735 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/0.5072, allocations: 29.2 kB / 0.6735 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.004e-05/0.5073, allocations: 23.75 kB / 0.6735 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5073, allocations: 0 / 0.6735 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.5073, allocations: 5.109 kB / 0.6735 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.5073, allocations: 3.938 kB / 0.6735 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.5075, allocations: 281.9 kB / 0.6738 GB, free: 400 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.5076, allocations: 7.984 kB / 0.6738 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.5077, allocations: 17.06 kB / 0.6738 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.5077, allocations: 0 / 0.6738 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.5077, allocations: 14.92 kB / 0.6739 GB, free: 376 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.5077, allocations: 1.812 kB / 0.6739 GB, free: 376 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.5077, allocations: 3.938 kB / 0.6739 GB, free: 372 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007282/0.5084, allocations: 467.2 kB / 0.6743 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.007e-05/0.5085, allocations: 107.4 kB / 0.6744 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.5086, allocations: 3.844 kB / 0.6744 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.5087, allocations: 15.91 kB / 0.6744 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.442e-05/0.5088, allocations: 30.47 kB / 0.6745 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.5088, allocations: 3.906 kB / 0.6745 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00022/0.5091, allocations: 206.2 kB / 0.6747 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.5091, allocations: 0 / 0.6747 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003254/0.5094, allocations: 55.94 kB / 0.6747 GB, free: 15.83 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.0002156/0.5096, allocations: 140.3 kB / 0.6748 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005139/0.5102, allocations: 289.2 kB / 0.6751 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5102, allocations: 1.719 kB / 0.6751 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.5104, allocations: 183.6 kB / 0.6753 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.5107, allocations: 42.23 kB / 0.6753 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.5119, allocations: 466.5 kB / 0.6758 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.5123, allocations: 0.7559 MB / 0.6765 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001255/0.5124, allocations: 19.14 kB / 0.6765 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.694e-05/0.5125, allocations: 17.34 kB / 0.6766 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of SimCode: time 1.81e-07/0.5125, allocations: 0 / 0.6766 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of Templates: time 0.01004/0.5225, allocations: 2.844 MB / 0.6793 GB, free: 12.97 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)