Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.313/1.313, allocations: 285.5 MB / 292.8 MB, free: 0.6914 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000918/0.000918, allocations: 175.2 kB / 361.1 MB, free: 15.28 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9984/0.9984, allocations: 205.1 MB / 0.6195 GB, free: 5.805 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007764/0.0007764, allocations: 94.84 kB / 0.7325 GB, free: 47.36 MB / 0.5184 GB Notification: Performance of FrontEnd - loaded program: time 0.1711/0.1719, allocations: 121.5 MB / 0.8512 GB, free: 12.6 MB / 0.5965 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4098/0.5817, allocations: 115.3 MB / 0.9638 GB, free: 85.7 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.131/0.7127, allocations: 137.9 MB / 1.098 GB, free: 11.58 MB / 0.7059 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001749/0.7129, allocations: 79.34 kB / 1.098 GB, free: 11.5 MB / 0.7059 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.01585/0.7287, allocations: 5.651 MB / 1.104 GB, free: 5.84 MB / 0.7059 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.7288, allocations: 12.5 kB / 1.104 GB, free: 5.828 MB / 0.7059 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.576e-05/0.7289, allocations: 21.5 kB / 1.104 GB, free: 5.809 MB / 0.7059 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.7292, allocations: 236.7 kB / 1.104 GB, free: 5.539 MB / 0.7059 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.7292, allocations: 15.98 kB / 1.104 GB, free: 5.523 MB / 0.7059 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.7293, allocations: 27.92 kB / 1.104 GB, free: 5.496 MB / 0.7059 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001569/0.7294, allocations: 74.02 kB / 1.104 GB, free: 5.426 MB / 0.7059 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002454/0.7297, allocations: 171.2 kB / 1.105 GB, free: 5.254 MB / 0.7059 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.7297, allocations: 0 / 1.105 GB, free: 5.254 MB / 0.7059 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.7297, allocations: 7.984 kB / 1.105 GB, free: 5.246 MB / 0.7059 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.7297, allocations: 7.906 kB / 1.105 GB, free: 5.238 MB / 0.7059 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007136/0.7305, allocations: 449.8 kB / 1.105 GB, free: 4.758 MB / 0.7059 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.7307, allocations: 122.9 kB / 1.105 GB, free: 4.629 MB / 0.7059 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.7308, allocations: 81.22 kB / 1.105 GB, free: 4.547 MB / 0.7059 GB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.7308, allocations: 8.172 kB / 1.105 GB, free: 4.539 MB / 0.7059 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002402/0.731, allocations: 198.3 kB / 1.105 GB, free: 4.336 MB / 0.7059 GB Notification: Performance of pre-optimization done (n=28): time 2.044e-06/0.7311, allocations: 4 kB / 1.105 GB, free: 4.332 MB / 0.7059 GB Notification: Performance of matching and sorting (n=28): time 0.000427/0.7315, allocations: 237.4 kB / 1.106 GB, free: 4.094 MB / 0.7059 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.7315, allocations: 59.97 kB / 1.106 GB, free: 4.023 MB / 0.7059 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.406e-05/0.7316, allocations: 122.2 kB / 1.106 GB, free: 3.898 MB / 0.7059 GB Notification: Performance of collectPreVariables (initialization): time 4.879e-05/0.7317, allocations: 37.7 kB / 1.106 GB, free: 3.855 MB / 0.7059 GB Notification: Performance of collectInitialEqns (initialization): time 5.814e-05/0.7317, allocations: 100.7 kB / 1.106 GB, free: 3.754 MB / 0.7059 GB Notification: Performance of collectInitialBindings (initialization): time 5.698e-05/0.7318, allocations: 67.19 kB / 1.106 GB, free: 3.688 MB / 0.7059 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.7318, allocations: 4 kB / 1.106 GB, free: 3.684 MB / 0.7059 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.732, allocations: 333.9 kB / 1.106 GB, free: 3.352 MB / 0.7059 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.7322, allocations: 124.4 kB / 1.106 GB, free: 3.23 MB / 0.7059 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002391/0.7325, allocations: 180.9 kB / 1.107 GB, free: 3.031 MB / 0.7059 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000434/0.7329, allocations: 161.2 kB / 1.107 GB, free: 2.875 MB / 0.7059 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.7329, allocations: 0 / 1.107 GB, free: 2.875 MB / 0.7059 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007792/0.7337, allocations: 408.7 kB / 1.107 GB, free: 2.473 MB / 0.7059 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.7337, allocations: 8 kB / 1.107 GB, free: 2.465 MB / 0.7059 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.7337, allocations: 4.125 kB / 1.107 GB, free: 2.461 MB / 0.7059 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.7337, allocations: 4 kB / 1.107 GB, free: 2.457 MB / 0.7059 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.734, allocations: 59.91 kB / 1.107 GB, free: 2.398 MB / 0.7059 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.734, allocations: 6.641 kB / 1.107 GB, free: 2.395 MB / 0.7059 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.7344, allocations: 95.69 kB / 1.107 GB, free: 2.301 MB / 0.7059 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.7345, allocations: 23.98 kB / 1.107 GB, free: 2.277 MB / 0.7059 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.0001324/0.7346, allocations: 152.9 kB / 1.107 GB, free: 2.121 MB / 0.7059 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.7347, allocations: 19.81 kB / 1.107 GB, free: 2.102 MB / 0.7059 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.7347, allocations: 13.73 kB / 1.107 GB, free: 2.086 MB / 0.7059 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.7347, allocations: 4.625 kB / 1.107 GB, free: 2.082 MB / 0.7059 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.7347, allocations: 3.906 kB / 1.107 GB, free: 2.078 MB / 0.7059 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.7347, allocations: 0 / 1.107 GB, free: 2.078 MB / 0.7059 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000516/0.7352, allocations: 0.5183 MB / 1.108 GB, free: 1.516 MB / 0.7059 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.7353, allocations: 1.625 kB / 1.108 GB, free: 1.516 MB / 0.7059 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.194e-05/0.7353, allocations: 16 kB / 1.108 GB, free: 1.5 MB / 0.7059 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7353, allocations: 0 / 1.108 GB, free: 1.5 MB / 0.7059 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.7354, allocations: 11.97 kB / 1.108 GB, free: 1.488 MB / 0.7059 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.7354, allocations: 0 / 1.108 GB, free: 1.488 MB / 0.7059 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.7354, allocations: 0 / 1.108 GB, free: 1.488 MB / 0.7059 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003657/0.7357, allocations: 343.1 kB / 1.108 GB, free: 1.137 MB / 0.7059 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004697/0.7362, allocations: 0.7071 MB / 1.109 GB, free: 420 kB / 0.7059 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.7363, allocations: 96.8 kB / 1.109 GB, free: 304 kB / 0.7059 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/0.7363, allocations: 19.98 kB / 1.109 GB, free: 284 kB / 0.7059 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.7365, allocations: 12.7 kB / 1.109 GB, free: 272 kB / 0.7059 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.115e-05/0.7365, allocations: 11.97 kB / 1.109 GB, free: 260 kB / 0.7059 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.7366, allocations: 22.11 kB / 1.109 GB, free: 240 kB / 0.7059 GB Notification: Performance of sort global known variables: time 4.736e-05/0.7366, allocations: 104.7 kB / 1.109 GB, free: 140 kB / 0.7059 GB Notification: Performance of remove unused functions: time 0.0008631/0.7375, allocations: 63.89 kB / 1.109 GB, free: 76 kB / 0.7059 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.0002096/0.7377, allocations: 145.2 kB / 1.109 GB, free: 15.92 MB / 0.7215 GB Notification: Performance of simCode: created initialization part: time 0.0004608/0.7382, allocations: 343.2 kB / 1.11 GB, free: 15.57 MB / 0.7215 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.7382, allocations: 0 / 1.11 GB, free: 15.57 MB / 0.7215 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.7383, allocations: 111.9 kB / 1.11 GB, free: 15.46 MB / 0.7215 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.7386, allocations: 30.84 kB / 1.11 GB, free: 15.44 MB / 0.7215 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00045/0.739, allocations: 204.7 kB / 1.11 GB, free: 15.22 MB / 0.7215 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002763/0.7393, allocations: 0.7421 MB / 1.111 GB, free: 14.45 MB / 0.7215 GB Notification: Performance of SimCode: time 2.7e-07/0.7393, allocations: 0 / 1.111 GB, free: 14.45 MB / 0.7215 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)