Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.113/2.113, allocations: 284.8 MB / 292.1 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001588/0.001588, allocations: 181.3 kB / 360.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.1 MB / 0.6187 GB, free: 13.23 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 88.72 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2462/0.2475, allocations: 121.4 MB / 0.8502 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5425/0.79, allocations: 115.2 MB / 0.9628 GB, free: 78.58 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2057/0.9958, allocations: 137.7 MB / 1.097 GB, free: 3.164 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.9961, allocations: 71.95 kB / 1.097 GB, free: 3.094 MB / 0.698 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.02889/1.025, allocations: 5.659 MB / 1.103 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/1.025, allocations: 8 kB / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/1.025, allocations: 21.56 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005144/1.026, allocations: 247 kB / 1.103 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.18e-05/1.026, allocations: 8 kB / 1.103 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-05/1.026, allocations: 19.98 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002842/1.026, allocations: 72.45 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/1.027, allocations: 175.2 kB / 1.103 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/1.027, allocations: 4 kB / 1.103 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/1.027, allocations: 7.969 kB / 1.103 GB, free: 12.87 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/1.027, allocations: 7.906 kB / 1.103 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/1.028, allocations: 449.7 kB / 1.104 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/1.028, allocations: 122.9 kB / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/1.028, allocations: 89.22 kB / 1.104 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/1.029, allocations: 0.8438 kB / 1.104 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004504/1.029, allocations: 194.4 kB / 1.104 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 5.891e-06/1.029, allocations: 0 / 1.104 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0008303/1.03, allocations: 241.3 kB / 1.104 GB, free: 11.72 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/1.03, allocations: 63.39 kB / 1.104 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/1.03, allocations: 128.4 kB / 1.105 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001079/1.03, allocations: 41.69 kB / 1.105 GB, free: 11.47 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.657e-05/1.03, allocations: 93.36 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/1.03, allocations: 67.25 kB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/1.031, allocations: 0 / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000159/1.031, allocations: 334.8 kB / 1.105 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004142/1.031, allocations: 120.4 kB / 1.105 GB, free: 10.86 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004722/1.032, allocations: 188.8 kB / 1.105 GB, free: 10.65 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008542/1.032, allocations: 158.9 kB / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/1.033, allocations: 7.75 kB / 1.106 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001496/1.034, allocations: 411.2 kB / 1.106 GB, free: 10.09 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/1.034, allocations: 4 kB / 1.106 GB, free: 10.08 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/1.034, allocations: 4 kB / 1.106 GB, free: 10.08 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/1.034, allocations: 4 kB / 1.106 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008592/1.035, allocations: 60.03 kB / 1.106 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.36e-05/1.035, allocations: 6.109 kB / 1.106 GB, free: 10.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/1.037, allocations: 91.75 kB / 1.106 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-05/1.037, allocations: 19.98 kB / 1.106 GB, free: 9.902 MB / 0.7136 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.0002417/1.037, allocations: 144.6 kB / 1.106 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.39e-05/1.037, allocations: 25.17 kB / 1.106 GB, free: 9.73 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.081e-05/1.037, allocations: 13.75 kB / 1.106 GB, free: 9.715 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/1.037, allocations: 8 kB / 1.106 GB, free: 9.707 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/1.037, allocations: 3.906 kB / 1.106 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/1.037, allocations: 8.062 kB / 1.106 GB, free: 9.695 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009273/1.038, allocations: 0.5185 MB / 1.107 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/1.038, allocations: 0 / 1.107 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.711e-05/1.038, allocations: 4 kB / 1.107 GB, free: 9.129 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/1.038, allocations: 0 / 1.107 GB, free: 9.129 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.47e-05/1.038, allocations: 19.97 kB / 1.107 GB, free: 9.109 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/1.038, allocations: 5.625 kB / 1.107 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.038, allocations: 0 / 1.107 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006583/1.039, allocations: 347.1 kB / 1.107 GB, free: 8.75 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008394/1.04, allocations: 0.6993 MB / 1.108 GB, free: 8.031 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.878e-05/1.04, allocations: 92.86 kB / 1.108 GB, free: 7.922 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/1.04, allocations: 23.97 kB / 1.108 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/1.04, allocations: 8 kB / 1.108 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.222e-05/1.04, allocations: 15.97 kB / 1.108 GB, free: 7.875 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.107e-05/1.04, allocations: 15.98 kB / 1.108 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.765e-05/1.041, allocations: 97.23 kB / 1.108 GB, free: 7.766 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001436/1.042, allocations: 71.89 kB / 1.108 GB, free: 7.695 MB / 0.7136 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.00035/1.042, allocations: 141.2 kB / 1.108 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0009682/1.043, allocations: 343.2 kB / 1.109 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/1.043, allocations: 3.938 kB / 1.109 GB, free: 7.191 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002799/1.044, allocations: 111.9 kB / 1.109 GB, free: 7.082 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/1.044, allocations: 24.28 kB / 1.109 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007779/1.045, allocations: 209 kB / 1.109 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004379/1.045, allocations: 0.7398 MB / 1.11 GB, free: 6.07 MB / 0.7136 GB Notification: Performance of SimCode: time 1.032e-06/1.045, allocations: 0 / 1.11 GB, free: 6.07 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)