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.001419/0.001419, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.593/1.593, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.322/3.322, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 64.44 kB / 0.9121 GB, free: 33.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4827/0.4845, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.003595/0.4881, allocations: 0.8691 MB / 1.069 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002828/0.491, allocations: 1.31 MB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.4911, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.4913, allocations: 15.8 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.4916, allocations: 27.78 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.4927, allocations: 270.8 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006346/0.4933, allocations: 291.4 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.4935, allocations: 32.88 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003316/0.4939, allocations: 135.6 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003398/0.4942, allocations: 111.7 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.958e-05/0.4943, allocations: 24 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.4945, allocations: 39.98 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.4946, allocations: 43.83 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.4948, allocations: 99.61 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005605/0.4954, allocations: 263.5 kB / 1.072 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4954, allocations: 4 kB / 1.072 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.515e-06/0.4954, allocations: 0 / 1.072 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.4954, allocations: 0 / 1.072 GB, free: 6.898 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.001297/0.4967, allocations: 0.5416 MB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.4968, allocations: 8.031 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.4969, allocations: 24.75 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004752/0.4974, allocations: 237.6 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.4975, allocations: 16.36 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.329e-05/0.4975, allocations: 20.38 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/0.4981, allocations: 181.2 kB / 1.073 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4981, allocations: 192 / 1.073 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.4981, allocations: 15.94 kB / 1.073 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.4981, allocations: 7.938 kB / 1.073 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002943/0.4984, allocations: 88.11 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009951/0.4995, allocations: 464.9 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.4999, allocations: 138.5 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002413/0.5001, allocations: 96.8 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.5002, allocations: 4.156 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004687/0.5007, allocations: 208.9 kB / 1.074 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 6.302e-06/0.5007, allocations: 3.984 kB / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.001182/0.5019, allocations: 461.2 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.5019, allocations: 55.41 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.5021, allocations: 143.5 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.157e-05/0.5022, allocations: 45.69 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.5023, allocations: 104.6 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.5024, allocations: 71.17 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.5027, allocations: 82 kB / 1.075 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002211/0.5029, allocations: 338.8 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004121/0.5033, allocations: 144.7 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004859/0.5038, allocations: 209.2 kB / 1.075 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008692/0.5047, allocations: 362.3 kB / 1.076 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.5047, allocations: 0 / 1.076 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008986/0.5056, allocations: 0.4954 MB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.452e-05/0.5057, allocations: 67.39 kB / 1.076 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.5057, allocations: 128 / 1.076 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.5057, allocations: 8 kB / 1.076 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.506, allocations: 51.91 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.506, allocations: 0 / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004228/0.5064, allocations: 71.72 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-05/0.5065, allocations: 23.98 kB / 1.076 GB, free: 1.879 MB / 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.0002258/0.5067, allocations: 171.4 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.5068, allocations: 19.75 kB / 1.076 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.664e-05/0.5068, allocations: 21.8 kB / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.5068, allocations: 0 / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.5068, allocations: 0 / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.5069, allocations: 7.938 kB / 1.076 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008501/0.5077, allocations: 0.6629 MB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5077, allocations: 0 / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.403e-05/0.5078, allocations: 11.92 kB / 1.077 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.5078, allocations: 0 / 1.077 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.5078, allocations: 11.98 kB / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.5078, allocations: 7.938 kB / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5078, allocations: 0 / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006116/0.5085, allocations: 451.8 kB / 1.078 GB, free: 456 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.5085, allocations: 96.91 kB / 1.078 GB, free: 340 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.795e-05/0.5086, allocations: 15.98 kB / 1.078 GB, free: 324 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.5087, allocations: 11.94 kB / 1.078 GB, free: 312 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.672e-05/0.5088, allocations: 16.06 kB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.598e-05/0.5088, allocations: 19.98 kB / 1.078 GB, free: 276 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.878e-05/0.5089, allocations: 108.8 kB / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5089, allocations: 0 / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003699/0.5093, allocations: 63.98 kB / 1.078 GB, free: 104 kB / 0.8262 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.0002828/0.5096, allocations: 146.2 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008273/0.5104, allocations: 471 kB / 1.078 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.5104, allocations: 7.938 kB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000222/0.5107, allocations: 111.9 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.5111, allocations: 37.16 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007081/0.5118, allocations: 331.1 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.5122, allocations: 0.7167 MB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.187e-05/0.5123, allocations: 21.55 kB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.991e-05/0.5123, allocations: 15.44 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.5123, allocations: 4 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of Templates: time 0.007788/0.5201, allocations: 3.574 MB / 1.083 GB, free: 10.65 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