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.001324/0.001324, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001805/0.001805, allocations: 193.4 kB / 16.14 MB, free: 6.645 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.516/1.516, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.106/3.106, allocations: 474.4 MB / 0.7465 GB, free: 3.164 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 69.88 kB / 0.9135 GB, free: 32.9 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4308/0.4321, allocations: 160.3 MB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002341/0.4345, allocations: 0.9139 MB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001923/0.4365, allocations: 1.338 MB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.824e-05/0.4366, allocations: 7.938 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.4367, allocations: 3.938 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.4368, allocations: 31.75 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007055/0.4376, allocations: 244.7 kB / 1.073 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.4378, allocations: 255.5 kB / 1.073 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.438, allocations: 36.88 kB / 1.073 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.4382, allocations: 115.7 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.4384, allocations: 111.7 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.4384, allocations: 16 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.511e-05/0.4385, allocations: 27.98 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.9e-05/0.4386, allocations: 39.83 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.4388, allocations: 99.61 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000289/0.439, allocations: 243.5 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.4391, allocations: 0 / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.02e-07/0.4391, allocations: 0 / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.4391, allocations: 4 kB / 1.073 GB, free: 5.105 MB / 0.8262 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.001004/0.4401, allocations: 0.5493 MB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.4401, allocations: 8.031 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.692e-05/0.4402, allocations: 24.84 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.4405, allocations: 232 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.4405, allocations: 12.36 kB / 1.074 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.4406, allocations: 16.38 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.441, allocations: 186.7 kB / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.441, allocations: 192 / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.441, allocations: 11.94 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.441, allocations: 4 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.4412, allocations: 88.17 kB / 1.075 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006343/0.4419, allocations: 476.7 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.4422, allocations: 138.4 kB / 1.075 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.4423, allocations: 96.8 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.4424, allocations: 4 kB / 1.075 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003405/0.4427, allocations: 205.1 kB / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.633e-06/0.4427, allocations: 0 / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.0008672/0.4436, allocations: 456.9 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.4437, allocations: 59.41 kB / 1.076 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.4439, allocations: 151.9 kB / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.4439, allocations: 37.7 kB / 1.076 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/0.444, allocations: 100.7 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.528e-05/0.4441, allocations: 71.17 kB / 1.076 GB, free: 2.004 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.4443, allocations: 86 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.4444, allocations: 334.8 kB / 1.077 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.4447, allocations: 144.7 kB / 1.077 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.4451, allocations: 213.1 kB / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005017/0.4456, allocations: 358.3 kB / 1.077 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.4456, allocations: 4 kB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008227/0.4464, allocations: 499.2 kB / 1.078 GB, free: 324 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.835e-05/0.4465, allocations: 75.33 kB / 1.078 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.118e-06/0.4465, allocations: 0 / 1.078 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4465, allocations: 8 kB / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.4468, allocations: 56.03 kB / 1.078 GB, free: 172 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.4468, allocations: 4 kB / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.4472, allocations: 75.62 kB / 1.078 GB, free: 92 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.153e-05/0.4472, allocations: 19.98 kB / 1.078 GB, free: 72 kB / 0.8262 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.0001973/0.4474, allocations: 166.1 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.4475, allocations: 11.91 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.366e-05/0.4475, allocations: 21.8 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.4475, allocations: 0 / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.4475, allocations: 3.938 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.4475, allocations: 3.938 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009045/0.4485, allocations: 0.6675 MB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4485, allocations: 4.094 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.651e-05/0.4485, allocations: 7.984 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.4486, allocations: 3.984 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.291e-05/0.4486, allocations: 7.984 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.4486, allocations: 3.938 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4486, allocations: 4 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006526/0.4493, allocations: 451 kB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.968e-05/0.4494, allocations: 92.91 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.919e-05/0.4495, allocations: 27.92 kB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.4496, allocations: 7.938 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.329e-05/0.4497, allocations: 19.97 kB / 1.079 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.4498, allocations: 15.98 kB / 1.079 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.615e-05/0.4498, allocations: 105 kB / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4498, allocations: 0 / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003458/0.4502, allocations: 67.98 kB / 1.08 GB, free: 14.3 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.0002189/0.4504, allocations: 141.3 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006919/0.4511, allocations: 452.5 kB / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4511, allocations: 0 / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.4514, allocations: 119.9 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.4517, allocations: 36.2 kB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006033/0.4523, allocations: 349.2 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.4526, allocations: 0.7206 MB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.621e-05/0.4527, allocations: 17.55 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.193e-05/0.4528, allocations: 27.42 kB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of SimCode: time 3.3e-07/0.4528, allocations: 0 / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of Templates: time 0.006413/0.4592, allocations: 3.428 MB / 1.085 GB, free: 8.984 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=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