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.001295/0.001295, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001358/0.001358, allocations: 194.2 kB / 16.25 MB, free: 6.629 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.407/1.407, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9504/0.9504, allocations: 135.6 MB / 425.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002033, allocations: 64.31 kB / 0.5054 GB, free: 5.227 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1749, allocations: 81.01 MB / 0.5845 GB, free: 4.355 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00356/0.1785, allocations: 2.001 MB / 0.5864 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.1798, allocations: 0.7014 MB / 0.5871 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1799, allocations: 3.938 kB / 0.5871 GB, free: 1.621 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002606/0.1802, allocations: 71.77 kB / 0.5872 GB, free: 1.551 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.1803, allocations: 83.7 kB / 0.5873 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006207/0.181, allocations: 171.8 kB / 0.5874 GB, free: 1.301 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003371/0.1813, allocations: 255.5 kB / 0.5877 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.1815, allocations: 74.09 kB / 0.5878 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.1817, allocations: 119.6 kB / 0.5879 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.1819, allocations: 155.5 kB / 0.588 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.908e-05/0.182, allocations: 23.94 kB / 0.588 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.1821, allocations: 87.92 kB / 0.5881 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.423e-05/0.1822, allocations: 59.83 kB / 0.5882 GB, free: 0.543 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.1823, allocations: 107.3 kB / 0.5883 GB, free: 448 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.1827, allocations: 295.1 kB / 0.5886 GB, free: 152 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.1827, allocations: 4 kB / 0.5886 GB, free: 148 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1827, allocations: 0 / 0.5886 GB, free: 148 kB / 494.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1828, allocations: 0 / 0.5886 GB, free: 148 kB / 494.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.0008944/0.1837, allocations: 0.5818 MB / 0.5891 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1837, allocations: 12.03 kB / 0.5892 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.598e-05/0.1838, allocations: 28.64 kB / 0.5892 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004482/0.1842, allocations: 306.8 kB / 0.5895 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.1843, allocations: 12.38 kB / 0.5895 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.08e-05/0.1843, allocations: 23.92 kB / 0.5895 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003955/0.1847, allocations: 219.1 kB / 0.5897 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1847, allocations: 0 / 0.5897 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.1848, allocations: 8 kB / 0.5897 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.1848, allocations: 11.94 kB / 0.5897 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.185, allocations: 128.3 kB / 0.5899 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008959/0.1859, allocations: 0.6886 MB / 0.5905 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000348/0.1863, allocations: 162.5 kB / 0.5907 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.1865, allocations: 105 kB / 0.5908 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.1865, allocations: 0 / 0.5908 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003593/0.1869, allocations: 161 kB / 0.5909 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.1869, allocations: 0 / 0.5909 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006932/0.1876, allocations: 374.9 kB / 0.5913 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.912e-05/0.1877, allocations: 140.5 kB / 0.5914 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.188, allocations: 282.7 kB / 0.5917 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.188, allocations: 25.7 kB / 0.5917 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.1882, allocations: 164.1 kB / 0.5919 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.369e-05/0.1882, allocations: 39.45 kB / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.587e-05/0.1883, allocations: 41.7 kB / 0.592 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1885, allocations: 342.7 kB / 0.5923 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.1887, allocations: 83.95 kB / 0.5924 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.1889, allocations: 133.1 kB / 0.5925 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.1893, allocations: 240.8 kB / 0.5927 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1893, allocations: 0 / 0.5927 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005738/0.1898, allocations: 338.8 kB / 0.593 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/0.1899, allocations: 35.89 kB / 0.5931 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.1899, allocations: 0 / 0.5931 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1899, allocations: 7.984 kB / 0.5931 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.1901, allocations: 16 kB / 0.5931 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.1901, allocations: 8.078 kB / 0.5931 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.1902, allocations: 35.67 kB / 0.5931 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.1902, allocations: 8 kB / 0.5932 GB, free: 11.11 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.0002104/0.1905, allocations: 191.3 kB / 0.5933 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.334e-05/0.1905, allocations: 27.72 kB / 0.5934 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.519e-05/0.1906, allocations: 25.83 kB / 0.5934 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1906, allocations: 4 kB / 0.5934 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1906, allocations: 4 kB / 0.5934 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1906, allocations: 7.922 kB / 0.5934 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003133/0.1909, allocations: 281.5 kB / 0.5937 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.1909, allocations: 4 kB / 0.5937 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.1911, allocations: 15.98 kB / 0.5937 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1911, allocations: 0 / 0.5937 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1911, allocations: 12.08 kB / 0.5937 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1911, allocations: 3.938 kB / 0.5937 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.1911, allocations: 3.938 kB / 0.5937 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007731/0.1919, allocations: 473 kB / 0.5942 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.156e-05/0.192, allocations: 100.8 kB / 0.5943 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.192, allocations: 4 kB / 0.5943 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.1922, allocations: 15.98 kB / 0.5943 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/0.1922, allocations: 27.91 kB / 0.5943 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.1923, allocations: 7.938 kB / 0.5943 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002113/0.1925, allocations: 210 kB / 0.5945 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1925, allocations: 0 / 0.5945 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002972/0.1928, allocations: 60.06 kB / 0.5946 GB, free: 9.562 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.0002364/0.193, allocations: 138.9 kB / 0.5947 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005603/0.1936, allocations: 291.2 kB / 0.595 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.1936, allocations: 4.188 kB / 0.595 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002457/0.1939, allocations: 183.3 kB / 0.5952 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.1942, allocations: 40.52 kB / 0.5952 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.1953, allocations: 0.5371 MB / 0.5957 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.1957, allocations: 0.756 MB / 0.5965 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.966e-05/0.1958, allocations: 17.55 kB / 0.5965 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.67e-05/0.1958, allocations: 19.44 kB / 0.5965 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1958, allocations: 0 / 0.5965 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of Templates: time 0.006695/0.2025, allocations: 2.65 MB / 0.5991 GB, free: 4.883 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)