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.001702/0.001702, allocations: 105 kB / 15.98 MB, free: 6.355 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.001711/0.001711, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.41/1.41, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.752/2.752, allocations: 482.4 MB / 0.755 GB, free: 7.16 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00218/0.002181, allocations: 69.55 kB / 0.924 GB, free: 316 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7669/0.7691, allocations: 162.2 MB / 1.082 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001959/0.7711, allocations: 0.9139 MB / 1.083 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.7725, allocations: 1.31 MB / 1.085 GB, free: 88 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.181e-05/0.7726, allocations: 1.125 kB / 1.085 GB, free: 88 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.7727, allocations: 10.72 kB / 1.085 GB, free: 80 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.7728, allocations: 24.27 kB / 1.085 GB, free: 64 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.7736, allocations: 250.3 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003706/0.7739, allocations: 294.4 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.7741, allocations: 32.7 kB / 1.085 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.7743, allocations: 128.9 kB / 1.085 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.7745, allocations: 112.6 kB / 1.085 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.252e-05/0.7746, allocations: 27.91 kB / 1.085 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.531e-05/0.7747, allocations: 40 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.422e-05/0.7748, allocations: 46.28 kB / 1.086 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.7749, allocations: 108.7 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.7752, allocations: 181.3 kB / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.7752, allocations: 0 / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7752, allocations: 5.281 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.7752, allocations: 0 / 1.086 GB, free: 15.56 MB / 0.8419 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.000999/0.7762, allocations: 0.5408 MB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.7763, allocations: 9.375 kB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.999e-05/0.7763, allocations: 23.34 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.7766, allocations: 231.7 kB / 1.087 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.7767, allocations: 15.58 kB / 1.087 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.7767, allocations: 20.22 kB / 1.087 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.7772, allocations: 183.7 kB / 1.087 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.7772, allocations: 192 / 1.087 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.7772, allocations: 11.48 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.7772, allocations: 6.406 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.7775, allocations: 91.31 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007297/0.7782, allocations: 465.2 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.7785, allocations: 137.5 kB / 1.087 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.7787, allocations: 94.66 kB / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.7787, allocations: 2.438 kB / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004012/0.7791, allocations: 223.6 kB / 1.088 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.7791, allocations: 0 / 1.088 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.0009272/0.7801, allocations: 450.8 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.7801, allocations: 59.75 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.7803, allocations: 136.7 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.773e-05/0.7804, allocations: 43.59 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/0.7805, allocations: 110.9 kB / 1.089 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.277e-05/0.7805, allocations: 70.02 kB / 1.089 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.7807, allocations: 86.83 kB / 1.089 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.7809, allocations: 333.8 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003229/0.7812, allocations: 148 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.7816, allocations: 206.8 kB / 1.089 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000588/0.7822, allocations: 360.3 kB / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.7822, allocations: 0 / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009251/0.7832, allocations: 0.5013 MB / 1.09 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.599e-05/0.7832, allocations: 67.78 kB / 1.09 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.7833, allocations: 5.141 kB / 1.09 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.7833, allocations: 4.656 kB / 1.09 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002345/0.7835, allocations: 53.58 kB / 1.09 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.7835, allocations: 4.125 kB / 1.09 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000422/0.784, allocations: 74.39 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.669e-05/0.784, allocations: 19.08 kB / 1.09 GB, free: 12.57 MB / 0.8419 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.0002108/0.7843, allocations: 178.9 kB / 1.091 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/0.7843, allocations: 17.92 kB / 1.091 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.7843, allocations: 17.72 kB / 1.091 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.7843, allocations: 1.469 kB / 1.091 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.7844, allocations: 1.375 kB / 1.091 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.7844, allocations: 5.391 kB / 1.091 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009136/0.7853, allocations: 0.6599 MB / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.7853, allocations: 4 kB / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-05/0.7854, allocations: 6.75 kB / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.7854, allocations: 1.938 kB / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.7854, allocations: 12.78 kB / 1.091 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.7854, allocations: 5.969 kB / 1.091 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.7854, allocations: 0.7969 kB / 1.091 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006828/0.7861, allocations: 458 kB / 1.092 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.7862, allocations: 97.48 kB / 1.092 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.532e-05/0.7862, allocations: 15.89 kB / 1.092 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.7864, allocations: 15.14 kB / 1.092 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.7864, allocations: 17.08 kB / 1.092 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.762e-05/0.7865, allocations: 18.31 kB / 1.092 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.885e-05/0.7866, allocations: 104.5 kB / 1.092 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7866, allocations: 3.938 kB / 1.092 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003645/0.7869, allocations: 65.88 kB / 1.092 GB, free: 11.52 MB / 0.8419 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.0002002/0.7871, allocations: 142.3 kB / 1.092 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008174/0.788, allocations: 470.5 kB / 1.093 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.788, allocations: 0 / 1.093 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.7882, allocations: 122.7 kB / 1.093 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.7886, allocations: 37.84 kB / 1.093 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007052/0.7893, allocations: 385.9 kB / 1.093 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.7897, allocations: 0.7206 MB / 1.094 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.7898, allocations: 24.08 kB / 1.094 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of SimCode: time 4.21e-07/0.7898, allocations: 1.031 kB / 1.094 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of Templates: time 0.005818/0.7956, allocations: 3.033 MB / 1.097 GB, free: 9.883 MB / 0.8419 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=400 -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