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-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_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_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.004233/0.004233, allocations: 180.2 kB / 7.455 MB, free: 2.242 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7503/0.7503, allocations: 133.5 MB / 141.4 MB, free: 15.7 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.541/1.541, allocations: 221.3 MB / 395 MB, free: 10.17 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.0009656/0.0009655, allocations: 90.91 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4957/0.4967, allocations: 88.43 MB / 0.5529 GB, free: 89.21 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.684, allocations: 82.31 MB / 0.6333 GB, free: 13.99 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6026/1.287, allocations: 112.4 MB / 0.7431 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/1.287, allocations: 69.45 kB / 0.7432 GB, free: 10.72 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.009828/1.297, allocations: 3.636 MB / 0.7467 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/1.297, allocations: 8.5 kB / 0.7467 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/1.297, allocations: 19.44 kB / 0.7467 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/1.297, allocations: 238.7 kB / 0.747 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/1.297, allocations: 0.7031 kB / 0.747 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/1.297, allocations: 11.53 kB / 0.747 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001087/1.297, allocations: 38.66 kB / 0.747 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/1.298, allocations: 115.3 kB / 0.7471 GB, free: 25.83 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/1.298, allocations: 8.594 kB / 0.7471 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/1.298, allocations: 0 / 0.7471 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/1.298, allocations: 11.69 kB / 0.7472 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/1.299, allocations: 0.7043 MB / 0.7478 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.125e-05/1.299, allocations: 32.58 kB / 0.7479 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.345e-05/1.299, allocations: 20.38 kB / 0.7479 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/1.299, allocations: 0 / 0.7479 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001297/1.299, allocations: 100.8 kB / 0.748 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/1.299, allocations: 3.844 kB / 0.748 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0002413/1.299, allocations: 93.83 kB / 0.7481 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.431e-05/1.299, allocations: 137.2 kB / 0.7482 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/1.3, allocations: 153.3 kB / 0.7484 GB, free: 24.81 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/1.3, allocations: 25.7 kB / 0.7484 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/1.3, allocations: 116.3 kB / 0.7485 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/1.3, allocations: 40.86 kB / 0.7485 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/1.3, allocations: 0 / 0.7485 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001347/1.3, allocations: 326.5 kB / 0.7488 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.432e-05/1.3, allocations: 19.66 kB / 0.7489 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9e-05/1.3, allocations: 134.6 kB / 0.749 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.62e-05/1.3, allocations: 42.09 kB / 0.749 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/1.3, allocations: 0 / 0.749 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002296/1.3, allocations: 155.5 kB / 0.7492 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/1.3, allocations: 8.562 kB / 0.7492 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/1.3, allocations: 3.844 kB / 0.7492 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/1.3, allocations: 7.719 kB / 0.7492 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/1.301, allocations: 43.77 kB / 0.7492 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/1.301, allocations: 5.297 kB / 0.7492 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/1.301, allocations: 26.97 kB / 0.7493 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/1.301, allocations: 14.88 kB / 0.7493 GB, free: 24.11 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 0.0001138/1.301, allocations: 118.3 kB / 0.7494 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/1.301, allocations: 16.3 kB / 0.7494 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.168e-05/1.301, allocations: 15.48 kB / 0.7494 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/1.301, allocations: 4.688 kB / 0.7494 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.301, allocations: 3.906 kB / 0.7494 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/1.301, allocations: 4.562 kB / 0.7494 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006267/1.302, allocations: 465.6 kB / 0.7499 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/1.302, allocations: 3.906 kB / 0.7499 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/1.302, allocations: 19.72 kB / 0.7499 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/1.302, allocations: 3.906 kB / 0.7499 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/1.302, allocations: 3.891 kB / 0.7499 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/1.302, allocations: 4.359 kB / 0.7499 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.302, allocations: 0 / 0.7499 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002963/1.302, allocations: 345.8 kB / 0.7502 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000465/1.303, allocations: 0.7544 MB / 0.751 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/1.303, allocations: 94.02 kB / 0.7511 GB, free: 22.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/1.303, allocations: 0.7031 kB / 0.7511 GB, free: 22.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/1.303, allocations: 23.44 kB / 0.7511 GB, free: 22.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/1.303, allocations: 12.28 kB / 0.7511 GB, free: 22.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/1.303, allocations: 5.141 kB / 0.7511 GB, free: 22.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.58e-05/1.303, allocations: 122.5 kB / 0.7512 GB, free: 22.47 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009104/1.304, allocations: 27.52 kB / 0.7513 GB, free: 22.47 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.0001987/1.304, allocations: 104.4 kB / 0.7514 GB, free: 22.38 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002169/1.304, allocations: 81.11 kB / 0.7514 GB, free: 22.37 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.304, allocations: 3.938 kB / 0.7514 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/1.305, allocations: 35.33 kB / 0.7515 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000697/1.305, allocations: 50.66 kB / 0.7515 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005455/1.306, allocations: 246.9 kB / 0.7518 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004521/1.306, allocations: 0.7508 MB / 0.7525 GB, free: 21.5 MB / 0.5105 GB Notification: Performance of SimCode: time 3.3e-07/1.306, allocations: 0 / 0.7525 GB, free: 21.5 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)