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.319/2.319, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.00118/0.00118, allocations: 172 kB / 0.4902 GB, free: 2.25 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.623/1.623, allocations: 223.2 MB / 0.7992 GB, free: 14.73 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.0009438/0.0009438, allocations: 98.56 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003921, allocations: 7.594 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3016, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.4876, allocations: 150.7 MB / 1.376 GB, free: 2.84 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.4879, allocations: 71.95 kB / 1.376 GB, free: 2.77 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01755/0.5055, allocations: 5.563 MB / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.124e-06/0.5055, allocations: 4 kB / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.843e-05/0.5055, allocations: 8 kB / 1.382 GB, free: 13.19 MB / 0.8855 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.0009362/0.5065, allocations: 0.4955 MB / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.5065, allocations: 8.562 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/0.5067, allocations: 27.77 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.5071, allocations: 238.9 kB / 1.383 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.982e-05/0.5071, allocations: 20.16 kB / 1.383 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.712e-05/0.5072, allocations: 23.98 kB / 1.383 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003927/0.5076, allocations: 199.4 kB / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-06/0.5076, allocations: 0 / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.5077, allocations: 0 / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.5077, allocations: 4 kB / 1.383 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.5079, allocations: 92.64 kB / 1.383 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007839/0.5087, allocations: 493.1 kB / 1.383 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.509, allocations: 135.1 kB / 1.384 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.509, allocations: 4.188 kB / 1.384 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003935/0.5094, allocations: 230 kB / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/0.5095, allocations: 0 / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of matching and sorting (n=28): time 0.0009097/0.5104, allocations: 458.3 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5104, allocations: 55.41 kB / 1.384 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.5106, allocations: 134.9 kB / 1.384 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.5e-05/0.5106, allocations: 41.7 kB / 1.384 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.72e-05/0.5107, allocations: 100.6 kB / 1.385 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.903e-05/0.5108, allocations: 79.11 kB / 1.385 GB, free: 10.19 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/0.5108, allocations: 8 kB / 1.385 GB, free: 10.18 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.511, allocations: 330.8 kB / 1.385 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.5113, allocations: 140.4 kB / 1.385 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003256/0.5116, allocations: 212.8 kB / 1.385 GB, free: 9.473 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.512, allocations: 204.8 kB / 1.386 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.512, allocations: 4 kB / 1.386 GB, free: 9.258 MB / 0.8855 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008547/0.5128, allocations: 0.4948 MB / 1.386 GB, free: 8.746 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.745e-05/0.5129, allocations: 67.39 kB / 1.386 GB, free: 8.668 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.5129, allocations: 4 kB / 1.386 GB, free: 8.664 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.513, allocations: 3.953 kB / 1.386 GB, free: 8.66 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.5132, allocations: 63.91 kB / 1.386 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.5133, allocations: 4 kB / 1.386 GB, free: 8.594 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004209/0.5137, allocations: 99.75 kB / 1.386 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.5137, allocations: 23.98 kB / 1.386 GB, free: 8.473 MB / 0.8855 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.0001907/0.5139, allocations: 169.8 kB / 1.386 GB, free: 8.297 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.439e-05/0.514, allocations: 15.81 kB / 1.386 GB, free: 8.281 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.847e-05/0.514, allocations: 13.86 kB / 1.386 GB, free: 8.266 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.514, allocations: 7.953 kB / 1.386 GB, free: 8.258 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.5141, allocations: 0 / 1.386 GB, free: 8.258 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.5141, allocations: 4 kB / 1.386 GB, free: 8.254 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009197/0.515, allocations: 0.6858 MB / 1.387 GB, free: 7.512 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.515, allocations: 3.938 kB / 1.387 GB, free: 7.508 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.492e-05/0.5151, allocations: 8 kB / 1.387 GB, free: 7.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5151, allocations: 0 / 1.387 GB, free: 7.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.5151, allocations: 19.92 kB / 1.387 GB, free: 7.48 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.5151, allocations: 4 kB / 1.387 GB, free: 7.477 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5151, allocations: 4 kB / 1.387 GB, free: 7.473 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/0.5158, allocations: 459.2 kB / 1.388 GB, free: 7.008 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.703e-05/0.5159, allocations: 96.84 kB / 1.388 GB, free: 6.895 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.604e-05/0.516, allocations: 19.98 kB / 1.388 GB, free: 6.875 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.5161, allocations: 11.94 kB / 1.388 GB, free: 6.863 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.794e-05/0.5162, allocations: 23.98 kB / 1.388 GB, free: 6.84 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.5163, allocations: 15.97 kB / 1.388 GB, free: 6.824 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.616e-05/0.5163, allocations: 101.3 kB / 1.388 GB, free: 6.727 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5163, allocations: 0 / 1.388 GB, free: 6.727 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004126/0.5168, allocations: 75.98 kB / 1.388 GB, free: 6.652 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.0002577/0.517, allocations: 142.1 kB / 1.388 GB, free: 6.504 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007332/0.5178, allocations: 454.5 kB / 1.389 GB, free: 6.035 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5178, allocations: 0 / 1.389 GB, free: 6.035 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.518, allocations: 132.3 kB / 1.389 GB, free: 5.906 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.5183, allocations: 29.28 kB / 1.389 GB, free: 5.879 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006471/0.5189, allocations: 343.7 kB / 1.389 GB, free: 5.516 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.5193, allocations: 0.721 MB / 1.39 GB, free: 4.762 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.073e-05/0.5194, allocations: 18.14 kB / 1.39 GB, free: 4.746 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.5194, allocations: 23.44 kB / 1.39 GB, free: 4.723 MB / 0.8855 GB Notification: Performance of SimCode: time 3.71e-07/0.5195, allocations: 4 kB / 1.39 GB, free: 4.719 MB / 0.8855 GB Notification: Performance of Templates: time 0.007124/0.5266, allocations: 3.316 MB / 1.393 GB, free: 1.426 MB / 0.8855 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