Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",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.843/1.843, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009578/0.0009578, allocations: 185.3 kB / 487 MB, free: 5.355 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.159/1.159, allocations: 221.3 MB / 0.7819 GB, free: 1.355 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.0008132/0.0008131, allocations: 99.58 kB / 0.9213 GB, free: 2.59 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.435/0.4358, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.628, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5155/1.144, allocations: 149.1 MB / 1.351 GB, free: 16.2 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/1.144, allocations: 68.44 kB / 1.351 GB, free: 16.2 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.01512/1.159, allocations: 5.69 MB / 1.357 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/1.159, allocations: 13.19 kB / 1.357 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.295e-05/1.159, allocations: 22.67 kB / 1.357 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/1.159, allocations: 238.2 kB / 1.357 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/1.159, allocations: 16.59 kB / 1.357 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.453e-05/1.159, allocations: 21.3 kB / 1.357 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001565/1.16, allocations: 71.3 kB / 1.357 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/1.16, allocations: 174.6 kB / 1.357 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/1.16, allocations: 0.6562 kB / 1.357 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/1.16, allocations: 4.266 kB / 1.357 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/1.16, allocations: 2.906 kB / 1.357 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005753/1.16, allocations: 456.5 kB / 1.358 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/1.161, allocations: 122.5 kB / 1.358 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/1.161, allocations: 89.64 kB / 1.358 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/1.161, allocations: 2.469 kB / 1.358 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/1.161, allocations: 195.8 kB / 1.358 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=28): time 2.284e-06/1.161, allocations: 1 kB / 1.358 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28): time 0.0004468/1.162, allocations: 244.6 kB / 1.358 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/1.162, allocations: 57.09 kB / 1.358 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.262e-05/1.162, allocations: 122.6 kB / 1.358 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/1.162, allocations: 39.48 kB / 1.358 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.965e-05/1.162, allocations: 101.1 kB / 1.358 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.332e-05/1.162, allocations: 69.19 kB / 1.359 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/1.162, allocations: 3.219 kB / 1.359 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.013e-05/1.162, allocations: 329.7 kB / 1.359 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/1.162, allocations: 120.1 kB / 1.359 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/1.162, allocations: 185.2 kB / 1.359 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004456/1.163, allocations: 167.6 kB / 1.359 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.163, allocations: 0 / 1.359 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008297/1.164, allocations: 412.8 kB / 1.36 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/1.164, allocations: 5.391 kB / 1.36 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/1.164, allocations: 2.094 kB / 1.36 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/1.164, allocations: 3.781 kB / 1.36 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002795/1.164, allocations: 58.48 kB / 1.36 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/1.164, allocations: 2.875 kB / 1.36 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/1.164, allocations: 99.08 kB / 1.36 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/1.164, allocations: 25.7 kB / 1.36 GB, free: 14 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * 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.0001267/1.165, allocations: 145.7 kB / 1.36 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/1.165, allocations: 17.08 kB / 1.36 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.907e-05/1.165, allocations: 14.16 kB / 1.36 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/1.165, allocations: 2.938 kB / 1.36 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/1.165, allocations: 3.906 kB / 1.36 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/1.165, allocations: 2.516 kB / 1.36 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005665/1.165, allocations: 0.5118 MB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/1.165, allocations: 0.6562 kB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.473e-05/1.165, allocations: 11.69 kB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/1.165, allocations: 1.5 kB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/1.165, allocations: 10.12 kB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/1.165, allocations: 3.312 kB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.165, allocations: 3.984 kB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004238/1.166, allocations: 350.3 kB / 1.361 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004829/1.166, allocations: 0.7015 MB / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.9e-05/1.166, allocations: 98.22 kB / 1.362 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.892e-05/1.166, allocations: 16.81 kB / 1.362 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/1.167, allocations: 8.047 kB / 1.362 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/1.167, allocations: 24.39 kB / 1.362 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-05/1.167, allocations: 19.8 kB / 1.362 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.27e-05/1.167, allocations: 95.98 kB / 1.362 GB, free: 12.72 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000904/1.168, allocations: 71.8 kB / 1.362 GB, free: 12.71 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: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.0001918/1.168, allocations: 145.5 kB / 1.362 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004437/1.168, allocations: 340.5 kB / 1.362 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.168, allocations: 4.062 kB / 1.362 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/1.169, allocations: 112.7 kB / 1.363 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/1.169, allocations: 22.36 kB / 1.363 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004258/1.169, allocations: 208.4 kB / 1.363 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/1.17, allocations: 0.7481 MB / 1.363 GB, free: 27.32 MB / 0.823 GB Notification: Performance of SimCode: time 2.6e-07/1.17, allocations: 0 / 1.363 GB, free: 27.32 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat does not exist to compare? outputFormat=mat