Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.236/1.236, allocations: 249.4 MB / 256.7 MB, free: 7.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001394/0.001394, allocations: 196 kB / 316 MB, free: 3.496 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.2 MB / 0.5667 GB, free: 15.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008178/0.0008179, allocations: 87.22 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.348/0.3489, allocations: 112.5 MB / 0.7808 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.5092, allocations: 106.3 MB / 0.8847 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4591/0.9683, allocations: 132.5 MB / 1.014 GB, free: 5.914 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.9686, allocations: 73.02 kB / 1.014 GB, free: 5.875 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.01078/0.9794, allocations: 3.757 MB / 1.018 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.9795, allocations: 8 kB / 1.018 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/0.9795, allocations: 23.8 kB / 1.018 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/0.9798, allocations: 225.2 kB / 1.018 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.9799, allocations: 15.66 kB / 1.018 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.9799, allocations: 11.98 kB / 1.018 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001653/0.9801, allocations: 84.67 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.9803, allocations: 179.3 kB / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.9803, allocations: 0 / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.9804, allocations: 11.23 kB / 1.018 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.9804, allocations: 0 / 1.018 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.9809, allocations: 374 kB / 1.019 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.9811, allocations: 129.1 kB / 1.019 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.9812, allocations: 90.75 kB / 1.019 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.9812, allocations: 4 kB / 1.019 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002395/0.9815, allocations: 192.1 kB / 1.019 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 2.014e-06/0.9815, allocations: 0 / 1.019 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0004084/0.9819, allocations: 231.8 kB / 1.019 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.9819, allocations: 55.41 kB / 1.019 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.944e-05/0.982, allocations: 130.5 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.9821, allocations: 36.88 kB / 1.02 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.603e-05/0.9821, allocations: 96.03 kB / 1.02 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.9822, allocations: 63.5 kB / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.9822, allocations: 0 / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.9823, allocations: 344.6 kB / 1.02 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.9825, allocations: 86.17 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.9827, allocations: 149.6 kB / 1.02 GB, free: 436 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.9828, allocations: 107.3 kB / 1.02 GB, free: 360 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.9828, allocations: 0 / 1.02 GB, free: 360 kB / 0.6355 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000399/0.9832, allocations: 291.4 kB / 1.021 GB, free: 124 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.9832, allocations: 4 kB / 1.021 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.9833, allocations: 4 kB / 1.021 GB, free: 116 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.9833, allocations: 7.984 kB / 1.021 GB, free: 108 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.9836, allocations: 75.62 kB / 1.021 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.9836, allocations: 7.906 kB / 1.021 GB, free: 28 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.9838, allocations: 31.81 kB / 1.021 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.9838, allocations: 15.06 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (46): * Single equations (assignments): 46 * 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 0.0001124/0.9839, allocations: 147.1 kB / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.984, allocations: 15.81 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.532e-05/0.984, allocations: 13.06 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.984, allocations: 0 / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.984, allocations: 0 / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.984, allocations: 3.984 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007308/0.9848, allocations: 0.5817 MB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.9848, allocations: 3.984 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.9848, allocations: 12 kB / 1.022 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.9849, allocations: 0 / 1.022 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.9849, allocations: 7.984 kB / 1.022 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.9849, allocations: 0 / 1.022 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.9849, allocations: 3.984 kB / 1.022 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003742/0.9853, allocations: 338.6 kB / 1.022 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004571/0.9857, allocations: 0.7019 MB / 1.023 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.917e-05/0.9858, allocations: 88.92 kB / 1.023 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.9859, allocations: 15.3 kB / 1.023 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.9861, allocations: 31.53 kB / 1.023 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.397e-05/0.9862, allocations: 15.97 kB / 1.023 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.9862, allocations: 23.27 kB / 1.023 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.32e-05/0.9863, allocations: 99.94 kB / 1.023 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008411/0.9871, allocations: 51.83 kB / 1.023 GB, free: 13.96 MB / 0.6511 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.0002055/0.9873, allocations: 133.7 kB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003415/0.9877, allocations: 236.8 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.9877, allocations: 4 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.9879, allocations: 114.8 kB / 1.023 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.9882, allocations: 33.39 kB / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005253/0.9887, allocations: 211.2 kB / 1.024 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003366/0.989, allocations: 0.7458 MB / 1.024 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of SimCode: time 4.5e-07/0.989, allocations: 0 / 1.024 GB, free: 12.57 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)