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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") [: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.359/1.359, allocations: 249.4 MB / 256.7 MB, free: 6.984 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.001288/0.001288, allocations: 173.3 kB / 316 MB, free: 3.539 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.323/1.323, allocations: 205.2 MB / 0.5667 GB, free: 15.66 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.0009961/0.0009963, allocations: 83.33 kB / 0.671 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.803e-06/6.823e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.149, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.464/0.613, allocations: 132.5 MB / 1.014 GB, free: 6.184 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.6133, allocations: 75.58 kB / 1.014 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01038/0.6237, allocations: 3.304 MB / 1.017 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.25e-05/0.6237, allocations: 7.938 kB / 1.017 GB, free: 3.449 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.0007219/0.6244, allocations: 460.7 kB / 1.018 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.6245, allocations: 12.03 kB / 1.018 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.931e-05/0.6246, allocations: 15.81 kB / 1.018 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002924/0.6248, allocations: 229.1 kB / 1.018 GB, free: 2.684 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.6249, allocations: 15.33 kB / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.6249, allocations: 12 kB / 1.018 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001814/0.6251, allocations: 87.03 kB / 1.018 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002692/0.6254, allocations: 176.2 kB / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.6254, allocations: 0 / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.6254, allocations: 3.984 kB / 1.018 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.6255, allocations: 4 kB / 1.018 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005389/0.626, allocations: 378.4 kB / 1.019 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.6262, allocations: 130.8 kB / 1.019 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.6263, allocations: 90.2 kB / 1.019 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.6264, allocations: 0 / 1.019 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.6266, allocations: 188.5 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 1.664e-06/0.6266, allocations: 3.938 kB / 1.019 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0004294/0.6271, allocations: 232.2 kB / 1.019 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.6271, allocations: 62.84 kB / 1.019 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.6272, allocations: 134.7 kB / 1.019 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.6273, allocations: 36.77 kB / 1.019 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.6274, allocations: 91.91 kB / 1.02 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.825e-05/0.6274, allocations: 64.38 kB / 1.02 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.444e-05/0.6274, allocations: 4 kB / 1.02 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.6276, allocations: 329.7 kB / 1.02 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.6277, allocations: 83.3 kB / 1.02 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.6279, allocations: 150.8 kB / 1.02 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.628, allocations: 106.8 kB / 1.02 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6281, allocations: 4 kB / 1.02 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003984/0.6285, allocations: 288.4 kB / 1.021 GB, free: 396 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.6285, allocations: 8 kB / 1.021 GB, free: 388 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.6285, allocations: 4.156 kB / 1.021 GB, free: 384 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.6285, allocations: 4 kB / 1.021 GB, free: 380 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.6288, allocations: 70.97 kB / 1.021 GB, free: 312 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.6288, allocations: 7.906 kB / 1.021 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.629, allocations: 35.83 kB / 1.021 GB, free: 268 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.6291, allocations: 15.67 kB / 1.021 GB, free: 256 kB / 0.6355 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.0001225/0.6292, allocations: 143.6 kB / 1.021 GB, free: 108 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.6292, allocations: 15.81 kB / 1.021 GB, free: 92 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.6293, allocations: 16.06 kB / 1.021 GB, free: 80 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.6293, allocations: 7.984 kB / 1.021 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.6293, allocations: 4 kB / 1.021 GB, free: 68 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.6293, allocations: 4 kB / 1.021 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007736/0.6301, allocations: 0.5784 MB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.6301, allocations: 0 / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.928e-05/0.6301, allocations: 15.31 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.6302, allocations: 0 / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.6302, allocations: 11.97 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.6302, allocations: 4 kB / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.6302, allocations: 0 / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003636/0.6306, allocations: 340.2 kB / 1.022 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.627e-05/0.6306, allocations: 88.92 kB / 1.022 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.268e-05/0.6307, allocations: 18.73 kB / 1.022 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.6309, allocations: 23.97 kB / 1.022 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.631, allocations: 23.84 kB / 1.022 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.631, allocations: 15.97 kB / 1.022 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.666e-05/0.6311, allocations: 102.7 kB / 1.022 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000392/0.6315, allocations: 46.8 kB / 1.022 GB, free: 14.89 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.0001533/0.6316, allocations: 136.8 kB / 1.022 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000368/0.632, allocations: 233.4 kB / 1.022 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.632, allocations: 4.062 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.6322, allocations: 111.1 kB / 1.023 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.6325, allocations: 30.94 kB / 1.023 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005053/0.633, allocations: 210.4 kB / 1.023 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.6333, allocations: 0.7532 MB / 1.023 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/0.6333, allocations: 0 / 1.023 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of Templates: time 0.005163/0.6385, allocations: 2.742 MB / 1.026 GB, free: 10.78 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches