Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001587/0.001587, allocations: 111.3 kB / 16.42 MB, free: 6.461 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.001673/0.001673, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.392/1.392, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 72.09 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9065/0.9081, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002112/0.9102, allocations: 0.8799 MB / 1.089 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001766/0.912, allocations: 1.304 MB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.736e-05/0.9121, allocations: 1.031 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.9122, allocations: 13.59 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.9124, allocations: 34.02 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008025/0.9132, allocations: 270.8 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004331/0.9136, allocations: 297.4 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.9138, allocations: 24.12 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002387/0.914, allocations: 139 kB / 1.091 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003079/0.9144, allocations: 123.4 kB / 1.092 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.719e-05/0.9144, allocations: 23.22 kB / 1.092 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.9146, allocations: 40.27 kB / 1.092 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.32e-05/0.9147, allocations: 37.5 kB / 1.092 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.9149, allocations: 106.3 kB / 1.092 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004621/0.9153, allocations: 265.2 kB / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.9153, allocations: 0 / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9153, allocations: 0.875 kB / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.257e-05/0.9154, allocations: 4 kB / 1.092 GB, free: 3.414 MB / 0.8575 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.001055/0.9164, allocations: 0.5309 MB / 1.093 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.9165, allocations: 13.44 kB / 1.093 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.373e-05/0.9166, allocations: 22.39 kB / 1.093 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.9169, allocations: 232.6 kB / 1.093 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.9169, allocations: 14.8 kB / 1.093 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.932e-05/0.917, allocations: 21.34 kB / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.9174, allocations: 181.8 kB / 1.093 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.9174, allocations: 4.188 kB / 1.093 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.9174, allocations: 11.48 kB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.9174, allocations: 2.375 kB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.9177, allocations: 87.23 kB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006702/0.9183, allocations: 477.1 kB / 1.094 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.9186, allocations: 134 kB / 1.094 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.9188, allocations: 94.88 kB / 1.094 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.9188, allocations: 3.141 kB / 1.094 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003908/0.9192, allocations: 220.5 kB / 1.094 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=28): time 1.673e-06/0.9192, allocations: 3.938 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28): time 0.001011/0.9202, allocations: 450.1 kB / 1.094 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.9203, allocations: 62.91 kB / 1.095 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.9204, allocations: 145.2 kB / 1.095 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.694e-05/0.9205, allocations: 39.42 kB / 1.095 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.442e-05/0.9206, allocations: 102.1 kB / 1.095 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.9206, allocations: 66.89 kB / 1.095 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.9208, allocations: 87.45 kB / 1.095 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.203e-05/0.9209, allocations: 334 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000329/0.9212, allocations: 151.1 kB / 1.095 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003488/0.9216, allocations: 215.4 kB / 1.096 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005413/0.9221, allocations: 360.2 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.9222, allocations: 1.312 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009064/0.9231, allocations: 0.4942 MB / 1.096 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.102e-05/0.9231, allocations: 69.19 kB / 1.097 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.9231, allocations: 1.719 kB / 1.097 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.9232, allocations: 3.656 kB / 1.097 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.9234, allocations: 56.31 kB / 1.097 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.9234, allocations: 4.406 kB / 1.097 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/0.9239, allocations: 73.62 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/0.9239, allocations: 23.69 kB / 1.097 GB, free: 428 kB / 0.8575 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.0001757/0.9241, allocations: 174.1 kB / 1.097 GB, free: 276 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.9241, allocations: 17.2 kB / 1.097 GB, free: 268 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.293e-05/0.9242, allocations: 13.16 kB / 1.097 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.9242, allocations: 1.859 kB / 1.097 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.9242, allocations: 0.5312 kB / 1.097 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.37e-05/0.9242, allocations: 90.25 kB / 1.097 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.9243, allocations: 23.3 kB / 1.097 GB, free: 144 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.375e-05/0.9244, allocations: 7.156 kB / 1.097 GB, free: 144 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.379e-05/0.9245, allocations: 22.08 kB / 1.097 GB, free: 136 kB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006822/0.9252, allocations: 433.1 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007154/0.9259, allocations: 0.5251 MB / 1.098 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002233/0.9261, allocations: 115.2 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 8.272e-05/0.9262, allocations: 100.9 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of Backend: time 9.32e-07/0.9262, allocations: 0 / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000956/0.9272, allocations: 455.1 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of SimCode: time 0.0008425/0.928, allocations: 0.7196 MB / 1.099 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of Templates: time 0.009684/0.9377, allocations: 3.712 MB / 1.103 GB, free: 14.29 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches