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.001021/0.001021, allocations: 99.11 kB / 16.02 MB, free: 76 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.001425/0.001425, allocations: 185.5 kB / 16.92 MB, free: 6.75 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.326/1.326, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9283/0.9283, allocations: 135.3 MB / 427.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003278/0.0003281, allocations: 9.219 kB / 0.5082 GB, free: 4.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1666, allocations: 82.31 MB / 0.5886 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002252/0.1689, allocations: 1.654 MB / 0.5902 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.1701, allocations: 0.6975 MB / 0.5909 GB, free: 256 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.1703, allocations: 0 / 0.5909 GB, free: 256 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.1705, allocations: 79.75 kB / 0.591 GB, free: 176 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.1706, allocations: 87.69 kB / 0.5911 GB, free: 88 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.1712, allocations: 154.7 kB / 0.5912 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.1714, allocations: 239.5 kB / 0.5914 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.1716, allocations: 74.08 kB / 0.5915 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.1718, allocations: 91.61 kB / 0.5916 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.172, allocations: 127.5 kB / 0.5917 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.172, allocations: 7.938 kB / 0.5917 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.1721, allocations: 75.94 kB / 0.5918 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.836e-05/0.1722, allocations: 51.75 kB / 0.5919 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.1723, allocations: 109.1 kB / 0.592 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.1726, allocations: 219.6 kB / 0.5922 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1726, allocations: 0 / 0.5922 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1726, allocations: 0 / 0.5922 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.1726, allocations: 0 / 0.5922 GB, free: 14.96 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.0008731/0.1735, allocations: 0.5509 MB / 0.5927 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.1736, allocations: 8.031 kB / 0.5927 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.429e-05/0.1736, allocations: 32.56 kB / 0.5927 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.1741, allocations: 306.8 kB / 0.593 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.1742, allocations: 12.38 kB / 0.593 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.1742, allocations: 15.94 kB / 0.5931 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.1746, allocations: 227.9 kB / 0.5933 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1747, allocations: 0 / 0.5933 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.1747, allocations: 8 kB / 0.5933 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1747, allocations: 4 kB / 0.5933 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.175, allocations: 140.3 kB / 0.5934 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008565/0.1759, allocations: 0.6923 MB / 0.5941 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.1763, allocations: 178.5 kB / 0.5943 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.1764, allocations: 105 kB / 0.5944 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.1765, allocations: 4 kB / 0.5944 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003114/0.1768, allocations: 176.7 kB / 0.5945 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.1768, allocations: 0 / 0.5945 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007283/0.1775, allocations: 387 kB / 0.5949 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/0.1776, allocations: 132.5 kB / 0.595 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.1779, allocations: 282.6 kB / 0.5953 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.178, allocations: 33.7 kB / 0.5953 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1781, allocations: 160.1 kB / 0.5955 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.1781, allocations: 43.44 kB / 0.5955 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.972e-05/0.1782, allocations: 25.7 kB / 0.5956 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1783, allocations: 346.8 kB / 0.5959 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.1785, allocations: 87.95 kB / 0.596 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1787, allocations: 131 kB / 0.5961 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.1791, allocations: 248.8 kB / 0.5963 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1791, allocations: 0 / 0.5963 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005093/0.1796, allocations: 353.2 kB / 0.5967 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/0.1796, allocations: 37.69 kB / 0.5967 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1796, allocations: 0 / 0.5967 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1797, allocations: 4 kB / 0.5967 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.1798, allocations: 28.08 kB / 0.5967 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1798, allocations: 0 / 0.5967 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.18, allocations: 35.77 kB / 0.5968 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.18, allocations: 4 kB / 0.5968 GB, free: 9.902 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.0001757/0.1802, allocations: 187.5 kB / 0.597 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.1802, allocations: 27.7 kB / 0.597 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.352e-05/0.1803, allocations: 37.78 kB / 0.597 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1803, allocations: 0 / 0.597 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1803, allocations: 4.078 kB / 0.597 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1803, allocations: 7.875 kB / 0.597 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/0.1806, allocations: 285.4 kB / 0.5973 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1806, allocations: 3.984 kB / 0.5973 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.1807, allocations: 16 kB / 0.5973 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1807, allocations: 0 / 0.5973 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.1808, allocations: 11.98 kB / 0.5973 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1808, allocations: 3.938 kB / 0.5973 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1808, allocations: 4 kB / 0.5973 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.1815, allocations: 474.3 kB / 0.5978 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.461e-05/0.1816, allocations: 104.9 kB / 0.5979 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.1817, allocations: 8 kB / 0.5979 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.1818, allocations: 19.98 kB / 0.5979 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.906e-05/0.1819, allocations: 19.97 kB / 0.5979 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.1819, allocations: 15.92 kB / 0.598 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001795/0.1821, allocations: 201.9 kB / 0.5981 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1821, allocations: 0 / 0.5981 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002911/0.1824, allocations: 67.97 kB / 0.5982 GB, free: 8.32 MB / 0.4981 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.000209/0.1826, allocations: 127.2 kB / 0.5983 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004898/0.1831, allocations: 299.2 kB / 0.5986 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1831, allocations: 4.188 kB / 0.5986 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.1834, allocations: 191.3 kB / 0.5988 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.1837, allocations: 24.55 kB / 0.5988 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.1847, allocations: 0.5707 MB / 0.5994 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.1851, allocations: 0.7556 MB / 0.6001 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.334e-05/0.1851, allocations: 19.44 kB / 0.6001 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of SimCode: time 3.71e-07/0.1851, allocations: 0 / 0.6001 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of Templates: time 0.005366/0.1905, allocations: 2.959 MB / 0.603 GB, free: 3.309 MB / 0.4981 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)