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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 179.4 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5928/0.5928, allocations: 133.5 MB / 141.4 MB, free: 15.67 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.124/1.124, allocations: 221.3 MB / 395 MB, free: 10.18 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008715/0.0008715, allocations: 106.3 kB / 477.8 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.213e-06/7.304e-06, allocations: 2.75 kB / 0.5528 GB, free: 89.33 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1194, allocations: 82.3 MB / 0.6332 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3577/0.4771, allocations: 112.4 MB / 0.743 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001669/0.4774, allocations: 76.5 kB / 0.7431 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.007879/0.4853, allocations: 3.191 MB / 0.7462 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.167e-05/0.4853, allocations: 3.844 kB / 0.7462 GB, free: 10.55 MB / 0.4948 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.0005293/0.4858, allocations: 443 kB / 0.7466 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.4859, allocations: 11.41 kB / 0.7466 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.892e-05/0.4859, allocations: 23.34 kB / 0.7467 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.4862, allocations: 226.1 kB / 0.7469 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.4862, allocations: 4.422 kB / 0.7469 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.4862, allocations: 11.59 kB / 0.7469 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.659e-05/0.4863, allocations: 31.34 kB / 0.7469 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.4865, allocations: 122.6 kB / 0.747 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.4865, allocations: 3.938 kB / 0.747 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.4865, allocations: 0.6562 kB / 0.747 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.4865, allocations: 11.56 kB / 0.7471 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008092/0.4873, allocations: 0.7072 MB / 0.7477 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 5.394e-05/0.4874, allocations: 33.05 kB / 0.7478 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.481e-05/0.4875, allocations: 17.2 kB / 0.7478 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.4875, allocations: 3.672 kB / 0.7478 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.811e-05/0.4876, allocations: 114.1 kB / 0.7479 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.4876, allocations: 0 / 0.7479 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0001883/0.4878, allocations: 91.55 kB / 0.748 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.4878, allocations: 133 kB / 0.7481 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.488, allocations: 155.2 kB / 0.7483 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.488, allocations: 33.64 kB / 0.7483 GB, free: 24.81 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.929e-05/0.488, allocations: 111 kB / 0.7484 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.558e-05/0.4881, allocations: 36.58 kB / 0.7484 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-06/0.4881, allocations: 0 / 0.7484 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.712e-05/0.4882, allocations: 326.5 kB / 0.7488 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-05/0.4882, allocations: 20.84 kB / 0.7488 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.059e-05/0.4883, allocations: 135.1 kB / 0.7489 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.483e-05/0.4884, allocations: 41.5 kB / 0.7489 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4884, allocations: 0 / 0.7489 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001961/0.4886, allocations: 149.6 kB / 0.7491 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.185e-06/0.4886, allocations: 3.812 kB / 0.7491 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4886, allocations: 3.875 kB / 0.7491 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.4886, allocations: 9.016 kB / 0.7491 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.4888, allocations: 47.16 kB / 0.7491 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.4888, allocations: 9.203 kB / 0.7492 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.4889, allocations: 27.27 kB / 0.7492 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.4889, allocations: 15.62 kB / 0.7492 GB, free: 24.14 MB / 0.5105 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,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete 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 6.782e-05/0.489, allocations: 117.5 kB / 0.7493 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.362e-05/0.489, allocations: 16.08 kB / 0.7493 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.4891, allocations: 19.31 kB / 0.7493 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.4891, allocations: 3.781 kB / 0.7493 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4891, allocations: 7.844 kB / 0.7493 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4891, allocations: 4.547 kB / 0.7494 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/0.4896, allocations: 469.3 kB / 0.7498 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4896, allocations: 0 / 0.7498 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.4898, allocations: 19.61 kB / 0.7498 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.4898, allocations: 4 kB / 0.7498 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.4898, allocations: 4.656 kB / 0.7498 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4898, allocations: 0 / 0.7498 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4898, allocations: 3.875 kB / 0.7498 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002453/0.4901, allocations: 342 kB / 0.7502 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.126e-05/0.4902, allocations: 93.88 kB / 0.7502 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.4902, allocations: 8.422 kB / 0.7503 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.4904, allocations: 28.03 kB / 0.7503 GB, free: 23.24 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.4904, allocations: 8.062 kB / 0.7503 GB, free: 23.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-06/0.4905, allocations: 8.344 kB / 0.7503 GB, free: 23.24 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.613e-05/0.4905, allocations: 129.5 kB / 0.7504 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000299/0.4908, allocations: 27.7 kB / 0.7504 GB, free: 23.15 MB / 0.5105 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,intWitRes1.trigger,$whenCondition2) * Number of discrete 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.0001182/0.491, allocations: 110.5 kB / 0.7506 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001456/0.4911, allocations: 77.42 kB / 0.7506 GB, free: 23.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4911, allocations: 0 / 0.7506 GB, free: 23.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.099e-05/0.4912, allocations: 37.52 kB / 0.7507 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.4916, allocations: 50.34 kB / 0.7507 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004073/0.492, allocations: 247.5 kB / 0.7509 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002799/0.4923, allocations: 0.7446 MB / 0.7517 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of SimCode: time 2.5e-07/0.4923, allocations: 0 / 0.7517 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of Templates: time 0.004358/0.4967, allocations: 1.758 MB / 0.7534 GB, free: 22.04 MB / 0.5105 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)