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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.529/2.529, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001095/0.001095, allocations: 183.2 kB / 498.1 MB, free: 5.734 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.577/1.577, allocations: 223.2 MB / 0.7948 GB, free: 17.8 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.0009195/0.0009195, allocations: 104.1 kB / 0.9346 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004729/0.0004729, allocations: 6.75 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.322, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2004/0.5224, allocations: 149.9 MB / 1.369 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/0.5229, allocations: 71.95 kB / 1.369 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01683/0.5397, allocations: 5.564 MB / 1.375 GB, free: 6.473 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5398, allocations: 3.938 kB / 1.375 GB, free: 6.469 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.257e-05/0.5398, allocations: 4 kB / 1.375 GB, free: 6.465 MB / 0.8698 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.000885/0.5407, allocations: 0.5071 MB / 1.375 GB, free: 5.887 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/0.5408, allocations: 8.031 kB / 1.375 GB, free: 5.879 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.149e-05/0.5409, allocations: 27.7 kB / 1.375 GB, free: 5.852 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003876/0.5413, allocations: 235.1 kB / 1.376 GB, free: 5.582 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.5413, allocations: 16.22 kB / 1.376 GB, free: 5.566 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.436e-05/0.5414, allocations: 23.94 kB / 1.376 GB, free: 5.543 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.5418, allocations: 194.2 kB / 1.376 GB, free: 5.352 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.5418, allocations: 0 / 1.376 GB, free: 5.352 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/0.5418, allocations: 15.97 kB / 1.376 GB, free: 5.336 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.5418, allocations: 4 kB / 1.376 GB, free: 5.332 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002092/0.5421, allocations: 92.64 kB / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008166/0.5429, allocations: 485.2 kB / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.5432, allocations: 139.1 kB / 1.376 GB, free: 4.57 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.5432, allocations: 12.11 kB / 1.377 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.5436, allocations: 219.2 kB / 1.377 GB, free: 4.332 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=28): time 1.993e-06/0.5436, allocations: 0 / 1.377 GB, free: 4.332 MB / 0.8698 GB Notification: Performance of matching and sorting (n=28): time 0.0008938/0.5445, allocations: 465.5 kB / 1.377 GB, free: 3.871 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.335e-05/0.5446, allocations: 63.39 kB / 1.377 GB, free: 3.797 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.5447, allocations: 122.9 kB / 1.377 GB, free: 3.672 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/0.5448, allocations: 41.7 kB / 1.377 GB, free: 3.625 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.848e-05/0.5448, allocations: 112.5 kB / 1.377 GB, free: 3.512 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.208e-05/0.5449, allocations: 59.31 kB / 1.378 GB, free: 3.453 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.5449, allocations: 12 kB / 1.378 GB, free: 3.441 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.5451, allocations: 330.8 kB / 1.378 GB, free: 3.109 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.5454, allocations: 144.3 kB / 1.378 GB, free: 2.969 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003209/0.5457, allocations: 208.7 kB / 1.378 GB, free: 2.738 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.546, allocations: 208.8 kB / 1.378 GB, free: 2.523 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5461, allocations: 0 / 1.378 GB, free: 2.523 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008404/0.5469, allocations: 498.8 kB / 1.379 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.084e-05/0.547, allocations: 67.39 kB / 1.379 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.547, allocations: 0 / 1.379 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.547, allocations: 15.83 kB / 1.379 GB, free: 1.926 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.5473, allocations: 67.84 kB / 1.379 GB, free: 1.859 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.5473, allocations: 7.984 kB / 1.379 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003912/0.5477, allocations: 99.81 kB / 1.379 GB, free: 1.754 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.5478, allocations: 19.98 kB / 1.379 GB, free: 1.734 MB / 0.8698 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 () * Number of clocked 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.000203/0.548, allocations: 173.5 kB / 1.379 GB, free: 1.555 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.548, allocations: 19.81 kB / 1.379 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.001e-05/0.5481, allocations: 13.88 kB / 1.379 GB, free: 1.52 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.5481, allocations: 7.953 kB / 1.379 GB, free: 1.512 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5481, allocations: 0 / 1.379 GB, free: 1.512 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.5481, allocations: 8.062 kB / 1.379 GB, free: 1.504 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008622/0.549, allocations: 0.6779 MB / 1.38 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.549, allocations: 3.938 kB / 1.38 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-05/0.549, allocations: 11.98 kB / 1.38 GB, free: 0.7539 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.5491, allocations: 0 / 1.38 GB, free: 0.7539 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.067e-05/0.5491, allocations: 15.94 kB / 1.38 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5491, allocations: 4 kB / 1.38 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5491, allocations: 0 / 1.38 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000634/0.5497, allocations: 472.3 kB / 1.38 GB, free: 264 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.5498, allocations: 85.02 kB / 1.381 GB, free: 160 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.525e-05/0.5499, allocations: 15.98 kB / 1.381 GB, free: 144 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.55, allocations: 15.94 kB / 1.381 GB, free: 128 kB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.194e-05/0.5501, allocations: 19.97 kB / 1.381 GB, free: 108 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.5501, allocations: 15.98 kB / 1.381 GB, free: 92 kB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.942e-05/0.5502, allocations: 112.6 kB / 1.381 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5502, allocations: 0 / 1.381 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003466/0.5506, allocations: 71.94 kB / 1.381 GB, free: 15.91 MB / 0.8855 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]) * Number of clocked states: 0 () * 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.0002495/0.5508, allocations: 137.4 kB / 1.381 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007174/0.5515, allocations: 462.5 kB / 1.381 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5516, allocations: 0 / 1.381 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002106/0.5518, allocations: 124.1 kB / 1.382 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.5521, allocations: 32.53 kB / 1.382 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006218/0.5527, allocations: 339.3 kB / 1.382 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.553, allocations: 0.7249 MB / 1.383 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.706e-05/0.5531, allocations: 17.95 kB / 1.383 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.5531, allocations: 23.42 kB / 1.383 GB, free: 14 MB / 0.8855 GB Notification: Performance of SimCode: time 2.6e-07/0.5531, allocations: 3.938 kB / 1.383 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of Templates: time 0.00679/0.5599, allocations: 3.308 MB / 1.386 GB, free: 10.71 MB / 0.8855 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches