Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_dev_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.003101/0.003101, allocations: 180.1 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6884/0.6884, allocations: 133.5 MB / 141.4 MB, free: 15.69 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.422/1.422, allocations: 221.3 MB / 395 MB, free: 10.2 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.0009835/0.0009835, allocations: 97.36 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4378/0.4388, allocations: 88.43 MB / 0.5529 GB, free: 68.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.6323, allocations: 82.31 MB / 0.6333 GB, free: 2.402 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5075/1.14, allocations: 111.8 MB / 0.7425 GB, free: 16.48 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/1.14, allocations: 71.61 kB / 0.7425 GB, free: 16.48 MB / 0.5417 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.006582/1.147, allocations: 2.481 MB / 0.745 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/1.147, allocations: 11.22 kB / 0.745 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.989e-05/1.147, allocations: 11.69 kB / 0.745 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/1.147, allocations: 193.1 kB / 0.7452 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.529e-05/1.147, allocations: 36.14 kB / 0.7452 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/1.147, allocations: 7.906 kB / 0.7452 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001039/1.147, allocations: 29.19 kB / 0.7452 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/1.147, allocations: 71.92 kB / 0.7453 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/1.147, allocations: 0 / 0.7453 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/1.147, allocations: 0 / 0.7453 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/1.147, allocations: 0 / 0.7453 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004959/1.148, allocations: 323 kB / 0.7456 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/1.148, allocations: 55.45 kB / 0.7457 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.306e-05/1.148, allocations: 22.92 kB / 0.7457 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/1.148, allocations: 11.66 kB / 0.7457 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001015/1.148, allocations: 73.81 kB / 0.7458 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/1.148, allocations: 0 / 0.7458 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0001971/1.149, allocations: 83.36 kB / 0.7458 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/1.149, allocations: 59.03 kB / 0.7459 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.019e-05/1.149, allocations: 111.9 kB / 0.746 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/1.149, allocations: 32.64 kB / 0.746 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.353e-05/1.149, allocations: 91.38 kB / 0.7461 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/1.149, allocations: 33.17 kB / 0.7462 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/1.149, allocations: 0 / 0.7462 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.337e-05/1.149, allocations: 321.5 kB / 0.7465 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.669e-05/1.149, allocations: 28.69 kB / 0.7465 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.413e-05/1.149, allocations: 40.06 kB / 0.7465 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.419e-05/1.149, allocations: 27.92 kB / 0.7466 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.149, allocations: 4 kB / 0.7466 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001741/1.149, allocations: 114.7 kB / 0.7467 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/1.149, allocations: 3.875 kB / 0.7467 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/1.149, allocations: 0 / 0.7467 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/1.149, allocations: 3.906 kB / 0.7467 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/1.15, allocations: 29.25 kB / 0.7467 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/1.15, allocations: 3.844 kB / 0.7467 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/1.15, allocations: 24.8 kB / 0.7467 GB, free: 14.58 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/1.15, allocations: 7.594 kB / 0.7467 GB, free: 14.58 MB / 0.5417 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 0.000101/1.15, allocations: 115.6 kB / 0.7468 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/1.15, allocations: 7.781 kB / 0.7469 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.671e-05/1.15, allocations: 11.72 kB / 0.7469 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/1.15, allocations: 3.844 kB / 0.7469 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/1.15, allocations: 0 / 0.7469 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-06/1.15, allocations: 2.719 kB / 0.7469 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/1.15, allocations: 168.5 kB / 0.747 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/1.15, allocations: 3.844 kB / 0.747 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/1.15, allocations: 26.11 kB / 0.7471 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/1.15, allocations: 11.78 kB / 0.7471 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/1.15, allocations: 0 / 0.7471 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/1.15, allocations: 0.625 kB / 0.7471 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.15, allocations: 0 / 0.7471 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002822/1.151, allocations: 147 kB / 0.7472 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003973/1.151, allocations: 0.5491 MB / 0.7477 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/1.151, allocations: 84.92 kB / 0.7478 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/1.151, allocations: 0.8125 kB / 0.7478 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/1.151, allocations: 21.16 kB / 0.7479 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.741e-05/1.151, allocations: 20.2 kB / 0.7479 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/1.151, allocations: 3.938 kB / 0.7479 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.282e-05/1.152, allocations: 92.41 kB / 0.748 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0008278/1.152, allocations: 23.44 kB / 0.748 GB, free: 13.58 MB / 0.5417 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.0001643/1.153, allocations: 113.2 kB / 0.7481 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002136/1.153, allocations: 120.1 kB / 0.7482 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.153, allocations: 4.062 kB / 0.7482 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.015e-05/1.153, allocations: 28.78 kB / 0.7482 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/1.153, allocations: 15.72 kB / 0.7483 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005356/1.154, allocations: 182.7 kB / 0.7484 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/1.154, allocations: 0.7264 MB / 0.7491 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/1.154, allocations: 0 / 0.7491 GB, free: 12.61 MB / 0.5417 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)