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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.356/1.356, allocations: 251.9 MB / 266.9 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001355/0.001355, allocations: 183.4 kB / 326.5 MB, free: 2.195 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.4 MB / 0.5775 GB, free: 20.48 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.0008767/0.0008765, allocations: 94.41 kB / 0.6821 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003144, allocations: 13.59 kB / 0.7963 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2899, allocations: 106.3 MB / 0.9001 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1668/0.4568, allocations: 132.2 MB / 1.029 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.4571, allocations: 71.95 kB / 1.029 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01048/0.4676, allocations: 3.671 MB / 1.033 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.032e-06/0.4676, allocations: 0 / 1.033 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.4676, allocations: 0 / 1.033 GB, free: 8.094 MB / 0.6823 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.000778/0.4684, allocations: 480 kB / 1.033 GB, free: 7.574 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.4684, allocations: 11.97 kB / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.695e-05/0.4685, allocations: 19.77 kB / 1.033 GB, free: 7.543 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.4688, allocations: 216 kB / 1.034 GB, free: 7.293 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.685e-05/0.4689, allocations: 19.98 kB / 1.034 GB, free: 7.273 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.4689, allocations: 16 kB / 1.034 GB, free: 7.258 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.4693, allocations: 201.5 kB / 1.034 GB, free: 7.055 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.4693, allocations: 0 / 1.034 GB, free: 7.055 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.4693, allocations: 3.984 kB / 1.034 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.4694, allocations: 7.953 kB / 1.034 GB, free: 7.043 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002252/0.4696, allocations: 95.94 kB / 1.034 GB, free: 6.949 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006905/0.4703, allocations: 432.4 kB / 1.034 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.4706, allocations: 158.1 kB / 1.034 GB, free: 6.316 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.4706, allocations: 4 kB / 1.035 GB, free: 6.312 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003509/0.471, allocations: 209 kB / 1.035 GB, free: 6.094 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.471, allocations: 4 kB / 1.035 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.000837/0.4718, allocations: 450.2 kB / 1.035 GB, free: 5.648 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.4719, allocations: 59.41 kB / 1.035 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.472, allocations: 144 kB / 1.035 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.4721, allocations: 37.7 kB / 1.035 GB, free: 5.387 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.4722, allocations: 108.5 kB / 1.035 GB, free: 5.277 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.214e-05/0.4722, allocations: 59.34 kB / 1.036 GB, free: 5.219 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.4722, allocations: 4 kB / 1.036 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.634e-05/0.4723, allocations: 334.8 kB / 1.036 GB, free: 4.879 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.4725, allocations: 96.69 kB / 1.036 GB, free: 4.781 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.4728, allocations: 176.3 kB / 1.036 GB, free: 4.582 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002066/0.473, allocations: 117.4 kB / 1.036 GB, free: 4.469 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.473, allocations: 7.953 kB / 1.036 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005443/0.4736, allocations: 343.3 kB / 1.037 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.4736, allocations: 8 kB / 1.037 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.4736, allocations: 0 / 1.037 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.4736, allocations: 8.156 kB / 1.037 GB, free: 4.105 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/0.474, allocations: 67.91 kB / 1.037 GB, free: 4.039 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.474, allocations: 7.984 kB / 1.037 GB, free: 4.031 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.4742, allocations: 43.67 kB / 1.037 GB, free: 3.988 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.4742, allocations: 12 kB / 1.037 GB, free: 3.977 MB / 0.6823 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 () * Number of clocked 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.0001598/0.4744, allocations: 169.7 kB / 1.037 GB, free: 3.801 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.4744, allocations: 23.77 kB / 1.037 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.379e-05/0.4745, allocations: 13.88 kB / 1.037 GB, free: 3.77 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.4745, allocations: 7.984 kB / 1.037 GB, free: 3.762 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4745, allocations: 0 / 1.037 GB, free: 3.762 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4745, allocations: 0 / 1.037 GB, free: 3.762 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.4756, allocations: 0.7334 MB / 1.038 GB, free: 2.973 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4756, allocations: 3.938 kB / 1.038 GB, free: 2.969 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-05/0.4757, allocations: 8 kB / 1.038 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4757, allocations: 4 kB / 1.038 GB, free: 2.957 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.4757, allocations: 11.97 kB / 1.038 GB, free: 2.945 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4757, allocations: 0 / 1.038 GB, free: 2.945 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4757, allocations: 4 kB / 1.038 GB, free: 2.941 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006674/0.4764, allocations: 467.4 kB / 1.038 GB, free: 2.469 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.904e-05/0.4765, allocations: 96.8 kB / 1.038 GB, free: 2.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.4765, allocations: 15.98 kB / 1.038 GB, free: 2.34 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.4767, allocations: 27.97 kB / 1.038 GB, free: 2.312 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.4768, allocations: 27.94 kB / 1.038 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.4768, allocations: 19.97 kB / 1.038 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.105e-05/0.4769, allocations: 103.3 kB / 1.038 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4769, allocations: 0 / 1.038 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000309/0.4772, allocations: 55.98 kB / 1.038 GB, free: 2.109 MB / 0.6823 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]) * Number of clocked states: 0 () * 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.0002/0.4774, allocations: 129.5 kB / 1.039 GB, free: 1.973 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005201/0.478, allocations: 263.7 kB / 1.039 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.478, allocations: 0 / 1.039 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.4782, allocations: 123.9 kB / 1.039 GB, free: 1.594 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.4785, allocations: 32.25 kB / 1.039 GB, free: 1.562 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00068/0.4792, allocations: 343.3 kB / 1.039 GB, free: 1.195 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.4795, allocations: 0.721 MB / 1.04 GB, free: 460 kB / 0.6823 GB Notification: Performance of simCode: alias equations: time 8.021e-05/0.4796, allocations: 29.88 kB / 1.04 GB, free: 432 kB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.833e-05/0.4797, allocations: 23.44 kB / 1.04 GB, free: 408 kB / 0.6823 GB Notification: Performance of SimCode: time 7.62e-07/0.4797, allocations: 0 / 1.04 GB, free: 408 kB / 0.6823 GB Notification: Performance of Templates: time 0.005508/0.4852, allocations: 2.493 MB / 1.042 GB, free: 13.92 MB / 0.698 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