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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [: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.001016/0.001016, allocations: 178.8 kB / 7.457 MB, free: 1.539 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6771/0.6771, allocations: 133.5 MB / 141.4 MB, free: 4.887 MB / 114.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 221.4 MB / 395 MB, free: 14.04 MB / 322.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 94.52 kB / 477.8 MB, free: 11.36 MB / 402.8 MB Notification: Performance of FrontEnd - loaded program: time 0.4144/0.4154, allocations: 88.44 MB / 0.5529 GB, free: 49.95 MB / 402.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5431/0.9586, allocations: 82.3 MB / 0.6333 GB, free: 5.641 MB / 434.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/1.146, allocations: 112.4 MB / 0.7431 GB, free: 9.098 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/1.147, allocations: 67.97 kB / 0.7432 GB, free: 9.031 MB / 0.5183 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.01269/1.159, allocations: 3.634 MB / 0.7467 GB, free: 5.352 MB / 0.5183 GB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/1.16, allocations: 12 kB / 0.7467 GB, free: 5.34 MB / 0.5183 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.062e-05/1.16, allocations: 19.72 kB / 0.7467 GB, free: 5.32 MB / 0.5183 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/1.16, allocations: 238.6 kB / 0.747 GB, free: 5.047 MB / 0.5183 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/1.16, allocations: 11.98 kB / 0.747 GB, free: 5.035 MB / 0.5183 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/1.16, allocations: 4 kB / 0.747 GB, free: 5.031 MB / 0.5183 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000159/1.16, allocations: 39.94 kB / 0.747 GB, free: 4.992 MB / 0.5183 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/1.161, allocations: 113.2 kB / 0.7471 GB, free: 4.863 MB / 0.5183 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.161, allocations: 4 kB / 0.7471 GB, free: 4.859 MB / 0.5183 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/1.161, allocations: 0 / 0.7471 GB, free: 4.859 MB / 0.5183 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/1.161, allocations: 7.906 kB / 0.7471 GB, free: 4.852 MB / 0.5183 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/1.162, allocations: 0.7008 MB / 0.7478 GB, free: 4.098 MB / 0.5183 GB Notification: Performance of preOpt comSubExp (simulation): time 9.716e-05/1.162, allocations: 38.56 kB / 0.7479 GB, free: 4.051 MB / 0.5183 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.634e-05/1.162, allocations: 21.02 kB / 0.7479 GB, free: 4.027 MB / 0.5183 GB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/1.162, allocations: 8.734 kB / 0.7479 GB, free: 4.02 MB / 0.5183 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/1.162, allocations: 99.64 kB / 0.748 GB, free: 3.898 MB / 0.5183 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/1.162, allocations: 0 / 0.748 GB, free: 3.898 MB / 0.5183 GB Notification: Performance of matching and sorting (n=11): time 0.0002855/1.163, allocations: 93.42 kB / 0.7481 GB, free: 3.801 MB / 0.5183 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/1.163, allocations: 136.6 kB / 0.7482 GB, free: 3.637 MB / 0.5183 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/1.163, allocations: 153.5 kB / 0.7484 GB, free: 3.477 MB / 0.5183 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/1.163, allocations: 25.7 kB / 0.7484 GB, free: 3.445 MB / 0.5183 GB Notification: Performance of collectInitialEqns (initialization): time 9.724e-05/1.163, allocations: 123.7 kB / 0.7485 GB, free: 3.32 MB / 0.5183 GB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/1.163, allocations: 31.5 kB / 0.7485 GB, free: 3.289 MB / 0.5183 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.057e-06/1.163, allocations: 0 / 0.7485 GB, free: 3.289 MB / 0.5183 GB Notification: Performance of setup shared object (initialization): time 0.0001681/1.163, allocations: 330.8 kB / 0.7488 GB, free: 2.957 MB / 0.5183 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.555e-05/1.163, allocations: 20.38 kB / 0.7489 GB, free: 2.934 MB / 0.5183 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/1.164, allocations: 135 kB / 0.749 GB, free: 2.75 MB / 0.5183 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.424e-05/1.164, allocations: 39.98 kB / 0.749 GB, free: 2.711 MB / 0.5183 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/1.164, allocations: 4 kB / 0.749 GB, free: 2.707 MB / 0.5183 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003459/1.164, allocations: 145.6 kB / 0.7492 GB, free: 2.559 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/1.164, allocations: 12.02 kB / 0.7492 GB, free: 2.547 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/1.164, allocations: 4 kB / 0.7492 GB, free: 2.543 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/1.164, allocations: 8 kB / 0.7492 GB, free: 2.535 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/1.164, allocations: 35.92 kB / 0.7492 GB, free: 2.5 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/1.164, allocations: 8.062 kB / 0.7492 GB, free: 2.492 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/1.165, allocations: 31.89 kB / 0.7493 GB, free: 2.461 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/1.165, allocations: 8 kB / 0.7493 GB, free: 2.453 MB / 0.5183 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 0.0001315/1.165, allocations: 120.8 kB / 0.7494 GB, free: 2.328 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.42e-05/1.165, allocations: 19.81 kB / 0.7494 GB, free: 2.309 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.488e-05/1.165, allocations: 13.41 kB / 0.7494 GB, free: 2.289 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/1.165, allocations: 4 kB / 0.7494 GB, free: 2.285 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/1.165, allocations: 4 kB / 0.7494 GB, free: 2.281 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/1.165, allocations: 11.97 kB / 0.7494 GB, free: 2.27 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008334/1.166, allocations: 466.1 kB / 0.7499 GB, free: 1.77 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/1.166, allocations: 0 / 0.7499 GB, free: 1.77 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/1.166, allocations: 23.98 kB / 0.7499 GB, free: 1.746 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/1.166, allocations: 0 / 0.7499 GB, free: 1.746 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/1.166, allocations: 7.984 kB / 0.7499 GB, free: 1.738 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/1.166, allocations: 0 / 0.7499 GB, free: 1.738 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.166, allocations: 0 / 0.7499 GB, free: 1.738 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004533/1.167, allocations: 353.3 kB / 0.7503 GB, free: 1.352 MB / 0.5183 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006763/1.167, allocations: 0.7479 MB / 0.751 GB, free: 0.5586 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 7.924e-05/1.167, allocations: 92.86 kB / 0.7511 GB, free: 460 kB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/1.167, allocations: 4 kB / 0.7511 GB, free: 456 kB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/1.168, allocations: 23.97 kB / 0.7511 GB, free: 432 kB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/1.168, allocations: 11.98 kB / 0.7511 GB, free: 420 kB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/1.168, allocations: 4 kB / 0.7511 GB, free: 416 kB / 0.5183 GB Notification: Performance of sort global known variables: time 0.000124/1.168, allocations: 124.3 kB / 0.7512 GB, free: 292 kB / 0.5183 GB Notification: Performance of remove unused functions: time 0.001504/1.169, allocations: 27.91 kB / 0.7513 GB, free: 264 kB / 0.5183 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.0001836/1.17, allocations: 107.2 kB / 0.7514 GB, free: 148 kB / 0.5183 GB Notification: Performance of simCode: created initialization part: time 0.0002422/1.17, allocations: 79.8 kB / 0.7514 GB, free: 68 kB / 0.5183 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.17, allocations: 0 / 0.7514 GB, free: 68 kB / 0.5183 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/1.17, allocations: 35.94 kB / 0.7515 GB, free: 32 kB / 0.5183 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006341/1.171, allocations: 55.28 kB / 0.7515 GB, free: 15.98 MB / 0.5339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006661/1.171, allocations: 255.6 kB / 0.7518 GB, free: 15.7 MB / 0.5339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004715/1.172, allocations: 0.7471 MB / 0.7525 GB, free: 14.93 MB / 0.5339 GB Notification: Performance of SimCode: time 3.41e-07/1.172, allocations: 4 kB / 0.7525 GB, free: 14.93 MB / 0.5339 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)