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.006742/0.006742, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001457/0.001457, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.513/1.513, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.697/2.697, allocations: 461.9 MB / 0.7347 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.89 kB / 1.054 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.201/1.202, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002474/1.205, allocations: 0.8718 MB / 1.209 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001938/1.207, allocations: 1.318 MB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.681e-05/1.207, allocations: 0 / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001185/1.207, allocations: 11.81 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001455/1.207, allocations: 31.78 kB / 1.21 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007321/1.208, allocations: 266 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003464/1.208, allocations: 303.4 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/1.208, allocations: 25.11 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/1.209, allocations: 139.6 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/1.209, allocations: 119.7 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.205e-05/1.209, allocations: 24 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.112e-05/1.209, allocations: 35.98 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.872e-05/1.209, allocations: 51.83 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/1.209, allocations: 103.6 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003214/1.21, allocations: 263.1 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/1.21, allocations: 0 / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.044e-06/1.21, allocations: 0 / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.164e-05/1.21, allocations: 0 / 1.211 GB, free: 10.1 MB / 0.9356 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.0009677/1.211, allocations: 0.5357 MB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/1.211, allocations: 12.03 kB / 1.212 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.133e-05/1.211, allocations: 28.67 kB / 1.212 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/1.211, allocations: 236 kB / 1.212 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/1.211, allocations: 12.38 kB / 1.212 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/1.211, allocations: 20.36 kB / 1.212 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/1.212, allocations: 186.7 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/1.212, allocations: 192 / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.673e-05/1.212, allocations: 7.922 kB / 1.212 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/1.212, allocations: 7.938 kB / 1.212 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/1.212, allocations: 92.17 kB / 1.212 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/1.212, allocations: 472.8 kB / 1.213 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/1.213, allocations: 132.4 kB / 1.213 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/1.213, allocations: 92.81 kB / 1.213 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/1.213, allocations: 4.156 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/1.213, allocations: 219.7 kB / 1.213 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=28): time 1.884e-06/1.213, allocations: 0 / 1.213 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of matching and sorting (n=28): time 0.0008824/1.214, allocations: 455.3 kB / 1.214 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/1.214, allocations: 55.41 kB / 1.214 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/1.214, allocations: 134 kB / 1.214 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.007e-05/1.214, allocations: 49.67 kB / 1.214 GB, free: 7.184 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.311e-05/1.215, allocations: 100.6 kB / 1.214 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.293e-05/1.215, allocations: 71.19 kB / 1.214 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/1.215, allocations: 89.98 kB / 1.214 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001476/1.215, allocations: 330.8 kB / 1.214 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/1.215, allocations: 148.7 kB / 1.215 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/1.216, allocations: 209.1 kB / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005304/1.216, allocations: 362.3 kB / 1.215 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.216, allocations: 0 / 1.215 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008597/1.217, allocations: 0.5032 MB / 1.216 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.681e-05/1.217, allocations: 65.28 kB / 1.216 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/1.217, allocations: 7.984 kB / 1.216 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/1.217, allocations: 0 / 1.216 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/1.217, allocations: 55.86 kB / 1.216 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/1.217, allocations: 7.984 kB / 1.216 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/1.218, allocations: 75.78 kB / 1.216 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/1.218, allocations: 23.98 kB / 1.216 GB, free: 5.059 MB / 0.9356 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.0002007/1.218, allocations: 161.8 kB / 1.216 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/1.218, allocations: 19.8 kB / 1.216 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.809e-05/1.218, allocations: 17.88 kB / 1.216 GB, free: 4.852 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/1.218, allocations: 4 kB / 1.216 GB, free: 4.848 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.218, allocations: 4 kB / 1.216 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/1.218, allocations: 3.938 kB / 1.216 GB, free: 4.84 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008648/1.219, allocations: 0.6583 MB / 1.217 GB, free: 4.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/1.219, allocations: 4 kB / 1.217 GB, free: 4.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.328e-05/1.219, allocations: 4 kB / 1.217 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/1.219, allocations: 0 / 1.217 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/1.219, allocations: 15.97 kB / 1.217 GB, free: 4.102 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.61e-05/1.219, allocations: 11.88 kB / 1.217 GB, free: 4.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.219, allocations: 0 / 1.217 GB, free: 4.09 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006524/1.22, allocations: 453.3 kB / 1.217 GB, free: 3.633 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.155e-05/1.22, allocations: 100.8 kB / 1.217 GB, free: 3.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.566e-05/1.22, allocations: 15.98 kB / 1.217 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/1.22, allocations: 11.92 kB / 1.217 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.998e-05/1.22, allocations: 15.92 kB / 1.217 GB, free: 3.473 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.831e-05/1.22, allocations: 27.97 kB / 1.217 GB, free: 3.445 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.727e-05/1.22, allocations: 99.27 kB / 1.217 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/1.22, allocations: 0 / 1.217 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000344/1.221, allocations: 64 kB / 1.217 GB, free: 3.285 MB / 0.9356 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.0002165/1.221, allocations: 129.5 kB / 1.218 GB, free: 3.152 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007519/1.222, allocations: 452.5 kB / 1.218 GB, free: 2.688 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/1.222, allocations: 256 / 1.218 GB, free: 2.688 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002149/1.222, allocations: 123.9 kB / 1.218 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/1.222, allocations: 27.97 kB / 1.218 GB, free: 2.539 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006395/1.223, allocations: 317.3 kB / 1.218 GB, free: 2.207 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/1.223, allocations: 0.7245 MB / 1.219 GB, free: 1.457 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.248e-05/1.223, allocations: 21.72 kB / 1.219 GB, free: 1.438 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.362e-05/1.223, allocations: 19.44 kB / 1.219 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of SimCode: time 4.01e-07/1.223, allocations: 0 / 1.219 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of Templates: time 0.007152/1.231, allocations: 3.585 MB / 1.223 GB, free: 13.87 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/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