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.001254/0.001254, 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.00124/0.00124, allocations: 193.8 kB / 16.25 MB, free: 6.621 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.383/1.383, 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.9472/0.9472, allocations: 135.6 MB / 425.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 71.48 kB / 0.5054 GB, free: 5.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1664, allocations: 81.02 MB / 0.5845 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003313/0.1697, allocations: 1.876 MB / 0.5863 GB, free: 2.406 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008607/0.1706, allocations: 0.5222 MB / 0.5868 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.188e-05/0.1707, allocations: 3.938 kB / 0.5868 GB, free: 1.875 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1708, allocations: 27.8 kB / 0.5869 GB, free: 1.848 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.389e-05/0.1709, allocations: 19.84 kB / 0.5869 GB, free: 1.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.1711, allocations: 55.89 kB / 0.5869 GB, free: 1.773 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002157/0.1713, allocations: 175.5 kB / 0.5871 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1715, allocations: 45.66 kB / 0.5871 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.635e-05/0.1716, allocations: 59.72 kB / 0.5872 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.421e-05/0.1716, allocations: 55.69 kB / 0.5873 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.1717, allocations: 12 kB / 0.5873 GB, free: 1.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.073e-05/0.1717, allocations: 15.94 kB / 0.5873 GB, free: 1.414 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.01e-05/0.1717, allocations: 23.92 kB / 0.5873 GB, free: 1.391 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.322e-05/0.1718, allocations: 67.59 kB / 0.5874 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.172, allocations: 127.5 kB / 0.5875 GB, free: 1.199 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.172, allocations: 0 / 0.5875 GB, free: 1.199 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.172, allocations: 0 / 0.5875 GB, free: 1.199 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.172, allocations: 4 kB / 0.5875 GB, free: 1.195 MB / 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.0007002/0.1727, allocations: 474.5 kB / 0.5879 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.1727, allocations: 8.031 kB / 0.588 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.1728, allocations: 20.75 kB / 0.588 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.1731, allocations: 227.9 kB / 0.5882 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.1731, allocations: 8.375 kB / 0.5882 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.1731, allocations: 12.38 kB / 0.5882 GB, free: 384 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.1734, allocations: 162.2 kB / 0.5884 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1734, allocations: 0 / 0.5884 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.1735, allocations: 8 kB / 0.5884 GB, free: 196 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1735, allocations: 0 / 0.5884 GB, free: 196 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.1737, allocations: 75.88 kB / 0.5884 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009936/0.1747, allocations: 0.7469 MB / 0.5892 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.1748, allocations: 38.56 kB / 0.5892 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.491e-05/0.1749, allocations: 36.83 kB / 0.5892 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.175, allocations: 4 kB / 0.5893 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002567/0.1752, allocations: 126.6 kB / 0.5894 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.1752, allocations: 0 / 0.5894 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004465/0.1757, allocations: 165.3 kB / 0.5895 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/0.1758, allocations: 144.6 kB / 0.5897 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.176, allocations: 198.9 kB / 0.5899 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.176, allocations: 29.7 kB / 0.5899 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.296e-05/0.1761, allocations: 127.9 kB / 0.59 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.1761, allocations: 43.59 kB / 0.59 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/0.1762, allocations: 37.7 kB / 0.5901 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1764, allocations: 326.8 kB / 0.5904 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1765, allocations: 44.22 kB / 0.5904 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1767, allocations: 140.7 kB / 0.5906 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.177, allocations: 214.5 kB / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.177, allocations: 0 / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003788/0.1774, allocations: 213.3 kB / 0.591 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1774, allocations: 4 kB / 0.591 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1775, allocations: 7.984 kB / 0.591 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1775, allocations: 8 kB / 0.591 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.1776, allocations: 31.92 kB / 0.591 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.1776, allocations: 4 kB / 0.591 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.1778, allocations: 28.08 kB / 0.5911 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1778, allocations: 12 kB / 0.5911 GB, free: 13.14 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.0001206/0.1779, allocations: 137.7 kB / 0.5912 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.1779, allocations: 23.72 kB / 0.5912 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.178, allocations: 21.39 kB / 0.5912 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.178, allocations: 4 kB / 0.5913 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.178, allocations: 0 / 0.5913 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.178, allocations: 0 / 0.5913 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000789/0.1788, allocations: 0.5132 MB / 0.5918 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1788, allocations: 4 kB / 0.5918 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.1789, allocations: 15.98 kB / 0.5918 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1789, allocations: 3.938 kB / 0.5918 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.179, allocations: 8 kB / 0.5918 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.179, allocations: 0 / 0.5918 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.179, allocations: 7.938 kB / 0.5918 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004767/0.1795, allocations: 356.1 kB / 0.5921 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.979e-05/0.1795, allocations: 88.92 kB / 0.5922 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.1796, allocations: 12.03 kB / 0.5922 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.1797, allocations: 11.98 kB / 0.5922 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.1798, allocations: 19.92 kB / 0.5923 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.1798, allocations: 4 kB / 0.5923 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001107/0.1799, allocations: 135.2 kB / 0.5924 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1799, allocations: 0 / 0.5924 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003076/0.1802, allocations: 28 kB / 0.5924 GB, free: 11.65 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.0001294/0.1804, allocations: 115.1 kB / 0.5925 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003078/0.1807, allocations: 127.6 kB / 0.5926 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1807, allocations: 1 kB / 0.5926 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.1809, allocations: 56.09 kB / 0.5927 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005287/0.1814, allocations: 70.69 kB / 0.5928 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.182, allocations: 388.4 kB / 0.5931 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.1825, allocations: 0.7281 MB / 0.5939 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.653e-05/0.1825, allocations: 13.55 kB / 0.5939 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.1826, allocations: 19.44 kB / 0.5939 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1826, allocations: 0 / 0.5939 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of Templates: time 0.004756/0.1873, allocations: 1.906 MB / 0.5957 GB, free: 8.211 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)