Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.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.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008533/0.0008528, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0009799/0.0009798, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.031/1.031, allocations: 135.3 MB / 426.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004452, allocations: 8 kB / 0.507 GB, free: 5.121 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1717, allocations: 82.32 MB / 0.5874 GB, free: 2.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001976/0.1737, allocations: 1.477 MB / 0.5888 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008961/0.1746, allocations: 0.5069 MB / 0.5893 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.86e-05/0.1747, allocations: 7.938 kB / 0.5893 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.836e-05/0.1748, allocations: 15.8 kB / 0.5893 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.207e-05/0.1749, allocations: 23.84 kB / 0.5894 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.175, allocations: 43.89 kB / 0.5894 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000195/0.1752, allocations: 159.5 kB / 0.5896 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.1754, allocations: 45.83 kB / 0.5896 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.926e-05/0.1754, allocations: 43.73 kB / 0.5896 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.616e-05/0.1755, allocations: 47.7 kB / 0.5897 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.1755, allocations: 4 kB / 0.5897 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.1756, allocations: 4 kB / 0.5897 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.393e-05/0.1756, allocations: 23.91 kB / 0.5897 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.096e-05/0.1756, allocations: 49.58 kB / 0.5898 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.1757, allocations: 80.05 kB / 0.5898 GB, free: 440 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1758, allocations: 4 kB / 0.5898 GB, free: 436 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1758, allocations: 0 / 0.5898 GB, free: 436 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1758, allocations: 0 / 0.5898 GB, free: 436 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006/0.1764, allocations: 462.6 kB / 0.5903 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1764, allocations: 12.03 kB / 0.5903 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.214e-05/0.1765, allocations: 19.81 kB / 0.5903 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.1767, allocations: 222.7 kB / 0.5905 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.1768, allocations: 8 kB / 0.5905 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.1768, allocations: 19.92 kB / 0.5906 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.1771, allocations: 149.9 kB / 0.5907 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.1771, allocations: 0 / 0.5907 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.1771, allocations: 0 / 0.5907 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.1771, allocations: 4 kB / 0.5907 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/0.1774, allocations: 87.88 kB / 0.5908 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000883/0.1783, allocations: 0.7394 MB / 0.5915 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/0.1784, allocations: 50.55 kB / 0.5916 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.1785, allocations: 44.83 kB / 0.5916 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.1786, allocations: 4 kB / 0.5916 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.1788, allocations: 130.7 kB / 0.5917 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.1788, allocations: 0 / 0.5917 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004796/0.1793, allocations: 181.4 kB / 0.5919 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.042e-05/0.1794, allocations: 136.7 kB / 0.592 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.1796, allocations: 202.9 kB / 0.5922 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.1797, allocations: 37.69 kB / 0.5923 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.822e-05/0.1798, allocations: 127.8 kB / 0.5924 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.1798, allocations: 35.55 kB / 0.5924 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/0.1798, allocations: 0 / 0.5924 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001719/0.18, allocations: 326.8 kB / 0.5927 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.1801, allocations: 48.34 kB / 0.5928 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1803, allocations: 149.2 kB / 0.5929 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.1805, allocations: 59.92 kB / 0.593 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1805, allocations: 0 / 0.593 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004125/0.1809, allocations: 225.4 kB / 0.5932 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1809, allocations: 8 kB / 0.5932 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.1809, allocations: 4 kB / 0.5932 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.181, allocations: 4 kB / 0.5932 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.1811, allocations: 36.17 kB / 0.5932 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1811, allocations: 4 kB / 0.5932 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.1813, allocations: 35.83 kB / 0.5933 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.1813, allocations: 23.97 kB / 0.5933 GB, free: 12.55 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.1814, allocations: 129.8 kB / 0.5934 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.723e-05/0.1815, allocations: 15.81 kB / 0.5934 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.049e-05/0.1815, allocations: 25.39 kB / 0.5935 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1815, allocations: 0 / 0.5935 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1815, allocations: 0 / 0.5935 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.1816, allocations: 4 kB / 0.5935 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007953/0.1824, allocations: 0.5365 MB / 0.594 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1824, allocations: 4 kB / 0.594 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1825, allocations: 19.98 kB / 0.594 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.1825, allocations: 4 kB / 0.594 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1825, allocations: 4 kB / 0.594 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1825, allocations: 4 kB / 0.594 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1825, allocations: 3.953 kB / 0.594 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005554/0.1831, allocations: 364.2 kB / 0.5944 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.505e-05/0.1832, allocations: 92.97 kB / 0.5945 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.1832, allocations: 8.359 kB / 0.5945 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.1834, allocations: 19.98 kB / 0.5945 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.1835, allocations: 15.94 kB / 0.5945 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.1835, allocations: 8 kB / 0.5945 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001155/0.1836, allocations: 140.5 kB / 0.5946 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.175e-06/0.1837, allocations: 0 / 0.5946 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003305/0.184, allocations: 31.94 kB / 0.5947 GB, free: 11.03 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002467/0.1842, allocations: 115.1 kB / 0.5948 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003122/0.1846, allocations: 120.3 kB / 0.5949 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.1846, allocations: 7.938 kB / 0.5949 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.1847, allocations: 51.91 kB / 0.595 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005475/0.1853, allocations: 55.73 kB / 0.595 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006489/0.1859, allocations: 399.4 kB / 0.5954 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.1863, allocations: 0.7244 MB / 0.5961 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.981e-05/0.1864, allocations: 21.53 kB / 0.5961 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.833e-05/0.1864, allocations: 19.44 kB / 0.5961 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of SimCode: time 6.42e-07/0.1864, allocations: 0 / 0.5961 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of Templates: time 0.005255/0.1917, allocations: 1.721 MB / 0.5978 GB, free: 7.766 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)