Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 115.3 kB / 16.42 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001667/0.001668, allocations: 186.1 kB / 17.35 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.672/2.672, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 59.91 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.101/1.103, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002259/1.105, allocations: 0.8789 MB / 1.168 GB, free: 2.934 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001942/1.107, allocations: 1.314 MB / 1.169 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.074e-05/1.107, allocations: 7.938 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001376/1.107, allocations: 7.875 kB / 1.169 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001672/1.107, allocations: 31.72 kB / 1.169 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007819/1.108, allocations: 278.2 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003621/1.108, allocations: 303.4 kB / 1.17 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/1.108, allocations: 21.12 kB / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/1.109, allocations: 123.8 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/1.109, allocations: 127.6 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.312e-05/1.109, allocations: 27.94 kB / 1.17 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/1.109, allocations: 39.98 kB / 1.17 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.487e-05/1.109, allocations: 39.89 kB / 1.17 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001749/1.109, allocations: 107.6 kB / 1.17 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003199/1.11, allocations: 263 kB / 1.171 GB, free: 268 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/1.11, allocations: 0 / 1.171 GB, free: 268 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.173e-06/1.11, allocations: 0 / 1.171 GB, free: 268 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.74e-06/1.11, allocations: 0 / 1.171 GB, free: 268 kB / 0.8887 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.0009956/1.111, allocations: 0.5396 MB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/1.111, allocations: 8.031 kB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.928e-05/1.111, allocations: 24.75 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/1.111, allocations: 238.2 kB / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/1.111, allocations: 12.36 kB / 1.172 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.133e-05/1.111, allocations: 20.38 kB / 1.172 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/1.112, allocations: 190.6 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/1.112, allocations: 192 / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/1.112, allocations: 7.938 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/1.112, allocations: 4 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/1.112, allocations: 92.11 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/1.113, allocations: 472.8 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/1.113, allocations: 134.5 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/1.113, allocations: 96.8 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/1.113, allocations: 160 / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003568/1.114, allocations: 211.8 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=28): time 1.803e-06/1.114, allocations: 3.938 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28): time 0.0008862/1.114, allocations: 461.4 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/1.115, allocations: 51.41 kB / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/1.115, allocations: 141.8 kB / 1.173 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/1.115, allocations: 37.7 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.993e-05/1.115, allocations: 112.6 kB / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.091e-05/1.115, allocations: 67.19 kB / 1.174 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/1.115, allocations: 89.98 kB / 1.174 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002174/1.115, allocations: 334.9 kB / 1.174 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/1.116, allocations: 144.7 kB / 1.174 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/1.116, allocations: 209.2 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/1.117, allocations: 366.8 kB / 1.175 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/1.117, allocations: 0 / 1.175 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008536/1.117, allocations: 0.4945 MB / 1.175 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.216e-05/1.117, allocations: 70.05 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/1.118, allocations: 4 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/1.118, allocations: 0 / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/1.118, allocations: 51.91 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/1.118, allocations: 4 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003852/1.118, allocations: 71.91 kB / 1.175 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-05/1.118, allocations: 23.92 kB / 1.175 GB, free: 11.25 MB / 0.9044 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,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001989/1.118, allocations: 169.6 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/1.119, allocations: 15.91 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.136e-05/1.119, allocations: 17.86 kB / 1.176 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/1.119, allocations: 11.92 kB / 1.176 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/1.119, allocations: 0 / 1.176 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.479e-05/1.119, allocations: 88.92 kB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.387e-05/1.119, allocations: 23.92 kB / 1.176 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.303e-05/1.119, allocations: 7.984 kB / 1.176 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/1.119, allocations: 15.98 kB / 1.176 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006753/1.12, allocations: 428.8 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006835/1.12, allocations: 0.5218 MB / 1.177 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002076/1.12, allocations: 111.9 kB / 1.177 GB, free: 9.793 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.151e-05/1.121, allocations: 99.27 kB / 1.177 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of Backend: time 5.61e-07/1.121, allocations: 0 / 1.177 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000916/1.121, allocations: 453.2 kB / 1.177 GB, free: 9.223 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0009033/1.122, allocations: 0.7282 MB / 1.178 GB, free: 8.445 MB / 0.9044 GB Notification: Performance of Templates: time 0.008252/1.131, allocations: 3.7 MB / 1.182 GB, free: 4.781 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches