Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 109 kB / 16.41 MB, free: 6.465 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.001605/0.001605, allocations: 190.7 kB / 17.35 MB, free: 5.711 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.439/1.439, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.547/2.547, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 55.91 kB / 1.019 GB, free: 9.441 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.123/1.124, allocations: 151.6 MB / 1.167 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002244/1.127, allocations: 0.8751 MB / 1.168 GB, free: 3 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00188/1.129, allocations: 1.318 MB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.645e-05/1.129, allocations: 7.938 kB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001218/1.129, allocations: 11.86 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001463/1.129, allocations: 31.66 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007529/1.13, allocations: 268.7 kB / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003454/1.13, allocations: 303.4 kB / 1.17 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/1.13, allocations: 25.11 kB / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/1.13, allocations: 127.8 kB / 1.17 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002573/1.131, allocations: 127.5 kB / 1.17 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.66e-05/1.131, allocations: 24 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/1.131, allocations: 43.91 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.883e-05/1.131, allocations: 43.91 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001387/1.131, allocations: 103.6 kB / 1.171 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003564/1.132, allocations: 259.7 kB / 1.171 GB, free: 332 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/1.132, allocations: 0 / 1.171 GB, free: 332 kB / 0.8887 GB Notification: Performance of FrontEnd: time 2.325e-06/1.132, allocations: 0 / 1.171 GB, free: 332 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.933e-06/1.132, allocations: 0 / 1.171 GB, free: 332 kB / 0.8887 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.001113/1.133, allocations: 0.5415 MB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/1.133, allocations: 8.922 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.883e-05/1.133, allocations: 28.83 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/1.133, allocations: 232.1 kB / 1.172 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/1.133, allocations: 12.38 kB / 1.172 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/1.133, allocations: 24.34 kB / 1.172 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/1.134, allocations: 186.6 kB / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/1.134, allocations: 192 / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/1.134, allocations: 7.922 kB / 1.172 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/1.134, allocations: 4 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/1.134, allocations: 94.77 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000734/1.135, allocations: 480.7 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/1.135, allocations: 134.5 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/1.135, allocations: 97.94 kB / 1.173 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/1.135, allocations: 0 / 1.173 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000385/1.136, allocations: 211.9 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=28): time 2.234e-06/1.136, allocations: 0 / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28): time 0.0009243/1.137, allocations: 455.3 kB / 1.173 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/1.137, allocations: 55.41 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/1.137, allocations: 136.6 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.823e-05/1.137, allocations: 45.67 kB / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.579e-05/1.137, allocations: 108.6 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.983e-05/1.137, allocations: 71.52 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/1.137, allocations: 89.98 kB / 1.174 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001501/1.137, allocations: 334.9 kB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/1.138, allocations: 148.7 kB / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/1.138, allocations: 205.2 kB / 1.174 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/1.139, allocations: 370.8 kB / 1.175 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/1.139, allocations: 0 / 1.175 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008413/1.139, allocations: 0.4947 MB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/1.139, allocations: 67.39 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/1.139, allocations: 4 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/1.14, allocations: 4 kB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/1.14, allocations: 51.91 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/1.14, allocations: 4 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000377/1.14, allocations: 75.89 kB / 1.175 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/1.14, allocations: 27.92 kB / 1.175 GB, free: 11.29 MB / 0.9044 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.0001864/1.14, allocations: 157.7 kB / 1.176 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.586e-05/1.14, allocations: 16 kB / 1.176 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/1.141, allocations: 25.84 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/1.141, allocations: 3.938 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/1.141, allocations: 4 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.388e-05/1.141, allocations: 89.02 kB / 1.176 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.89e-05/1.141, allocations: 19.92 kB / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.642e-05/1.141, allocations: 7.984 kB / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/1.141, allocations: 19.97 kB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006408/1.141, allocations: 428.8 kB / 1.176 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006959/1.142, allocations: 0.5219 MB / 1.177 GB, free: 9.949 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002079/1.142, allocations: 111.9 kB / 1.177 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.032e-05/1.142, allocations: 107.3 kB / 1.177 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of Backend: time 8.42e-07/1.143, allocations: 0 / 1.177 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009258/1.143, allocations: 449.2 kB / 1.177 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0008501/1.144, allocations: 0.7292 MB / 1.178 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of Templates: time 0.009958/1.154, allocations: 3.698 MB / 1.182 GB, free: 4.824 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches