Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.007719/0.007719, allocations: 101 kB / 15.73 MB, free: 6.02 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.001282/0.001282, allocations: 189.5 kB / 16.67 MB, free: 5.938 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.623/2.623, allocations: 469.8 MB / 0.7425 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 67.84 kB / 1.065 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8917/0.893, allocations: 159.1 MB / 1.221 GB, free: 2.164 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002635/0.8956, allocations: 0.8685 MB / 1.221 GB, free: 1.301 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002114/0.8977, allocations: 1.314 MB / 1.223 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.911e-05/0.8978, allocations: 4 kB / 1.223 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.8979, allocations: 15.8 kB / 1.223 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.8981, allocations: 27.78 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.8989, allocations: 272.3 kB / 1.223 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.8992, allocations: 287.4 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.8993, allocations: 21.11 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.8995, allocations: 131.6 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.8997, allocations: 123.6 kB / 1.224 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.8998, allocations: 24 kB / 1.224 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.233e-05/0.8999, allocations: 39.98 kB / 1.224 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.629e-05/0.8999, allocations: 51.83 kB / 1.224 GB, free: 15 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.9001, allocations: 99.61 kB / 1.224 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.9004, allocations: 259.7 kB / 1.224 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.9004, allocations: 3.938 kB / 1.224 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9004, allocations: 0 / 1.224 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.9004, allocations: 0 / 1.224 GB, free: 14.65 MB / 0.9512 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.0009203/0.9013, allocations: 0.5376 MB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.9013, allocations: 12.03 kB / 1.225 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.683e-05/0.9014, allocations: 32.83 kB / 1.225 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.9017, allocations: 236 kB / 1.225 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.9017, allocations: 12.38 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.424e-05/0.9018, allocations: 20.36 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003721/0.9022, allocations: 186.7 kB / 1.225 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.9022, allocations: 192 / 1.225 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.9022, allocations: 7.922 kB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.9022, allocations: 7.984 kB / 1.225 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.9024, allocations: 92.17 kB / 1.225 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006345/0.903, allocations: 468.8 kB / 1.226 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.9033, allocations: 119.4 kB / 1.226 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.9035, allocations: 76.81 kB / 1.226 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.9035, allocations: 4.156 kB / 1.226 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003561/0.9038, allocations: 219.7 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/0.9038, allocations: 0 / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28): time 0.0009028/0.9047, allocations: 459.4 kB / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.9048, allocations: 55.41 kB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.9049, allocations: 139.8 kB / 1.227 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.437e-05/0.905, allocations: 45.69 kB / 1.227 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.494e-05/0.9051, allocations: 116.6 kB / 1.227 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.499e-05/0.9051, allocations: 59.59 kB / 1.227 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.9053, allocations: 89.97 kB / 1.227 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.9055, allocations: 334.8 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002954/0.9058, allocations: 144.7 kB / 1.227 GB, free: 11 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.9061, allocations: 213.1 kB / 1.228 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005338/0.9066, allocations: 358.2 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.9066, allocations: 4 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008673/0.9075, allocations: 0.5077 MB / 1.228 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.911e-05/0.9076, allocations: 63.41 kB / 1.228 GB, free: 9.781 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.9076, allocations: 7.984 kB / 1.228 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.9076, allocations: 4 kB / 1.228 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.9078, allocations: 43.92 kB / 1.229 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.9079, allocations: 11.92 kB / 1.229 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.9082, allocations: 83.78 kB / 1.229 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.9083, allocations: 23.92 kB / 1.229 GB, free: 9.609 MB / 0.9512 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.0001783/0.9084, allocations: 162.3 kB / 1.229 GB, free: 9.445 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.9085, allocations: 19.89 kB / 1.229 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.446e-05/0.9085, allocations: 9.875 kB / 1.229 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.9085, allocations: 8 kB / 1.229 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.9085, allocations: 0 / 1.229 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.9085, allocations: 4.031 kB / 1.229 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008643/0.9094, allocations: 0.6623 MB / 1.229 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.9094, allocations: 3.984 kB / 1.229 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.261e-05/0.9094, allocations: 4 kB / 1.229 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.9095, allocations: 4 kB / 1.229 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.9095, allocations: 15.97 kB / 1.229 GB, free: 8.652 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.9095, allocations: 3.938 kB / 1.23 GB, free: 8.648 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.9095, allocations: 4 kB / 1.23 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000604/0.9101, allocations: 451.9 kB / 1.23 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.9101, allocations: 96.89 kB / 1.23 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.846e-05/0.9102, allocations: 15.98 kB / 1.23 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.9103, allocations: 15.92 kB / 1.23 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.9104, allocations: 19.92 kB / 1.23 GB, free: 8.023 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.9104, allocations: 19.97 kB / 1.23 GB, free: 8.004 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.155e-05/0.9105, allocations: 105.5 kB / 1.23 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.9105, allocations: 0 / 1.23 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000338/0.9108, allocations: 64 kB / 1.23 GB, free: 7.84 MB / 0.9512 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.000227/0.911, allocations: 133.4 kB / 1.23 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000759/0.9118, allocations: 415 kB / 1.231 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9118, allocations: 4.062 kB / 1.231 GB, free: 7.27 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.912, allocations: 103.9 kB / 1.231 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.9124, allocations: 23.97 kB / 1.231 GB, free: 7.145 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006925/0.9131, allocations: 319.3 kB / 1.231 GB, free: 6.809 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.9133, allocations: 0.7283 MB / 1.232 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.266e-05/0.9134, allocations: 17.55 kB / 1.232 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.878e-05/0.9135, allocations: 23.44 kB / 1.232 GB, free: 6.016 MB / 0.9512 GB Notification: Performance of SimCode: time 5.01e-07/0.9135, allocations: 3.938 kB / 1.232 GB, free: 6.012 MB / 0.9512 GB Notification: Performance of Templates: time 0.006952/0.9204, allocations: 3.584 MB / 1.235 GB, free: 2.453 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches