Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.4/2.4, allocations: 390.5 MB / 398 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 168.9 kB / 491.2 MB, free: 1.559 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.738/1.738, allocations: 221.5 MB / 0.7868 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 112.2 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.132e-05/2.135e-05, allocations: 5.5 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3245, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.05/1.375, allocations: 150 MB / 1.359 GB, free: 17.58 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/1.375, allocations: 79.97 kB / 1.359 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01473/1.39, allocations: 5.512 MB / 1.364 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.473e-06/1.39, allocations: 0 / 1.364 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.113e-05/1.39, allocations: 3.844 kB / 1.364 GB, free: 32.97 MB / 0.8386 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.0006027/1.39, allocations: 0.4912 MB / 1.365 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/1.39, allocations: 7.844 kB / 1.365 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.338e-05/1.39, allocations: 24.97 kB / 1.365 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002743/1.391, allocations: 236.8 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.289e-05/1.391, allocations: 6.562 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/1.391, allocations: 24.48 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001543/1.391, allocations: 74.33 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/1.391, allocations: 172.5 kB / 1.365 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/1.391, allocations: 0 / 1.365 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/1.391, allocations: 10.8 kB / 1.365 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/1.391, allocations: 0 / 1.365 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005705/1.392, allocations: 450.4 kB / 1.366 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/1.392, allocations: 125 kB / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/1.392, allocations: 83.28 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/1.392, allocations: 8.062 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002587/1.392, allocations: 198.5 kB / 1.366 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/1.392, allocations: 0 / 1.366 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0004902/1.393, allocations: 354.1 kB / 1.366 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/1.393, allocations: 57.73 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.74e-05/1.393, allocations: 138.3 kB / 1.367 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/1.393, allocations: 36.89 kB / 1.367 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.079e-05/1.393, allocations: 101.1 kB / 1.367 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.018e-05/1.393, allocations: 64.08 kB / 1.367 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/1.393, allocations: 3.812 kB / 1.367 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001015/1.393, allocations: 330.4 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/1.394, allocations: 121.2 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/1.394, allocations: 181.9 kB / 1.367 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/1.394, allocations: 154.4 kB / 1.368 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.394, allocations: 0 / 1.368 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006564/1.395, allocations: 409.9 kB / 1.368 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.701e-05/1.395, allocations: 70.44 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/1.395, allocations: 0 / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/1.395, allocations: 7.25 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/1.395, allocations: 67.88 kB / 1.368 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/1.395, allocations: 3.906 kB / 1.368 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/1.396, allocations: 87.81 kB / 1.368 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.969e-05/1.396, allocations: 21.97 kB / 1.368 GB, free: 31.01 MB / 0.8386 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,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * 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/1.396, allocations: 155.1 kB / 1.368 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/1.396, allocations: 15.44 kB / 1.368 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/1.396, allocations: 17.11 kB / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/1.396, allocations: 0 / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/1.396, allocations: 7.828 kB / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/1.396, allocations: 0 / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005028/1.396, allocations: 0.6069 MB / 1.369 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/1.396, allocations: 0 / 1.369 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.466e-05/1.396, allocations: 3.969 kB / 1.369 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/1.396, allocations: 3.938 kB / 1.369 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/1.396, allocations: 12.61 kB / 1.369 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/1.396, allocations: 2.812 kB / 1.369 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.396, allocations: 7.891 kB / 1.369 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004072/1.397, allocations: 432.4 kB / 1.369 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.419e-05/1.397, allocations: 103.5 kB / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/1.397, allocations: 14.5 kB / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/1.397, allocations: 10.27 kB / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/1.397, allocations: 25.27 kB / 1.37 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/1.397, allocations: 17.67 kB / 1.37 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.967e-05/1.397, allocations: 98.59 kB / 1.37 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.397, allocations: 0 / 1.37 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003039/1.398, allocations: 61.12 kB / 1.37 GB, free: 30.25 MB / 0.8386 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[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.0001733/1.398, allocations: 147 kB / 1.37 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004239/1.398, allocations: 414 kB / 1.37 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.398, allocations: 0 / 1.37 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001738/1.398, allocations: 103.8 kB / 1.37 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/1.399, allocations: 26.34 kB / 1.37 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000383/1.399, allocations: 207.4 kB / 1.371 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/1.399, allocations: 0.7274 MB / 1.371 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.356e-05/1.399, allocations: 28.62 kB / 1.371 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/1.399, allocations: 21.22 kB / 1.371 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.399, allocations: 0 / 1.371 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of Templates: time 0.005075/1.404, allocations: 3.171 MB / 1.374 GB, free: 28.95 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches