Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset") translateModel(Annex60.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.001234/0.001234, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00163/0.00163, allocations: 195.9 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 205.1 MB / 222 MB, free: 4.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4365/0.4365, allocations: 54.93 MB / 324.3 MB, free: 84 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 71.91 kB / 394.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1382, allocations: 59.59 MB / 454.3 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.IntegratorWithReset): time 0.2374/0.3757, allocations: 1.835 MB / 456.1 MB, free: 38.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.3768, allocations: 0.5759 MB / 456.7 MB, free: 38.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.377, allocations: 7.375 kB / 456.7 MB, free: 38.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001836/0.3772, allocations: 23.84 kB / 456.7 MB, free: 38.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.489e-05/0.3773, allocations: 18.45 kB / 456.7 MB, free: 38.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.3775, allocations: 56.53 kB / 456.8 MB, free: 38.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.3778, allocations: 159.2 kB / 456.9 MB, free: 38.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.3779, allocations: 57.48 kB / 457 MB, free: 38.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.527e-05/0.378, allocations: 48.34 kB / 457 MB, free: 38.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.664e-05/0.3781, allocations: 59.31 kB / 457.1 MB, free: 38.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.3781, allocations: 5.688 kB / 457.1 MB, free: 38.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.042e-05/0.3782, allocations: 6.625 kB / 457.1 MB, free: 38.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.761e-05/0.3782, allocations: 27.95 kB / 457.1 MB, free: 38.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.899e-05/0.3783, allocations: 66.41 kB / 457.2 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.3785, allocations: 123.7 kB / 457.3 MB, free: 38.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3785, allocations: 0 / 457.3 MB, free: 38.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3785, allocations: 0 / 457.3 MB, free: 38.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3785, allocations: 1.5 kB / 457.3 MB, free: 38.59 MB / 382.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.0006802/0.3792, allocations: 471 kB / 457.8 MB, free: 38.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3792, allocations: 10.5 kB / 457.8 MB, free: 38.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.3793, allocations: 23.78 kB / 457.8 MB, free: 38.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.3795, allocations: 227.3 kB / 458 MB, free: 37.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.3795, allocations: 7.219 kB / 458 MB, free: 37.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.919e-05/0.3796, allocations: 17.06 kB / 458.1 MB, free: 37.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.3798, allocations: 149.2 kB / 458.2 MB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3799, allocations: 1.188 kB / 458.2 MB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.3799, allocations: 6.656 kB / 458.2 MB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3799, allocations: 2.906 kB / 458.2 MB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.3801, allocations: 71.97 kB / 458.3 MB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007937/0.3809, allocations: 0.7342 MB / 459 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.3811, allocations: 53.61 kB / 459.1 MB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.3812, allocations: 28.69 kB / 459.1 MB, free: 37.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.3812, allocations: 6.719 kB / 459.1 MB, free: 37.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003004/0.3815, allocations: 132 kB / 459.2 MB, free: 37.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 2.665e-06/0.3815, allocations: 2.781 kB / 459.2 MB, free: 37.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004414/0.382, allocations: 169.6 kB / 459.4 MB, free: 37.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.382, allocations: 132.3 kB / 459.5 MB, free: 36.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.3822, allocations: 196.4 kB / 459.7 MB, free: 36.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.3822, allocations: 29.64 kB / 459.8 MB, free: 36.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.942e-05/0.3823, allocations: 128.9 kB / 459.9 MB, free: 36.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.446e-05/0.3823, allocations: 34.34 kB / 459.9 MB, free: 36.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.3824, allocations: 39.42 kB / 460 MB, free: 36.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.3824, allocations: 328.7 kB / 460.3 MB, free: 36.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.3825, allocations: 40.38 kB / 460.3 MB, free: 36.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.3827, allocations: 151.3 kB / 460.5 MB, free: 36.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.383, allocations: 201.5 kB / 460.7 MB, free: 36.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.383, allocations: 2.969 kB / 460.7 MB, free: 36.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003204/0.3833, allocations: 208.4 kB / 460.9 MB, free: 36.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.3833, allocations: 10.53 kB / 460.9 MB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3833, allocations: 3.969 kB / 460.9 MB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3833, allocations: 5.438 kB / 460.9 MB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.3835, allocations: 30.19 kB / 460.9 MB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.3835, allocations: 13.44 kB / 460.9 MB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.3836, allocations: 31.19 kB / 461 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.3836, allocations: 12.72 kB / 461 MB, free: 36.07 MB / 382.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.309e-05/0.3837, allocations: 136.8 kB / 461.1 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.3838, allocations: 14.72 kB / 461.1 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.3838, allocations: 23.45 kB / 461.1 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3838, allocations: 2.625 kB / 461.1 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3838, allocations: 3.5 kB / 461.1 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3838, allocations: 3.328 kB / 461.1 MB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005815/0.3844, allocations: 0.5135 MB / 461.7 MB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3844, allocations: 0.9375 kB / 461.7 MB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.3846, allocations: 21.91 kB / 461.7 MB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.3846, allocations: 2.812 kB / 461.7 MB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.3846, allocations: 0 / 461.7 MB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3846, allocations: 6.844 kB / 461.7 MB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3846, allocations: 7.375 kB / 461.7 MB, free: 35.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003977/0.385, allocations: 358.6 kB / 462 MB, free: 35.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.196e-05/0.385, allocations: 95.08 kB / 462.1 MB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.3851, allocations: 7 kB / 462.1 MB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.3852, allocations: 17.48 kB / 462.2 MB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.3853, allocations: 12.78 kB / 462.2 MB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.3853, allocations: 6.359 kB / 462.2 MB, free: 35.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.088e-05/0.3854, allocations: 145.8 kB / 462.3 MB, free: 35.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3854, allocations: 1.219 kB / 462.3 MB, free: 35.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003169/0.3857, allocations: 27.34 kB / 462.4 MB, free: 35.13 MB / 382.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.848e-05/0.3858, allocations: 110.5 kB / 462.5 MB, free: 35.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003081/0.3862, allocations: 119.4 kB / 462.6 MB, free: 35.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3862, allocations: 0 / 462.6 MB, free: 35.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.3863, allocations: 52.5 kB / 462.6 MB, free: 35.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005451/0.3869, allocations: 61.7 kB / 462.7 MB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000531/0.3874, allocations: 388 kB / 463.1 MB, free: 34.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.3876, allocations: 0.7285 MB / 463.8 MB, free: 34.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.83e-05/0.3876, allocations: 14.98 kB / 463.8 MB, free: 34.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.895e-05/0.3877, allocations: 17.62 kB / 463.8 MB, free: 34.06 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3877, allocations: 0 / 463.8 MB, free: 34.06 MB / 382.1 MB Notification: Performance of Templates: time 0.003757/0.3914, allocations: 1.825 MB / 465.7 MB, free: 33.93 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.sim & ./Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)