Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.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.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",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.00436/0.00436, allocations: 182.4 kB / 7.46 MB, free: 2.227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7478/0.7478, allocations: 133.5 MB / 141.4 MB, free: 15.66 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.722/1.722, allocations: 221.3 MB / 395 MB, free: 10.21 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.001014/0.001015, allocations: 102.9 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5028/0.5038, allocations: 88.42 MB / 0.5529 GB, free: 89.12 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.6967, allocations: 82.31 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6054/1.302, allocations: 111.8 MB / 0.7425 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/1.303, allocations: 72.78 kB / 0.7425 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.007567/1.31, allocations: 2.477 MB / 0.7449 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/1.31, allocations: 7.5 kB / 0.745 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.784e-05/1.31, allocations: 11.66 kB / 0.745 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/1.311, allocations: 196.5 kB / 0.7452 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/1.311, allocations: 41.42 kB / 0.7452 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.18e-05/1.311, allocations: 7.812 kB / 0.7452 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001171/1.311, allocations: 23.72 kB / 0.7452 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/1.311, allocations: 76.5 kB / 0.7453 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/1.311, allocations: 0 / 0.7453 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/1.311, allocations: 1.406 kB / 0.7453 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/1.311, allocations: 0 / 0.7453 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/1.312, allocations: 321.1 kB / 0.7456 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/1.312, allocations: 50.38 kB / 0.7457 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.631e-05/1.312, allocations: 25.77 kB / 0.7457 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/1.312, allocations: 3.812 kB / 0.7457 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001242/1.312, allocations: 77.84 kB / 0.7458 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/1.312, allocations: 0 / 0.7458 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=9): time 0.0002149/1.312, allocations: 79.81 kB / 0.7458 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/1.312, allocations: 52.77 kB / 0.7459 GB, free: 25.28 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.611e-05/1.313, allocations: 123.3 kB / 0.746 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/1.313, allocations: 28.58 kB / 0.746 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/1.313, allocations: 89.11 kB / 0.7461 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/1.313, allocations: 28.53 kB / 0.7461 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/1.313, allocations: 0 / 0.7461 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001494/1.313, allocations: 321.7 kB / 0.7464 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.584e-05/1.313, allocations: 26.03 kB / 0.7465 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.784e-05/1.313, allocations: 52.16 kB / 0.7465 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.614e-05/1.313, allocations: 27.52 kB / 0.7465 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/1.313, allocations: 0 / 0.7465 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001735/1.313, allocations: 116.6 kB / 0.7467 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/1.313, allocations: 3.875 kB / 0.7467 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/1.313, allocations: 0 / 0.7467 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/1.313, allocations: 3.75 kB / 0.7467 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/1.313, allocations: 38.08 kB / 0.7467 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/1.313, allocations: 3.875 kB / 0.7467 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/1.314, allocations: 20.52 kB / 0.7467 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/1.314, allocations: 3.844 kB / 0.7467 GB, free: 24.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 2 * 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 9.657e-05/1.314, allocations: 113.8 kB / 0.7468 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/1.314, allocations: 11.66 kB / 0.7468 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.933e-05/1.314, allocations: 12.81 kB / 0.7469 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/1.314, allocations: 5.203 kB / 0.7469 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.314, allocations: 0 / 0.7469 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.314, allocations: 0 / 0.7469 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/1.314, allocations: 170.7 kB / 0.747 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/1.314, allocations: 4.688 kB / 0.747 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/1.314, allocations: 24.8 kB / 0.7471 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/1.314, allocations: 3.875 kB / 0.7471 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/1.314, allocations: 4.062 kB / 0.7471 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/1.314, allocations: 0.5625 kB / 0.7471 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.314, allocations: 0 / 0.7471 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002809/1.315, allocations: 155.4 kB / 0.7472 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004707/1.315, allocations: 0.5441 MB / 0.7477 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.449e-05/1.315, allocations: 86.03 kB / 0.7478 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/1.315, allocations: 7.469 kB / 0.7478 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/1.315, allocations: 25.81 kB / 0.7479 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.43e-05/1.315, allocations: 14.5 kB / 0.7479 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/1.315, allocations: 5.297 kB / 0.7479 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.995e-05/1.316, allocations: 92.56 kB / 0.748 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000965/1.317, allocations: 19.48 kB / 0.748 GB, free: 23.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (movingAverage.iDelay,movingAverage.iStop,firstOrder.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,step.T_start,step.count) * Number of discrete states: 1 (step.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001629/1.317, allocations: 114.6 kB / 0.7481 GB, free: 23.54 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001925/1.317, allocations: 126.8 kB / 0.7482 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.317, allocations: 0 / 0.7482 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.924e-05/1.317, allocations: 34.86 kB / 0.7482 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/1.317, allocations: 21.34 kB / 0.7483 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005451/1.318, allocations: 172.8 kB / 0.7484 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004027/1.318, allocations: 0.7201 MB / 0.7491 GB, free: 22.67 MB / 0.5105 GB Notification: Performance of SimCode: time 2.7e-07/1.318, allocations: 0 / 0.7491 GB, free: 22.67 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)