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.001335/0.001344, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001129/0.001129, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.354/1.354, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8093/0.8093, allocations: 132.2 MB / 423.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 67.89 kB / 0.5024 GB, free: 11.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3636, allocations: 80.18 MB / 0.5807 GB, free: 27.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002815/0.3665, allocations: 1.821 MB / 0.5825 GB, free: 25.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009064/0.3674, allocations: 0.5345 MB / 0.583 GB, free: 25.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.3675, allocations: 6.625 kB / 0.583 GB, free: 25.37 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.3677, allocations: 21.73 kB / 0.5831 GB, free: 25.35 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.538e-05/0.3678, allocations: 34.56 kB / 0.5831 GB, free: 25.32 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.368, allocations: 69.16 kB / 0.5832 GB, free: 25.27 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.3682, allocations: 168 kB / 0.5833 GB, free: 25.17 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.3683, allocations: 51.23 kB / 0.5834 GB, free: 25.14 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.146e-05/0.3684, allocations: 56.25 kB / 0.5834 GB, free: 25.11 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.296e-05/0.3685, allocations: 61.69 kB / 0.5835 GB, free: 25.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.3685, allocations: 10.09 kB / 0.5835 GB, free: 25.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.264e-05/0.3685, allocations: 11.09 kB / 0.5835 GB, free: 25.06 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.021e-05/0.3686, allocations: 28.3 kB / 0.5835 GB, free: 25.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.285e-05/0.3686, allocations: 63.03 kB / 0.5836 GB, free: 24.99 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.3688, allocations: 135.4 kB / 0.5837 GB, free: 24.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3688, allocations: 0 / 0.5837 GB, free: 24.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3688, allocations: 1.969 kB / 0.5837 GB, free: 24.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.3688, allocations: 0 / 0.5837 GB, free: 24.89 MB / 446.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.0005895/0.3694, allocations: 476.5 kB / 0.5842 GB, free: 24.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.3694, allocations: 10.34 kB / 0.5842 GB, free: 24.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.3695, allocations: 23.12 kB / 0.5842 GB, free: 24.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.3697, allocations: 229.2 kB / 0.5844 GB, free: 24.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.3697, allocations: 9.125 kB / 0.5844 GB, free: 24.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.3698, allocations: 16.84 kB / 0.5845 GB, free: 24.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.37, allocations: 149.6 kB / 0.5846 GB, free: 24.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.37, allocations: 1.875 kB / 0.5846 GB, free: 24.05 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.3701, allocations: 5.125 kB / 0.5846 GB, free: 24.05 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/0.3701, allocations: 4.375 kB / 0.5846 GB, free: 24.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002229/0.3703, allocations: 70.5 kB / 0.5847 GB, free: 24.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006966/0.371, allocations: 0.7413 MB / 0.5854 GB, free: 23.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.3711, allocations: 50.34 kB / 0.5854 GB, free: 23.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.967e-05/0.3713, allocations: 31.58 kB / 0.5855 GB, free: 23.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.3713, allocations: 3.281 kB / 0.5855 GB, free: 23.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.3715, allocations: 127.3 kB / 0.5856 GB, free: 23.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.3715, allocations: 1.094 kB / 0.5856 GB, free: 23.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004757/0.372, allocations: 172.5 kB / 0.5858 GB, free: 23.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.3721, allocations: 135.9 kB / 0.5859 GB, free: 22.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.3722, allocations: 197.3 kB / 0.5861 GB, free: 22.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.3723, allocations: 27.27 kB / 0.5861 GB, free: 22.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.519e-05/0.3723, allocations: 132.4 kB / 0.5862 GB, free: 22.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.679e-05/0.3724, allocations: 33.53 kB / 0.5863 GB, free: 22.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/0.3724, allocations: 40.33 kB / 0.5863 GB, free: 22.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.835e-05/0.3725, allocations: 327.7 kB / 0.5866 GB, free: 22.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.3726, allocations: 41.12 kB / 0.5867 GB, free: 22.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.3727, allocations: 152.8 kB / 0.5868 GB, free: 21.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.373, allocations: 205.2 kB / 0.587 GB, free: 21.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.373, allocations: 1.312 kB / 0.587 GB, free: 21.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003709/0.3734, allocations: 202.6 kB / 0.5872 GB, free: 21.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3734, allocations: 6.031 kB / 0.5872 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3735, allocations: 4.938 kB / 0.5872 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.3735, allocations: 5.312 kB / 0.5872 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.3736, allocations: 36.92 kB / 0.5872 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.3736, allocations: 8.688 kB / 0.5873 GB, free: 21.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.3738, allocations: 32.73 kB / 0.5873 GB, free: 21.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.3738, allocations: 9.5 kB / 0.5873 GB, free: 21.64 MB / 446.1 MB 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 8.532e-05/0.3739, allocations: 140.4 kB / 0.5874 GB, free: 21.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.3739, allocations: 20.84 kB / 0.5874 GB, free: 21.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.988e-05/0.374, allocations: 25.11 kB / 0.5875 GB, free: 21.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.374, allocations: 2.75 kB / 0.5875 GB, free: 21.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.374, allocations: 1.406 kB / 0.5875 GB, free: 21.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.374, allocations: 1.375 kB / 0.5875 GB, free: 21.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/0.3746, allocations: 0.5076 MB / 0.588 GB, free: 21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3747, allocations: 5.188 kB / 0.588 GB, free: 20.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.3748, allocations: 20.23 kB / 0.588 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.3748, allocations: 1.969 kB / 0.588 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.3748, allocations: 2.844 kB / 0.588 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3748, allocations: 1.25 kB / 0.588 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3748, allocations: 10.56 kB / 0.588 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000442/0.3753, allocations: 357.9 kB / 0.5884 GB, free: 20.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.3753, allocations: 98.95 kB / 0.5884 GB, free: 20.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.3754, allocations: 6.031 kB / 0.5885 GB, free: 20.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.3755, allocations: 16.36 kB / 0.5885 GB, free: 20.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.3756, allocations: 14.17 kB / 0.5885 GB, free: 20.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.3756, allocations: 5.562 kB / 0.5885 GB, free: 20.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.712e-05/0.3757, allocations: 144.6 kB / 0.5886 GB, free: 20.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3757, allocations: 0 / 0.5886 GB, free: 20.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003369/0.3761, allocations: 27.31 kB / 0.5887 GB, free: 20.45 MB / 446.1 MB 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 9.934e-05/0.3762, allocations: 101.4 kB / 0.5887 GB, free: 20.35 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.3765, allocations: 121.4 kB / 0.5889 GB, free: 20.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3765, allocations: 0 / 0.5889 GB, free: 20.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.3767, allocations: 60.27 kB / 0.5889 GB, free: 20.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.3773, allocations: 73.12 kB / 0.589 GB, free: 20.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005775/0.3778, allocations: 375.5 kB / 0.5893 GB, free: 19.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.378, allocations: 0.7234 MB / 0.5901 GB, free: 19.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.767e-05/0.3781, allocations: 18.47 kB / 0.5901 GB, free: 19.21 MB / 446.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3781, allocations: 0 / 0.5901 GB, free: 19.21 MB / 446.1 MB Notification: Performance of Templates: time 0.003695/0.3818, allocations: 2.131 MB / 0.5922 GB, free: 18.07 MB / 446.1 MB 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)