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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001524/0.001524, allocations: 114 kB / 16.42 MB, free: 6.508 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.001596/0.001596, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.543/1.543, allocations: 222.9 MB / 241.1 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.806/2.806, allocations: 472.7 MB / 0.746 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.001451, allocations: 63.91 kB / 1.07 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.025/1.027, allocations: 159.9 MB / 1.226 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002944/1.03, allocations: 0.8654 MB / 1.227 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002617/1.032, allocations: 1.304 MB / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/1.033, allocations: 0 / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001706/1.033, allocations: 11.86 kB / 1.228 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002821/1.033, allocations: 43.7 kB / 1.229 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001122/1.034, allocations: 266 kB / 1.229 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00055/1.035, allocations: 299.4 kB / 1.229 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/1.035, allocations: 33.09 kB / 1.229 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003716/1.035, allocations: 131.6 kB / 1.229 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003488/1.036, allocations: 123.7 kB / 1.229 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.348e-05/1.036, allocations: 24 kB / 1.229 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/1.036, allocations: 47.97 kB / 1.229 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/1.036, allocations: 35.91 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001718/1.036, allocations: 103.5 kB / 1.23 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005177/1.037, allocations: 263.7 kB / 1.23 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/1.037, allocations: 0 / 1.23 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.304e-06/1.037, allocations: 0 / 1.23 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.318e-05/1.037, allocations: 7.938 kB / 1.23 GB, free: 10.03 MB / 0.9512 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.001398/1.038, allocations: 0.5415 MB / 1.23 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/1.038, allocations: 12.03 kB / 1.23 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/1.038, allocations: 24.83 kB / 1.23 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/1.039, allocations: 237.2 kB / 1.231 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.096e-05/1.039, allocations: 12.38 kB / 1.231 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.019e-05/1.039, allocations: 20.36 kB / 1.231 GB, free: 9.086 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004791/1.039, allocations: 190.7 kB / 1.231 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/1.039, allocations: 4.188 kB / 1.231 GB, free: 8.887 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/1.039, allocations: 7.922 kB / 1.231 GB, free: 8.879 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/1.039, allocations: 4 kB / 1.231 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/1.04, allocations: 88.17 kB / 1.231 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007909/1.041, allocations: 468.8 kB / 1.231 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/1.041, allocations: 138.5 kB / 1.231 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/1.041, allocations: 96.81 kB / 1.232 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/1.041, allocations: 4 kB / 1.232 GB, free: 8.035 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004013/1.041, allocations: 203.8 kB / 1.232 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=28): time 3.607e-06/1.042, allocations: 0 / 1.232 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28): time 0.001009/1.043, allocations: 459.4 kB / 1.232 GB, free: 7.371 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/1.043, allocations: 63.39 kB / 1.232 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/1.043, allocations: 139.3 kB / 1.232 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/1.043, allocations: 45.69 kB / 1.232 GB, free: 7.102 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/1.043, allocations: 104.6 kB / 1.233 GB, free: 6.996 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.201e-05/1.043, allocations: 67.56 kB / 1.233 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/1.043, allocations: 85.98 kB / 1.233 GB, free: 6.836 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001894/1.043, allocations: 335 kB / 1.233 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003673/1.044, allocations: 148.7 kB / 1.233 GB, free: 6.355 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004214/1.044, allocations: 213.1 kB / 1.233 GB, free: 6.121 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006419/1.045, allocations: 362.8 kB / 1.234 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/1.045, allocations: 4 kB / 1.234 GB, free: 5.727 MB / 0.9512 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009901/1.046, allocations: 0.4994 MB / 1.234 GB, free: 5.211 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.615e-05/1.046, allocations: 71.39 kB / 1.234 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/1.046, allocations: 0 / 1.234 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.719e-05/1.046, allocations: 4.219 kB / 1.234 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/1.046, allocations: 55.91 kB / 1.234 GB, free: 5.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.532e-05/1.046, allocations: 3.938 kB / 1.234 GB, free: 5.066 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/1.047, allocations: 83.69 kB / 1.234 GB, free: 4.984 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.603e-05/1.047, allocations: 27.91 kB / 1.234 GB, free: 4.957 MB / 0.9512 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.0002822/1.047, allocations: 166.3 kB / 1.235 GB, free: 4.785 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/1.047, allocations: 23.83 kB / 1.235 GB, free: 4.762 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.288e-05/1.047, allocations: 13.88 kB / 1.235 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/1.047, allocations: 0 / 1.235 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/1.047, allocations: 0 / 1.235 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/1.048, allocations: 89.02 kB / 1.235 GB, free: 4.637 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.642e-05/1.048, allocations: 19.92 kB / 1.235 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-05/1.048, allocations: 11.98 kB / 1.235 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.317e-05/1.048, allocations: 15.97 kB / 1.235 GB, free: 4.59 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007541/1.049, allocations: 432.8 kB / 1.235 GB, free: 4.16 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007538/1.049, allocations: 0.5205 MB / 1.236 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002019/1.05, allocations: 107.9 kB / 1.236 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.053e-05/1.05, allocations: 109.4 kB / 1.236 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of Backend: time 1.413e-06/1.05, allocations: 0 / 1.236 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001098/1.051, allocations: 455.1 kB / 1.236 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001066/1.052, allocations: 0.7122 MB / 1.237 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of Templates: time 0.01072/1.063, allocations: 3.721 MB / 1.241 GB, free: 14.5 MB / 0.9669 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