Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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.Controls.OBC.CDL.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.813/1.813, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009223/0.0009224, allocations: 181.3 kB / 487 MB, free: 5.348 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.168/1.168, allocations: 221.3 MB / 0.7819 GB, free: 1.336 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.000818/0.0008182, allocations: 93.98 kB / 0.9213 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4377/0.4386, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.6306, allocations: 142.3 MB / 1.205 GB, free: 26.07 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5382/1.169, allocations: 149 MB / 1.351 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/1.169, allocations: 69.48 kB / 1.351 GB, free: 15.64 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.02394/1.193, allocations: 8.96 MB / 1.36 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/1.193, allocations: 12.97 kB / 1.36 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.422e-05/1.193, allocations: 29.52 kB / 1.36 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/1.193, allocations: 195.8 kB / 1.36 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/1.193, allocations: 251.1 kB / 1.36 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/1.194, allocations: 23.02 kB / 1.36 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002989/1.194, allocations: 139.8 kB / 1.36 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/1.194, allocations: 214.5 kB / 1.36 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/1.194, allocations: 5.672 kB / 1.36 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/1.194, allocations: 5.938 kB / 1.36 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/1.194, allocations: 9.734 kB / 1.361 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/1.195, allocations: 0.7148 MB / 1.361 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/1.196, allocations: 180.6 kB / 1.361 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/1.196, allocations: 100.8 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.567e-05/1.196, allocations: 20.2 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003542/1.196, allocations: 245.5 kB / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 2.485e-06/1.196, allocations: 0 / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.0004475/1.197, allocations: 286.3 kB / 1.362 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/1.197, allocations: 115.5 kB / 1.362 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.816e-05/1.197, allocations: 151.8 kB / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/1.197, allocations: 26.36 kB / 1.362 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.298e-05/1.197, allocations: 112.8 kB / 1.362 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.619e-05/1.197, allocations: 140.8 kB / 1.363 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.922e-05/1.197, allocations: 4 kB / 1.363 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.055e-05/1.197, allocations: 341.9 kB / 1.363 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/1.197, allocations: 118 kB / 1.363 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/1.198, allocations: 221.2 kB / 1.363 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/1.198, allocations: 129.9 kB / 1.363 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/1.198, allocations: 7.938 kB / 1.363 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005126/1.198, allocations: 397.1 kB / 1.364 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/1.198, allocations: 4.562 kB / 1.364 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/1.198, allocations: 4.156 kB / 1.364 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/1.198, allocations: 4 kB / 1.364 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/1.199, allocations: 104.5 kB / 1.364 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/1.199, allocations: 8.5 kB / 1.364 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/1.199, allocations: 64.78 kB / 1.364 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.177e-05/1.199, allocations: 24.19 kB / 1.364 GB, free: 11.57 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$PRE.movAve1.mode,movAve1.mode,$whenCondition6,$PRE.movAve2.mode,movAve2.mode,$whenCondition7,$PRE.movAve3.mode,movAve3.mode,$whenCondition8,$PRE.movAve4.mode,movAve4.mode,$whenCondition9,$PRE.movAve5.mode,movAve5.mode,$whenCondition3,$PRE.movAve6.mode,movAve6.mode,$whenCondition4,$PRE.movAve7.mode,movAve7.mode,$whenCondition1,$PRE.movAve8.mode,movAve8.mode,$whenCondition2,$PRE.movAve9.mode,movAve9.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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 8.817e-05/1.199, allocations: 132.4 kB / 1.364 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/1.199, allocations: 24.38 kB / 1.364 GB, free: 11.42 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.447e-05/1.199, allocations: 29.73 kB / 1.364 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/1.199, allocations: 4 kB / 1.364 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/1.199, allocations: 3.906 kB / 1.364 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/1.199, allocations: 6.906 kB / 1.364 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002638/1.2, allocations: 304.8 kB / 1.364 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/1.2, allocations: 3.984 kB / 1.364 GB, free: 11.17 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004117/1.2, allocations: 83.33 kB / 1.364 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/1.2, allocations: 0 / 1.364 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/1.2, allocations: 10.62 kB / 1.364 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/1.2, allocations: 3.938 kB / 1.364 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.2, allocations: 4.422 kB / 1.364 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006092/1.201, allocations: 0.5063 MB / 1.365 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008087/1.201, allocations: 1.047 MB / 1.366 GB, free: 9.863 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/1.202, allocations: 101.3 kB / 1.366 GB, free: 9.746 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.443e-05/1.202, allocations: 9.359 kB / 1.366 GB, free: 9.738 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/1.202, allocations: 41.56 kB / 1.366 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.591e-05/1.202, allocations: 36.45 kB / 1.366 GB, free: 9.695 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/1.202, allocations: 17.77 kB / 1.366 GB, free: 9.684 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6.002e-05/1.202, allocations: 116.2 kB / 1.366 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008441/1.203, allocations: 65.22 kB / 1.366 GB, free: 9.523 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.000162/1.203, allocations: 117 kB / 1.366 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004384/1.204, allocations: 327.4 kB / 1.367 GB, free: 9.18 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.204, allocations: 0 / 1.367 GB, free: 9.18 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002135/1.204, allocations: 153.6 kB / 1.367 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/1.204, allocations: 40.09 kB / 1.367 GB, free: 9.051 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008936/1.205, allocations: 488 kB / 1.367 GB, free: 8.664 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/1.205, allocations: 0.8274 MB / 1.368 GB, free: 23.86 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.205, allocations: 0 / 1.368 GB, free: 23.86 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat does not exist to compare? outputFormat=mat