Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 112.5 kB / 16.42 MB, free: 6.445 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.001358/0.001359, allocations: 185.7 kB / 17.35 MB, free: 5.738 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.447/1.447, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.746/2.746, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 63.91 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.006/1.009, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002648/1.011, allocations: 0.8726 MB / 1.209 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002194/1.013, allocations: 1.307 MB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/1.014, allocations: 0 / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001381/1.014, allocations: 11.81 kB / 1.211 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001791/1.014, allocations: 35.77 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009294/1.015, allocations: 274.2 kB / 1.211 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004307/1.015, allocations: 291.5 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/1.015, allocations: 25.11 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/1.016, allocations: 135.6 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/1.016, allocations: 131.6 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.937e-05/1.016, allocations: 24 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/1.016, allocations: 31.98 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.781e-05/1.016, allocations: 43.84 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001235/1.016, allocations: 107.6 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000327/1.017, allocations: 267 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/1.017, allocations: 4 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.413e-06/1.017, allocations: 3.938 kB / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.244e-06/1.017, allocations: 0 / 1.212 GB, free: 10.06 MB / 0.9356 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.0009401/1.018, allocations: 0.5396 MB / 1.212 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/1.018, allocations: 8.031 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.333e-05/1.018, allocations: 32.73 kB / 1.212 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/1.018, allocations: 234.1 kB / 1.213 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/1.018, allocations: 12.38 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/1.018, allocations: 20.36 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/1.019, allocations: 181 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/1.019, allocations: 192 / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/1.019, allocations: 11.92 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/1.019, allocations: 4 kB / 1.213 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/1.019, allocations: 92.17 kB / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006465/1.02, allocations: 468.8 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002543/1.02, allocations: 134.5 kB / 1.214 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/1.02, allocations: 92.81 kB / 1.214 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/1.02, allocations: 4.156 kB / 1.214 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003506/1.02, allocations: 215.6 kB / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=28): time 2.064e-06/1.02, allocations: 0 / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of matching and sorting (n=28): time 0.0009334/1.021, allocations: 455.1 kB / 1.214 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/1.021, allocations: 59.41 kB / 1.214 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/1.022, allocations: 137.8 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.013e-05/1.022, allocations: 45.69 kB / 1.215 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.646e-05/1.022, allocations: 96.59 kB / 1.215 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.702e-05/1.022, allocations: 67.19 kB / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/1.022, allocations: 89.98 kB / 1.215 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000144/1.022, allocations: 335 kB / 1.215 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/1.023, allocations: 148.7 kB / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/1.023, allocations: 213.1 kB / 1.215 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006213/1.024, allocations: 358.3 kB / 1.216 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/1.024, allocations: 0 / 1.216 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009458/1.025, allocations: 0.5031 MB / 1.216 GB, free: 5.277 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.88e-05/1.025, allocations: 67.41 kB / 1.216 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/1.025, allocations: 7.984 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/1.025, allocations: 4 kB / 1.216 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002756/1.025, allocations: 47.92 kB / 1.216 GB, free: 5.141 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/1.025, allocations: 16.09 kB / 1.216 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004092/1.025, allocations: 67.72 kB / 1.216 GB, free: 5.059 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/1.026, allocations: 27.92 kB / 1.216 GB, free: 5.031 MB / 0.9356 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.0002106/1.026, allocations: 169.7 kB / 1.217 GB, free: 4.855 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.043e-05/1.026, allocations: 23.8 kB / 1.217 GB, free: 4.832 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/1.026, allocations: 13.88 kB / 1.217 GB, free: 4.816 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/1.026, allocations: 4 kB / 1.217 GB, free: 4.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/1.026, allocations: 0 / 1.217 GB, free: 4.812 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/1.026, allocations: 92.91 kB / 1.217 GB, free: 4.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/1.026, allocations: 19.92 kB / 1.217 GB, free: 4.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.544e-05/1.026, allocations: 8 kB / 1.217 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/1.026, allocations: 15.97 kB / 1.217 GB, free: 4.66 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006192/1.027, allocations: 428.7 kB / 1.217 GB, free: 4.234 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006533/1.027, allocations: 0.5256 MB / 1.218 GB, free: 3.691 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001972/1.028, allocations: 110 kB / 1.218 GB, free: 3.586 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.702e-05/1.028, allocations: 101 kB / 1.218 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of Backend: time 6.51e-07/1.028, allocations: 0 / 1.218 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000935/1.029, allocations: 454.2 kB / 1.218 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0009074/1.03, allocations: 0.7124 MB / 1.219 GB, free: 2.258 MB / 0.9356 GB Notification: Performance of Templates: time 0.008537/1.038, allocations: 3.714 MB / 1.223 GB, free: 14.57 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches