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.001682/0.001682, allocations: 104.4 kB / 16.41 MB, free: 6.398 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.002091/0.002091, allocations: 195.7 kB / 17.35 MB, free: 5.695 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.48/1.48, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.624/2.624, allocations: 469.4 MB / 0.7428 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.89 kB / 1.065 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9656/0.9668, allocations: 159.1 MB / 1.221 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002049/0.9689, allocations: 0.8705 MB / 1.222 GB, free: 1.621 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.9707, allocations: 1.307 MB / 1.223 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.599e-05/0.9708, allocations: 3.938 kB / 1.223 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.9709, allocations: 11.86 kB / 1.223 GB, free: 292 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.971, allocations: 39.7 kB / 1.223 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006915/0.9717, allocations: 266.3 kB / 1.223 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003177/0.9721, allocations: 299.3 kB / 1.224 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.9722, allocations: 25.11 kB / 1.224 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.9724, allocations: 127.7 kB / 1.224 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.9726, allocations: 123.7 kB / 1.224 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.448e-05/0.9727, allocations: 28 kB / 1.224 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.9728, allocations: 43.91 kB / 1.224 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.734e-05/0.9729, allocations: 35.91 kB / 1.224 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.973, allocations: 107.5 kB / 1.224 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003059/0.9733, allocations: 265.1 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.9733, allocations: 0 / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9733, allocations: 3.938 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.9733, allocations: 0 / 1.224 GB, free: 14.96 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.0009521/0.9743, allocations: 0.5377 MB / 1.225 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.9743, allocations: 16.62 kB / 1.225 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.9745, allocations: 24.73 kB / 1.225 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.9747, allocations: 232.1 kB / 1.225 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.9748, allocations: 12.38 kB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.407e-05/0.9748, allocations: 28.3 kB / 1.225 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003638/0.9752, allocations: 178.8 kB / 1.225 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.9752, allocations: 192 / 1.225 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.9753, allocations: 11.92 kB / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.9753, allocations: 4 kB / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.9755, allocations: 96.11 kB / 1.225 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000681/0.9762, allocations: 468.7 kB / 1.226 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.9765, allocations: 135.4 kB / 1.226 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.9766, allocations: 92.81 kB / 1.226 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.9767, allocations: 4 kB / 1.226 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.977, allocations: 207.8 kB / 1.226 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=28): time 1.873e-06/0.977, allocations: 0 / 1.226 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28): time 0.000842/0.9779, allocations: 462.1 kB / 1.227 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.9779, allocations: 59.39 kB / 1.227 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.978, allocations: 139.8 kB / 1.227 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.332e-05/0.9781, allocations: 49.69 kB / 1.227 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/0.9782, allocations: 104.6 kB / 1.227 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.906e-05/0.9783, allocations: 63.28 kB / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.9784, allocations: 89.98 kB / 1.227 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.9786, allocations: 330.8 kB / 1.228 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003031/0.9789, allocations: 144.7 kB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.9792, allocations: 213.1 kB / 1.228 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005288/0.9797, allocations: 362.2 kB / 1.228 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.9798, allocations: 4 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008327/0.9806, allocations: 0.5032 MB / 1.229 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.514e-05/0.9807, allocations: 67.39 kB / 1.229 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.9807, allocations: 0 / 1.229 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.9807, allocations: 4 kB / 1.229 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.9809, allocations: 51.91 kB / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.981, allocations: 0 / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.9813, allocations: 87.67 kB / 1.229 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.169e-05/0.9814, allocations: 23.98 kB / 1.229 GB, free: 9.91 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.0001875/0.9816, allocations: 174.2 kB / 1.229 GB, free: 9.734 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.645e-05/0.9816, allocations: 19.8 kB / 1.229 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.161e-05/0.9817, allocations: 17.88 kB / 1.229 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.9817, allocations: 0 / 1.229 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.9817, allocations: 0 / 1.229 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.9817, allocations: 7.938 kB / 1.229 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000863/0.9826, allocations: 0.6507 MB / 1.23 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.9826, allocations: 0 / 1.23 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.524e-05/0.9826, allocations: 7.938 kB / 1.23 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.9827, allocations: 0 / 1.23 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.9827, allocations: 11.98 kB / 1.23 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.9827, allocations: 15.92 kB / 1.23 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.9827, allocations: 0 / 1.23 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006029/0.9833, allocations: 447.8 kB / 1.23 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.9834, allocations: 92.86 kB / 1.23 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.91e-05/0.9834, allocations: 19.92 kB / 1.23 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.9836, allocations: 15.92 kB / 1.23 GB, free: 8.344 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.354e-05/0.9836, allocations: 11.98 kB / 1.23 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.343e-05/0.9837, allocations: 23.98 kB / 1.23 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.426e-05/0.9837, allocations: 109 kB / 1.23 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.9837, allocations: 0 / 1.23 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003446/0.9841, allocations: 60 kB / 1.231 GB, free: 8.145 MB / 0.9512 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 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001957/0.9843, allocations: 137.3 kB / 1.231 GB, free: 8.004 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007112/0.985, allocations: 458.8 kB / 1.231 GB, free: 7.531 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.985, allocations: 0 / 1.231 GB, free: 7.531 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.9853, allocations: 127.9 kB / 1.231 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.9856, allocations: 31.95 kB / 1.231 GB, free: 7.375 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006247/0.9863, allocations: 343 kB / 1.232 GB, free: 7.008 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.9866, allocations: 0.7285 MB / 1.232 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.182e-05/0.9866, allocations: 15.44 kB / 1.232 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of SimCode: time 1.9e-07/0.9866, allocations: 0 / 1.232 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of Templates: time 0.005221/0.9919, allocations: 3.065 MB / 1.235 GB, free: 3.191 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) "" Variables in the reference:time,triMovMea.u,triMovMea.y,triMovMea1.y,booPul.y,triMovMea2.y,booPul1.y Variables in the result:booPul.y,booPul1.y,time,triMovMea.u,triMovMea.y,triMovMea1.y,triMovMea2.y