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/Complex 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) 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/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_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") [: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.002061/0.002061, allocations: 181.7 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7676/0.7676, allocations: 130.6 MB / 138.5 MB, free: 2.246 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.634/1.634, allocations: 221.3 MB / 391.4 MB, free: 13.01 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.0009247/0.0009248, allocations: 108.7 kB / 473.5 MB, free: 14.31 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 9.899e-06/9.929e-06, allocations: 2.656 kB / 0.5479 GB, free: 89.05 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.201, allocations: 81.59 MB / 0.6276 GB, free: 18.16 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4814/0.6824, allocations: 112.2 MB / 0.7371 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/0.6826, allocations: 73.23 kB / 0.7372 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.008316/0.691, allocations: 3.196 MB / 0.7403 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.533e-05/0.691, allocations: 3.812 kB / 0.7403 GB, free: 11.19 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.0006042/0.6916, allocations: 446.3 kB / 0.7408 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.6917, allocations: 11.84 kB / 0.7408 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.786e-05/0.6917, allocations: 23.25 kB / 0.7408 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.692, allocations: 229.4 kB / 0.741 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.692, allocations: 8.328 kB / 0.741 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.55e-05/0.6921, allocations: 3.875 kB / 0.741 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.701e-05/0.6922, allocations: 32.56 kB / 0.741 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.6923, allocations: 126.4 kB / 0.7412 GB, free: 26.49 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.6924, allocations: 0 / 0.7412 GB, free: 26.49 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.6924, allocations: 0 / 0.7412 GB, free: 26.49 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.6924, allocations: 7.875 kB / 0.7412 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008378/0.6932, allocations: 0.7002 MB / 0.7419 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 5.487e-05/0.6933, allocations: 34.86 kB / 0.7419 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.532e-05/0.6933, allocations: 24.53 kB / 0.7419 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.6934, allocations: 3.938 kB / 0.7419 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.6935, allocations: 96.91 kB / 0.742 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.6935, allocations: 4 kB / 0.742 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0001969/0.6937, allocations: 101 kB / 0.7421 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.6938, allocations: 133.8 kB / 0.7422 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.6939, allocations: 157 kB / 0.7424 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.6939, allocations: 26.22 kB / 0.7424 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.948e-05/0.694, allocations: 116.4 kB / 0.7425 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.694, allocations: 33.7 kB / 0.7426 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.694, allocations: 64 / 0.7426 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.6942, allocations: 338.1 kB / 0.7429 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.848e-05/0.6942, allocations: 23.66 kB / 0.7429 GB, free: 25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.626e-05/0.6943, allocations: 125 kB / 0.743 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.331e-05/0.6944, allocations: 41.75 kB / 0.7431 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6944, allocations: 3.812 kB / 0.7431 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002181/0.6946, allocations: 152.7 kB / 0.7432 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.6946, allocations: 3.844 kB / 0.7432 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.6946, allocations: 7.781 kB / 0.7432 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.6947, allocations: 8.438 kB / 0.7432 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.6948, allocations: 35.98 kB / 0.7433 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.6948, allocations: 9.172 kB / 0.7433 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.695, allocations: 27.53 kB / 0.7433 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.695, allocations: 10.94 kB / 0.7433 GB, free: 24.78 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 8.607e-05/0.6951, allocations: 114.8 kB / 0.7434 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.6951, allocations: 20.14 kB / 0.7434 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.6952, allocations: 22.52 kB / 0.7435 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.6952, allocations: 0 / 0.7435 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6952, allocations: 8.234 kB / 0.7435 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.6952, allocations: 0.5625 kB / 0.7435 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005602/0.6958, allocations: 464.9 kB / 0.7439 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.6958, allocations: 0 / 0.7439 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.6959, allocations: 24.19 kB / 0.7439 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.6959, allocations: 3.875 kB / 0.7439 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.6959, allocations: 0.75 kB / 0.7439 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.696, allocations: 7.781 kB / 0.7439 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.696, allocations: 0 / 0.7439 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002521/0.6962, allocations: 344.5 kB / 0.7443 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.841e-05/0.6963, allocations: 97.28 kB / 0.7444 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.6963, allocations: 8.703 kB / 0.7444 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.6965, allocations: 20.5 kB / 0.7444 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.293e-05/0.6966, allocations: 19.89 kB / 0.7444 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-06/0.6966, allocations: 4.5 kB / 0.7444 GB, free: 23.88 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.272e-05/0.6967, allocations: 126.8 kB / 0.7445 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003228/0.697, allocations: 23.06 kB / 0.7446 GB, free: 23.8 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.0001448/0.6971, allocations: 111.8 kB / 0.7447 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001431/0.6973, allocations: 73.77 kB / 0.7447 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.6973, allocations: 4.312 kB / 0.7447 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.666e-05/0.6974, allocations: 31.33 kB / 0.7448 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.6978, allocations: 67.27 kB / 0.7448 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004846/0.6983, allocations: 250.9 kB / 0.7451 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.6987, allocations: 0.7453 MB / 0.7458 GB, free: 22.82 MB / 0.5105 GB Notification: Performance of SimCode: time 2.61e-07/0.6987, allocations: 0 / 0.7458 GB, free: 22.82 MB / 0.5105 GB Notification: Performance of Templates: time 0.005216/0.704, allocations: 1.751 MB / 0.7475 GB, free: 22.68 MB / 0.5105 GB 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)