Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.00625/0.00625, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001158/0.001158, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8592/0.8592, allocations: 132.2 MB / 422.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.45 kB / 0.5814 GB, free: 23.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1704, allocations: 80.22 MB / 0.6597 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002844/0.1733, allocations: 1.798 MB / 0.6614 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009254/0.1743, allocations: 0.5454 MB / 0.662 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.255e-05/0.1744, allocations: 7.938 kB / 0.662 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.1745, allocations: 23.73 kB / 0.662 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.421e-05/0.1746, allocations: 27.73 kB / 0.662 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.1748, allocations: 75.84 kB / 0.6621 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.1751, allocations: 167.5 kB / 0.6623 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.1752, allocations: 57.62 kB / 0.6623 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.256e-05/0.1753, allocations: 55.72 kB / 0.6624 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.1754, allocations: 59.64 kB / 0.6624 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.1754, allocations: 8 kB / 0.6624 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.979e-05/0.1754, allocations: 16 kB / 0.6625 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.913e-05/0.1755, allocations: 23.92 kB / 0.6625 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.861e-05/0.1756, allocations: 67.53 kB / 0.6625 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.1757, allocations: 131.4 kB / 0.6627 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1758, allocations: 0 / 0.6627 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1758, allocations: 0 / 0.6627 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.1758, allocations: 0 / 0.6627 GB, free: 7.176 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007022/0.1765, allocations: 486.7 kB / 0.6631 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.1765, allocations: 8.031 kB / 0.6631 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.1766, allocations: 16.75 kB / 0.6632 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.1769, allocations: 235.8 kB / 0.6634 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.1769, allocations: 16.38 kB / 0.6634 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.137e-05/0.1769, allocations: 12.38 kB / 0.6634 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.1772, allocations: 146.2 kB / 0.6635 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1772, allocations: 3.938 kB / 0.6635 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.1772, allocations: 4 kB / 0.6636 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1772, allocations: 4 kB / 0.6636 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.1775, allocations: 67.88 kB / 0.6636 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.1783, allocations: 0.7353 MB / 0.6643 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.1785, allocations: 54.55 kB / 0.6644 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.617e-05/0.1786, allocations: 28.84 kB / 0.6644 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.1786, allocations: 160 / 0.6644 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.1789, allocations: 142.6 kB / 0.6646 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.083e-06/0.1789, allocations: 0 / 0.6646 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004305/0.1793, allocations: 157.3 kB / 0.6647 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.628e-05/0.1794, allocations: 136.5 kB / 0.6648 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.1796, allocations: 202.7 kB / 0.665 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.1796, allocations: 29.95 kB / 0.6651 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.401e-05/0.1797, allocations: 135.8 kB / 0.6652 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.1797, allocations: 31.55 kB / 0.6652 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.648e-05/0.1798, allocations: 41.7 kB / 0.6653 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1799, allocations: 330.8 kB / 0.6656 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.18, allocations: 31.98 kB / 0.6656 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.1802, allocations: 164.1 kB / 0.6658 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.1805, allocations: 194.4 kB / 0.6659 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1805, allocations: 8 kB / 0.666 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003689/0.1809, allocations: 201.5 kB / 0.6661 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1809, allocations: 12.09 kB / 0.6662 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1809, allocations: 7.984 kB / 0.6662 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.181, allocations: 4 kB / 0.6662 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.1811, allocations: 35.92 kB / 0.6662 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.1811, allocations: 11.92 kB / 0.6662 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.1813, allocations: 27.83 kB / 0.6662 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.1813, allocations: 8 kB / 0.6662 GB, free: 3.113 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.1814, allocations: 141.9 kB / 0.6664 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.1814, allocations: 19.8 kB / 0.6664 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.078e-05/0.1815, allocations: 21.39 kB / 0.6664 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1815, allocations: 4 kB / 0.6664 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1815, allocations: 0 / 0.6664 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1815, allocations: 4 kB / 0.6664 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006867/0.1822, allocations: 0.5171 MB / 0.6669 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1822, allocations: 320 / 0.6669 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.1823, allocations: 15.98 kB / 0.6669 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1823, allocations: 7.938 kB / 0.667 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1824, allocations: 4 kB / 0.667 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.1824, allocations: 3.938 kB / 0.667 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1824, allocations: 7.938 kB / 0.667 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004501/0.1828, allocations: 348.4 kB / 0.6673 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.1829, allocations: 96.95 kB / 0.6674 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.1829, allocations: 4 kB / 0.6674 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.1831, allocations: 11.98 kB / 0.6674 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.1831, allocations: 23.86 kB / 0.6674 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1832, allocations: 4 kB / 0.6674 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.743e-05/0.1833, allocations: 139.2 kB / 0.6676 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1833, allocations: 4 kB / 0.6676 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003239/0.1836, allocations: 31.84 kB / 0.6676 GB, free: 1.609 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 (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.0001097/0.1837, allocations: 104.6 kB / 0.6677 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002953/0.184, allocations: 121.7 kB / 0.6678 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.184, allocations: 3.938 kB / 0.6678 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.1842, allocations: 47.91 kB / 0.6679 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.1847, allocations: 59.19 kB / 0.6679 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005314/0.1853, allocations: 358.9 kB / 0.6683 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.1856, allocations: 0.7281 MB / 0.669 GB, free: 144 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.366e-05/0.1856, allocations: 25.98 kB / 0.669 GB, free: 120 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.1857, allocations: 15.44 kB / 0.669 GB, free: 104 kB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1857, allocations: 0 / 0.669 GB, free: 104 kB / 0.4981 GB Notification: Performance of Templates: time 0.004692/0.1904, allocations: 2.038 MB / 0.671 GB, free: 14.09 MB / 0.5137 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)