Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.47/1.47, allocations: 249.5 MB / 257 MB, free: 6.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 172.9 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.3 MB / 0.5671 GB, free: 15.89 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008916/0.0008916, allocations: 95.22 kB / 0.6714 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.768e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1888, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6928/0.8816, allocations: 132.4 MB / 1.015 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.8819, allocations: 69.94 kB / 1.015 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01022/0.8921, allocations: 3.628 MB / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.835e-06/0.8921, allocations: 0 / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.359e-05/0.8922, allocations: 15.31 kB / 1.018 GB, free: 2.254 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006794/0.8929, allocations: 452.6 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.8929, allocations: 8.031 kB / 1.019 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/0.893, allocations: 27.75 kB / 1.019 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.8933, allocations: 216.8 kB / 1.019 GB, free: 1.496 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/0.8933, allocations: 19.3 kB / 1.019 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.8933, allocations: 12 kB / 1.019 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001783/0.8935, allocations: 82.28 kB / 1.019 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.8938, allocations: 178 kB / 1.019 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.8938, allocations: 0 / 1.019 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.8938, allocations: 10.95 kB / 1.019 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.8938, allocations: 4 kB / 1.019 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005822/0.8944, allocations: 399.9 kB / 1.02 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.8946, allocations: 129.2 kB / 1.02 GB, free: 0.7773 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.8948, allocations: 85.73 kB / 1.02 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.8948, allocations: 4 kB / 1.02 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.8951, allocations: 192.5 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.8951, allocations: 4 kB / 1.02 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0005468/0.8956, allocations: 332.4 kB / 1.02 GB, free: 296 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.8957, allocations: 63.02 kB / 1.02 GB, free: 224 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.8958, allocations: 122.8 kB / 1.02 GB, free: 104 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.8958, allocations: 37.31 kB / 1.02 GB, free: 64 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/0.8959, allocations: 95.92 kB / 1.021 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.59e-05/0.896, allocations: 66.25 kB / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.55e-05/0.896, allocations: 3.562 kB / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.8962, allocations: 330.2 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.8963, allocations: 82.05 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.8965, allocations: 144.5 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.8967, allocations: 113.8 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.8967, allocations: 0 / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003955/0.8971, allocations: 292.3 kB / 1.022 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.8971, allocations: 4 kB / 1.022 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.8971, allocations: 4 kB / 1.022 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.8972, allocations: 8.156 kB / 1.022 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.8975, allocations: 75.14 kB / 1.022 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.8975, allocations: 4 kB / 1.022 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.8976, allocations: 27.92 kB / 1.022 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.8977, allocations: 11.62 kB / 1.022 GB, free: 14.98 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.8978, allocations: 150 kB / 1.022 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.8978, allocations: 19.77 kB / 1.022 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.102e-05/0.8979, allocations: 17.03 kB / 1.022 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.8979, allocations: 4 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8979, allocations: 0 / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.8979, allocations: 3.984 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000858/0.8988, allocations: 0.677 MB / 1.023 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.8988, allocations: 0 / 1.023 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.658e-05/0.8989, allocations: 11.92 kB / 1.023 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.8989, allocations: 4 kB / 1.023 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.8989, allocations: 7.984 kB / 1.023 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.8989, allocations: 0 / 1.023 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.8989, allocations: 3.938 kB / 1.023 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004809/0.8994, allocations: 428.7 kB / 1.023 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.369e-05/0.8995, allocations: 92.88 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.757e-05/0.8995, allocations: 15.36 kB / 1.023 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.8997, allocations: 27.41 kB / 1.023 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.8998, allocations: 27.27 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.8998, allocations: 15.97 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.193e-05/0.8999, allocations: 109.5 kB / 1.023 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8999, allocations: 0 / 1.023 GB, free: 13.49 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003176/0.9002, allocations: 43.98 kB / 1.023 GB, free: 13.45 MB / 0.6511 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001665/0.9004, allocations: 132.6 kB / 1.023 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003358/0.9007, allocations: 224.2 kB / 1.024 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.9008, allocations: 320 / 1.024 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.9009, allocations: 114.4 kB / 1.024 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.9012, allocations: 29.38 kB / 1.024 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004766/0.9017, allocations: 218.2 kB / 1.024 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.902, allocations: 0.7286 MB / 1.025 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.419e-05/0.9021, allocations: 18.08 kB / 1.025 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.757e-05/0.9021, allocations: 19.44 kB / 1.025 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.9021, allocations: 3.938 kB / 1.025 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of Templates: time 0.005262/0.9074, allocations: 2.421 MB / 1.027 GB, free: 9.664 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches