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.01088/0.01088, allocations: 101.9 kB / 15.73 MB, free: 6 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.001778/0.001778, allocations: 196.1 kB / 16.67 MB, free: 5.926 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.655/1.655, allocations: 222.9 MB / 240.4 MB, free: 4.133 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.028/3.028, allocations: 461.9 MB / 0.7348 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 55.91 kB / 1.054 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4359/0.4373, allocations: 157.4 MB / 1.208 GB, free: 9.59 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.003241/0.4406, allocations: 0.8643 MB / 1.209 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002576/0.4433, allocations: 1.307 MB / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.4434, allocations: 3.938 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.4437, allocations: 7.875 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.4439, allocations: 39.7 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.4451, allocations: 267.7 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005574/0.4457, allocations: 299.4 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.4459, allocations: 29.11 kB / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003363/0.4462, allocations: 131.7 kB / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004132/0.4466, allocations: 135.5 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.302e-05/0.4467, allocations: 24 kB / 1.211 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.4469, allocations: 31.98 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.239e-05/0.447, allocations: 39.91 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.4471, allocations: 107.5 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000449/0.4476, allocations: 263.2 kB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4476, allocations: 7.938 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4476, allocations: 4 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.4476, allocations: 0 / 1.211 GB, free: 6.047 MB / 0.9669 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.00148/0.4491, allocations: 0.5377 MB / 1.212 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.661e-05/0.4492, allocations: 8.625 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.4494, allocations: 24.84 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.4498, allocations: 233.7 kB / 1.212 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/0.4499, allocations: 12.38 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/0.4499, allocations: 24.3 kB / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005218/0.4505, allocations: 182.8 kB / 1.212 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.4505, allocations: 4.172 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.4505, allocations: 7.938 kB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.4506, allocations: 4 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002502/0.4508, allocations: 92.11 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009308/0.4517, allocations: 460.9 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.4521, allocations: 150.4 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.4523, allocations: 98.86 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.4523, allocations: 4 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003712/0.4527, allocations: 199.8 kB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=28): time 2.234e-06/0.4527, allocations: 0 / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of matching and sorting (n=28): time 0.0008952/0.4536, allocations: 460.2 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/0.4537, allocations: 63.41 kB / 1.214 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.4538, allocations: 147.2 kB / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/0.4539, allocations: 41.7 kB / 1.214 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.659e-05/0.454, allocations: 96.69 kB / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.044e-05/0.4541, allocations: 71.17 kB / 1.214 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.4542, allocations: 86 kB / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.4544, allocations: 338.8 kB / 1.214 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.4547, allocations: 144.7 kB / 1.215 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.455, allocations: 213.2 kB / 1.215 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000593/0.4557, allocations: 362.2 kB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.4557, allocations: 4 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008999/0.4566, allocations: 499.8 kB / 1.216 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.725e-05/0.4567, allocations: 71.52 kB / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.4567, allocations: 8 kB / 1.216 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.4567, allocations: 4 kB / 1.216 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.457, allocations: 55.91 kB / 1.216 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.457, allocations: 0 / 1.216 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.4574, allocations: 83.5 kB / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.388e-05/0.4575, allocations: 23.92 kB / 1.216 GB, free: 1.004 MB / 0.9669 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.0002188/0.4577, allocations: 169.8 kB / 1.216 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.802e-05/0.4578, allocations: 11.91 kB / 1.216 GB, free: 0.8164 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.4578, allocations: 17.88 kB / 1.216 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4578, allocations: 0 / 1.216 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.4578, allocations: 0 / 1.216 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.4578, allocations: 7.922 kB / 1.216 GB, free: 0.793 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009289/0.4588, allocations: 0.6622 MB / 1.217 GB, free: 76 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4588, allocations: 4 kB / 1.217 GB, free: 72 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.321e-05/0.4588, allocations: 7.938 kB / 1.217 GB, free: 64 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.4588, allocations: 0 / 1.217 GB, free: 64 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.4589, allocations: 11.97 kB / 1.217 GB, free: 52 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.4589, allocations: 3.938 kB / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4589, allocations: 0 / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006885/0.4596, allocations: 459.1 kB / 1.217 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.4597, allocations: 88.92 kB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.117e-05/0.4597, allocations: 19.92 kB / 1.217 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.4599, allocations: 15.92 kB / 1.217 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.4599, allocations: 11.98 kB / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.46, allocations: 23.97 kB / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.7e-05/0.4601, allocations: 101.1 kB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4601, allocations: 0 / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003776/0.4605, allocations: 71.98 kB / 1.217 GB, free: 15.24 MB / 0.9825 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.000266/0.4607, allocations: 137.7 kB / 1.218 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008179/0.4615, allocations: 451.2 kB / 1.218 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4616, allocations: 0 / 1.218 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002558/0.4618, allocations: 122.5 kB / 1.218 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.4622, allocations: 36.22 kB / 1.218 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000713/0.463, allocations: 313.2 kB / 1.218 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.4634, allocations: 0.7167 MB / 1.219 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.311e-05/0.4634, allocations: 21.55 kB / 1.219 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.752e-05/0.4635, allocations: 15.44 kB / 1.219 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.4635, allocations: 3.938 kB / 1.219 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of Templates: time 0.009518/0.473, allocations: 3.715 MB / 1.223 GB, free: 9.676 MB / 0.9825 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/jenkins/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