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/Annex60 1.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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") [: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/Annex60 1.0.0/package.mo): time 0.266/0.266, allocations: 54.39 MB / 61.68 MB, free: 11.18 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009995/0.0009995, allocations: 181.4 kB / 75.37 MB, free: 1.484 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.373/1.373, allocations: 194.2 MB / 283.2 MB, free: 3.5 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001716/0.001715, allocations: 124.3 kB / 341.3 MB, free: 9.379 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.839e-06/9.869e-06, allocations: 0 / 404.9 MB, free: 27.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1301, allocations: 57.65 MB / 462.6 MB, free: 1.988 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3363/0.4665, allocations: 86.7 MB / 0.5364 GB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001809/0.4667, allocations: 69.41 kB / 0.5365 GB, free: 10.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.00891/0.4756, allocations: 3.114 MB / 0.5395 GB, free: 7.762 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.4757, allocations: 6.078 kB / 0.5395 GB, free: 7.758 MB / 378.7 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.0006062/0.4763, allocations: 445.2 kB / 0.5399 GB, free: 7.289 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.4764, allocations: 15.97 kB / 0.54 GB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.861e-05/0.4764, allocations: 15.81 kB / 0.54 GB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.4767, allocations: 228.6 kB / 0.5402 GB, free: 7.004 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.4767, allocations: 4 kB / 0.5402 GB, free: 7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.4768, allocations: 8 kB / 0.5402 GB, free: 6.992 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001366/0.4769, allocations: 41.05 kB / 0.5402 GB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.4771, allocations: 114.5 kB / 0.5404 GB, free: 6.848 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.4771, allocations: 8.656 kB / 0.5404 GB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.4772, allocations: 0 / 0.5404 GB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.4772, allocations: 3.984 kB / 0.5404 GB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009364/0.4781, allocations: 0.7111 MB / 0.5411 GB, free: 6.117 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.95e-05/0.4782, allocations: 34.02 kB / 0.5411 GB, free: 6.078 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.994e-05/0.4782, allocations: 19.48 kB / 0.5411 GB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.4783, allocations: 4.156 kB / 0.5411 GB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001279/0.4784, allocations: 104.2 kB / 0.5412 GB, free: 5.945 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 4.038e-06/0.4784, allocations: 3.938 kB / 0.5412 GB, free: 5.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002189/0.4786, allocations: 95.05 kB / 0.5413 GB, free: 5.852 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.622e-05/0.4787, allocations: 139.1 kB / 0.5414 GB, free: 5.688 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.4789, allocations: 167.1 kB / 0.5416 GB, free: 5.535 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.4789, allocations: 26.45 kB / 0.5416 GB, free: 5.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.479, allocations: 114.8 kB / 0.5417 GB, free: 5.395 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.457e-05/0.479, allocations: 29.11 kB / 0.5418 GB, free: 5.371 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.479, allocations: 0 / 0.5418 GB, free: 5.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.4792, allocations: 329.4 kB / 0.5421 GB, free: 5.047 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.008e-05/0.4793, allocations: 20.69 kB / 0.5421 GB, free: 5.031 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.4794, allocations: 126.9 kB / 0.5422 GB, free: 4.871 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.399e-05/0.4795, allocations: 42.42 kB / 0.5423 GB, free: 4.836 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.4795, allocations: 8 kB / 0.5423 GB, free: 4.828 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002418/0.4797, allocations: 149.2 kB / 0.5424 GB, free: 4.676 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.4798, allocations: 4 kB / 0.5424 GB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.4798, allocations: 4.5 kB / 0.5424 GB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4798, allocations: 12 kB / 0.5424 GB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.4799, allocations: 35.92 kB / 0.5425 GB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.48, allocations: 11.98 kB / 0.5425 GB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.4801, allocations: 31.83 kB / 0.5425 GB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.4802, allocations: 8 kB / 0.5425 GB, free: 4.57 MB / 378.7 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 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,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 8.213e-05/0.4802, allocations: 116.9 kB / 0.5426 GB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.4803, allocations: 15.81 kB / 0.5426 GB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.02e-05/0.4803, allocations: 17.39 kB / 0.5427 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4803, allocations: 7.906 kB / 0.5427 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4804, allocations: 0 / 0.5427 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4804, allocations: 0 / 0.5427 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000617/0.481, allocations: 474.2 kB / 0.5431 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.481, allocations: 0 / 0.5431 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.4811, allocations: 27.92 kB / 0.5431 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4812, allocations: 144 / 0.5431 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.4812, allocations: 8 kB / 0.5431 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.4812, allocations: 0 / 0.5431 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.4812, allocations: 0 / 0.5431 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003154/0.4815, allocations: 354.8 kB / 0.5435 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.159e-05/0.4816, allocations: 92.92 kB / 0.5436 GB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.4817, allocations: 4 kB / 0.5436 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.4819, allocations: 23.97 kB / 0.5436 GB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.4819, allocations: 11.98 kB / 0.5436 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.4819, allocations: 4 kB / 0.5436 GB, free: 3.324 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.81e-05/0.482, allocations: 124.3 kB / 0.5437 GB, free: 3.203 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003311/0.4824, allocations: 20 kB / 0.5438 GB, free: 3.184 MB / 378.7 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.pulsStart,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.0001418/0.4825, allocations: 113 kB / 0.5439 GB, free: 3.066 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001912/0.4827, allocations: 83.8 kB / 0.5439 GB, free: 2.984 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4827, allocations: 0 / 0.5439 GB, free: 2.984 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.534e-05/0.4828, allocations: 35.94 kB / 0.544 GB, free: 2.949 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.4832, allocations: 52 kB / 0.544 GB, free: 2.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005056/0.4838, allocations: 245.2 kB / 0.5443 GB, free: 2.625 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003473/0.4841, allocations: 0.7432 MB / 0.545 GB, free: 1.855 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4841, allocations: 0 / 0.545 GB, free: 1.855 MB / 378.7 MB Notification: Performance of Templates: time 0.004672/0.4888, allocations: 1.76 MB / 0.5467 GB, free: 108 kB / 378.7 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)