Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.907/1.907, allocations: 387.2 MB / 394.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 181.3 kB / 487 MB, free: 5.34 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 221.3 MB / 0.7819 GB, free: 1.367 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009968/0.0009969, allocations: 96.67 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6291/0.6302, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.911, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7938/1.705, allocations: 148.7 MB / 1.351 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/1.705, allocations: 80.08 kB / 1.351 GB, free: 15.68 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.004935/1.71, allocations: 1.687 MB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/1.71, allocations: 8.5 kB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/1.71, allocations: 10.53 kB / 1.352 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/1.711, allocations: 175.4 kB / 1.352 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/1.711, allocations: 6.625 kB / 1.352 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/1.711, allocations: 6.5 kB / 1.352 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001019/1.711, allocations: 35.12 kB / 1.353 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/1.711, allocations: 67.8 kB / 1.353 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/1.711, allocations: 0 / 1.353 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/1.711, allocations: 1.375 kB / 1.353 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/1.711, allocations: 0 / 1.353 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003745/1.711, allocations: 263.5 kB / 1.353 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.848e-05/1.711, allocations: 64.27 kB / 1.353 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.263e-05/1.711, allocations: 57.59 kB / 1.353 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/1.711, allocations: 1.062 kB / 1.353 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001307/1.712, allocations: 107.1 kB / 1.353 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/1.712, allocations: 0 / 1.353 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0002449/1.712, allocations: 122.5 kB / 1.353 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/1.712, allocations: 112.2 kB / 1.353 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.707e-05/1.712, allocations: 102.1 kB / 1.353 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/1.712, allocations: 30.31 kB / 1.353 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.414e-05/1.712, allocations: 85.33 kB / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/1.712, allocations: 27.31 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/1.712, allocations: 0 / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.804e-05/1.712, allocations: 323.3 kB / 1.354 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.11e-05/1.712, allocations: 41.84 kB / 1.354 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.63e-05/1.712, allocations: 92.44 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.369e-05/1.712, allocations: 48.69 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.712, allocations: 1.344 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002233/1.713, allocations: 140.8 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/1.713, allocations: 9.812 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/1.713, allocations: 2.531 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/1.713, allocations: 8.094 kB / 1.354 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/1.713, allocations: 29.3 kB / 1.354 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/1.713, allocations: 8.125 kB / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.616e-05/1.713, allocations: 10.61 kB / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/1.713, allocations: 10.33 kB / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001073/1.713, allocations: 167.2 kB / 1.354 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.19e-05/1.713, allocations: 10.7 kB / 1.354 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.887e-05/1.713, allocations: 12.7 kB / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/1.713, allocations: 1.5 kB / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/1.713, allocations: 0 / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/1.713, allocations: 0.7969 kB / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/1.713, allocations: 159.3 kB / 1.355 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.713, allocations: 2.75 kB / 1.355 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.842e-05/1.713, allocations: 10.66 kB / 1.355 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/1.713, allocations: 3.906 kB / 1.355 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/1.713, allocations: 4.031 kB / 1.355 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/1.713, allocations: 1.5 kB / 1.355 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.713, allocations: 0.5156 kB / 1.355 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002402/1.714, allocations: 166.4 kB / 1.355 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003218/1.714, allocations: 0.534 MB / 1.355 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/1.714, allocations: 83.75 kB / 1.355 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/1.714, allocations: 7.453 kB / 1.355 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.3e-05/1.714, allocations: 6.344 kB / 1.355 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-05/1.714, allocations: 7.609 kB / 1.355 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/1.714, allocations: 8.094 kB / 1.355 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.623e-05/1.714, allocations: 85.88 kB / 1.355 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000804/1.715, allocations: 18.44 kB / 1.355 GB, free: 12.75 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001318/1.715, allocations: 112.1 kB / 1.356 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002475/1.715, allocations: 124.2 kB / 1.356 GB, free: 12.61 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.715, allocations: 4.875 kB / 1.356 GB, free: 12.61 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000166/1.716, allocations: 151.4 kB / 1.356 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/1.716, allocations: 10.73 kB / 1.356 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003292/1.716, allocations: 119.8 kB / 1.356 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/1.716, allocations: 0.7037 MB / 1.357 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of SimCode: time 2.31e-07/1.716, allocations: 0 / 1.357 GB, free: 11.79 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)