Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.389/1.389, allocations: 289.8 MB / 297.1 MB, free: 6.652 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.0009644/0.0009645, allocations: 177 kB / 366.3 MB, free: 1.984 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.052/1.052, allocations: 205.1 MB / 0.6256 GB, free: 7.449 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.0008308/0.0008308, allocations: 86.7 kB / 0.7395 GB, free: 39.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1886/0.1895, allocations: 122.4 MB / 0.8591 GB, free: 13.47 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4294/0.6189, allocations: 116.3 MB / 0.9727 GB, free: 76.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.7533, allocations: 138.8 MB / 1.108 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.7535, allocations: 69.88 kB / 1.108 GB, free: 11.61 MB / 0.7136 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.01549/0.769, allocations: 5.659 MB / 1.114 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.7691, allocations: 8 kB / 1.114 GB, free: 5.93 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.479e-05/0.7692, allocations: 19.81 kB / 1.114 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.7695, allocations: 243 kB / 1.114 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.7695, allocations: 7.984 kB / 1.114 GB, free: 5.625 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.199e-05/0.7696, allocations: 20 kB / 1.114 GB, free: 5.605 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001455/0.7697, allocations: 72.45 kB / 1.114 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.77, allocations: 171.7 kB / 1.114 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.77, allocations: 6.375 kB / 1.114 GB, free: 5.359 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.77, allocations: 7.984 kB / 1.114 GB, free: 5.352 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.77, allocations: 7.906 kB / 1.114 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006134/0.7707, allocations: 453.7 kB / 1.115 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.7709, allocations: 120 kB / 1.115 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.771, allocations: 93.2 kB / 1.115 GB, free: 4.641 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.771, allocations: 4.172 kB / 1.115 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.7712, allocations: 190.4 kB / 1.115 GB, free: 4.441 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.7712, allocations: 0 / 1.115 GB, free: 4.441 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0004343/0.7717, allocations: 245.3 kB / 1.115 GB, free: 4.195 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.7717, allocations: 55.41 kB / 1.115 GB, free: 4.129 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.605e-05/0.7718, allocations: 131.1 kB / 1.116 GB, free: 3.996 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.057e-05/0.7719, allocations: 41.69 kB / 1.116 GB, free: 3.949 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.191e-05/0.7719, allocations: 92.7 kB / 1.116 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.772, allocations: 64.38 kB / 1.116 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.852e-05/0.772, allocations: 4 kB / 1.116 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.412e-05/0.7721, allocations: 330.8 kB / 1.116 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.7724, allocations: 124.4 kB / 1.116 GB, free: 3.336 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/0.7726, allocations: 184.9 kB / 1.116 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004488/0.7731, allocations: 161.2 kB / 1.117 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7731, allocations: 4 kB / 1.117 GB, free: 2.973 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008091/0.7739, allocations: 407.2 kB / 1.117 GB, free: 2.57 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.7739, allocations: 6.656 kB / 1.117 GB, free: 2.566 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.7739, allocations: 4 kB / 1.117 GB, free: 2.562 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.774, allocations: 0 / 1.117 GB, free: 2.562 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.7743, allocations: 65.47 kB / 1.117 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.7743, allocations: 8.75 kB / 1.117 GB, free: 2.492 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/0.7747, allocations: 87.75 kB / 1.117 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/0.7748, allocations: 23.98 kB / 1.117 GB, free: 2.383 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.0001676/0.7749, allocations: 148.9 kB / 1.117 GB, free: 2.23 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.775, allocations: 15.81 kB / 1.117 GB, free: 2.215 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.458e-05/0.775, allocations: 13.75 kB / 1.117 GB, free: 2.203 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.7751, allocations: 8 kB / 1.117 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.7751, allocations: 3.906 kB / 1.117 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.7751, allocations: 4.547 kB / 1.117 GB, free: 2.188 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005927/0.7757, allocations: 0.5185 MB / 1.118 GB, free: 1.625 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.7757, allocations: 4 kB / 1.118 GB, free: 1.621 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.162e-05/0.7758, allocations: 7.984 kB / 1.118 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.7758, allocations: 1.438 kB / 1.118 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.7758, allocations: 11.98 kB / 1.118 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.7758, allocations: 8.844 kB / 1.118 GB, free: 1.594 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7758, allocations: 0 / 1.118 GB, free: 1.594 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003996/0.7762, allocations: 343.1 kB / 1.118 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005085/0.7767, allocations: 0.7032 MB / 1.119 GB, free: 0.5195 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.321e-05/0.7768, allocations: 92.86 kB / 1.119 GB, free: 420 kB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.842e-05/0.7769, allocations: 23.97 kB / 1.119 GB, free: 396 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.777, allocations: 4.719 kB / 1.119 GB, free: 392 kB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.872e-05/0.7771, allocations: 19.97 kB / 1.119 GB, free: 372 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.7771, allocations: 21.66 kB / 1.119 GB, free: 352 kB / 0.7136 GB Notification: Performance of sort global known variables: time 5.901e-05/0.7772, allocations: 92.12 kB / 1.119 GB, free: 260 kB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009762/0.7782, allocations: 71.89 kB / 1.119 GB, free: 188 kB / 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.0002326/0.7784, allocations: 145.1 kB / 1.119 GB, free: 36 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0005254/0.779, allocations: 339.2 kB / 1.12 GB, free: 15.69 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.779, allocations: 0 / 1.12 GB, free: 15.69 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.7791, allocations: 119.8 kB / 1.12 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.7794, allocations: 21.42 kB / 1.12 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004855/0.7799, allocations: 212.2 kB / 1.12 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.7802, allocations: 0.7406 MB / 1.121 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of SimCode: time 3e-07/0.7802, allocations: 0.9375 kB / 1.121 GB, free: 14.56 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)