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.001541/0.001541, allocations: 107.3 kB / 16.41 MB, free: 6.512 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.001664/0.001664, allocations: 187 kB / 17.34 MB, free: 5.742 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.39/1.39, 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.8245/0.8245, allocations: 135.1 MB / 426.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001526, allocations: 61.89 kB / 0.5863 GB, free: 21.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1842, allocations: 80.92 MB / 0.6653 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003698/0.1879, allocations: 1.942 MB / 0.6672 GB, free: 4 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001529/0.1895, allocations: 0.7206 MB / 0.6679 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.1897, allocations: 4 kB / 0.6679 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002869/0.19, allocations: 87.64 kB / 0.668 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.1902, allocations: 91.56 kB / 0.6681 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007263/0.1909, allocations: 194.9 kB / 0.6682 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.1913, allocations: 263.4 kB / 0.6685 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.1915, allocations: 73.58 kB / 0.6686 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.1918, allocations: 111.7 kB / 0.6687 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002865/0.1921, allocations: 159.4 kB / 0.6688 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.276e-05/0.1921, allocations: 20 kB / 0.6688 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.1923, allocations: 87.94 kB / 0.6689 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1924, allocations: 63.83 kB / 0.669 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.1926, allocations: 107.3 kB / 0.6691 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004325/0.193, allocations: 303 kB / 0.6694 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.193, allocations: 4 kB / 0.6694 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.014e-06/0.193, allocations: 0 / 0.6694 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.342e-05/0.1931, allocations: 0 / 0.6694 GB, free: 1.742 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.001061/0.1941, allocations: 0.5818 MB / 0.6699 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.1942, allocations: 13.11 kB / 0.67 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.862e-05/0.1943, allocations: 32.64 kB / 0.67 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005709/0.1949, allocations: 298.8 kB / 0.6703 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.1949, allocations: 20.11 kB / 0.6703 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.967e-05/0.1949, allocations: 16 kB / 0.6703 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004123/0.1954, allocations: 223.1 kB / 0.6705 GB, free: 468 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1954, allocations: 0 / 0.6705 GB, free: 468 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.1954, allocations: 4 kB / 0.6705 GB, free: 464 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1954, allocations: 4 kB / 0.6705 GB, free: 460 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.1957, allocations: 137.3 kB / 0.6707 GB, free: 324 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.1967, allocations: 0.6769 MB / 0.6713 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.1971, allocations: 166.5 kB / 0.6715 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.1973, allocations: 96.95 kB / 0.6716 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.1973, allocations: 0 / 0.6716 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.1976, allocations: 180.9 kB / 0.6717 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.216e-05/0.1976, allocations: 4.094 kB / 0.6717 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0007068/0.1983, allocations: 374.9 kB / 0.6721 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.1984, allocations: 132.6 kB / 0.6722 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.1987, allocations: 278.6 kB / 0.6725 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/0.1988, allocations: 33.7 kB / 0.6725 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.1989, allocations: 156.2 kB / 0.6727 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.577e-05/0.199, allocations: 47.38 kB / 0.6727 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.537e-05/0.1991, allocations: 45.7 kB / 0.6728 GB, free: 14 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1992, allocations: 342.8 kB / 0.6731 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.1994, allocations: 83.86 kB / 0.6732 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.1996, allocations: 135.1 kB / 0.6733 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/0.2, allocations: 245.1 kB / 0.6735 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.2, allocations: 0 / 0.6735 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005165/0.2005, allocations: 335 kB / 0.6739 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.335e-05/0.2006, allocations: 41.78 kB / 0.6739 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2006, allocations: 4 kB / 0.6739 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.2006, allocations: 0 / 0.6739 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.2008, allocations: 27.92 kB / 0.6739 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.2008, allocations: 0 / 0.6739 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.2009, allocations: 31.77 kB / 0.674 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.201, allocations: 4 kB / 0.674 GB, free: 12.71 MB / 0.5137 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.000198/0.2012, allocations: 193.5 kB / 0.6741 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/0.2012, allocations: 23.72 kB / 0.6742 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.132e-05/0.2013, allocations: 33.81 kB / 0.6742 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.2013, allocations: 4 kB / 0.6742 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2013, allocations: 0 / 0.6742 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.2013, allocations: 3.938 kB / 0.6742 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.2016, allocations: 289.4 kB / 0.6745 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2016, allocations: 0 / 0.6745 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.2017, allocations: 19.92 kB / 0.6745 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2017, allocations: 0 / 0.6745 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.2018, allocations: 12 kB / 0.6745 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.2018, allocations: 0 / 0.6745 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2018, allocations: 0 / 0.6745 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007068/0.2025, allocations: 469.1 kB / 0.675 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.019e-05/0.2026, allocations: 100.8 kB / 0.6751 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.2026, allocations: 11.94 kB / 0.6751 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.2027, allocations: 16.05 kB / 0.6751 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.078e-05/0.2028, allocations: 27.91 kB / 0.6751 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.2029, allocations: 7.984 kB / 0.6751 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002061/0.2031, allocations: 202 kB / 0.6753 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2031, allocations: 0 / 0.6753 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003253/0.2034, allocations: 55.91 kB / 0.6754 GB, free: 11.17 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.0002339/0.2036, allocations: 132.5 kB / 0.6755 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004883/0.2041, allocations: 299.3 kB / 0.6758 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2042, allocations: 0 / 0.6758 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002428/0.2044, allocations: 183.3 kB / 0.676 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.2047, allocations: 32.55 kB / 0.676 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.2058, allocations: 0.4989 MB / 0.6765 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.2062, allocations: 0.7514 MB / 0.6772 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.938e-05/0.2062, allocations: 27.42 kB / 0.6772 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.2062, allocations: 0 / 0.6772 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of Templates: time 0.00611/0.2124, allocations: 2.995 MB / 0.6802 GB, free: 6.176 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)