Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.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.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movingMean_1.y|movingMean_2.y|movingMean_3.y|movingMean_4.y|sinInp50sDel.y|movingMean_6.y|movingMean_7.y|sinInp100sDel.y|movingMean_8.y|movingMean_9.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movingMean_1.y|movingMean_2.y|movingMean_3.y|movingMean_4.y|sinInp50sDel.y|movingMean_6.y|movingMean_7.y|sinInp100sDel.y|movingMean_8.y|movingMean_9.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.38/1.38, allocations: 249.4 MB / 256.7 MB, free: 7.02 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.001066/0.001066, allocations: 188.5 kB / 316 MB, free: 3.492 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.476/1.476, allocations: 205.2 MB / 0.5667 GB, free: 15.7 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.0009797/0.0009795, allocations: 92.84 kB / 0.671 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.656e-06/8.686e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2319, allocations: 106.3 MB / 0.8846 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.637/0.869, allocations: 132.7 MB / 1.014 GB, free: 5.785 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001562/0.8692, allocations: 74.39 kB / 1.014 GB, free: 5.746 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.0233/0.8925, allocations: 8.385 MB / 1.022 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.008e-05/0.8926, allocations: 8 kB / 1.022 GB, free: 14.97 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001112/0.8937, allocations: 0.6111 MB / 1.023 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.8937, allocations: 8.031 kB / 1.023 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.247e-05/0.8938, allocations: 38.88 kB / 1.023 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.894, allocations: 195.6 kB / 1.023 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000229/0.8943, allocations: 255.7 kB / 1.024 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.8943, allocations: 23.42 kB / 1.024 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000294/0.8946, allocations: 133.5 kB / 1.024 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.895, allocations: 222.6 kB / 1.024 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.895, allocations: 7.984 kB / 1.024 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.895, allocations: 0 / 1.024 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.8951, allocations: 4 kB / 1.024 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.8961, allocations: 0.7325 MB / 1.025 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.8965, allocations: 174.5 kB / 1.025 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.8967, allocations: 112 kB / 1.025 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.8968, allocations: 12.17 kB / 1.025 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.8971, allocations: 239.2 kB / 1.025 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=48): time 1.462e-06/0.8971, allocations: 8 kB / 1.025 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48): time 0.0005094/0.8977, allocations: 278 kB / 1.025 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.8977, allocations: 114.2 kB / 1.026 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.8979, allocations: 148.2 kB / 1.026 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.8979, allocations: 33.69 kB / 1.026 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.659e-05/0.898, allocations: 104 kB / 1.026 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.8981, allocations: 146 kB / 1.026 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.098e-05/0.8981, allocations: 3.938 kB / 1.026 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.8983, allocations: 346.2 kB / 1.026 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.8985, allocations: 114.8 kB / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.8987, allocations: 209.7 kB / 1.027 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.899, allocations: 141.2 kB / 1.027 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.899, allocations: 0 / 1.027 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006028/0.8996, allocations: 390.8 kB / 1.027 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.8996, allocations: 8 kB / 1.027 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.8996, allocations: 4.656 kB / 1.027 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.8996, allocations: 8 kB / 1.027 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.9001, allocations: 99.08 kB / 1.027 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.9001, allocations: 11.98 kB / 1.027 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003241/0.9004, allocations: 59.66 kB / 1.027 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.9005, allocations: 23.5 kB / 1.027 GB, free: 10.38 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$PRE.movingMean_1.mode,movingMean_1.mode,$whenCondition6,$PRE.movingMean_2.mode,movingMean_2.mode,$whenCondition7,$PRE.movingMean_3.mode,movingMean_3.mode,$whenCondition8,$PRE.movingMean_4.mode,movingMean_4.mode,$whenCondition9,$PRE.movingMean_5.mode,movingMean_5.mode,$whenCondition3,$PRE.movingMean_6.mode,movingMean_6.mode,$whenCondition4,$PRE.movingMean_7.mode,movingMean_7.mode,$whenCondition1,$PRE.movingMean_8.mode,movingMean_8.mode,$whenCondition2,$PRE.movingMean_9.mode,movingMean_9.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.000136/0.9006, allocations: 118.7 kB / 1.027 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/0.9007, allocations: 31.72 kB / 1.027 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.939e-05/0.9007, allocations: 39.34 kB / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.9007, allocations: 12 kB / 1.027 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.9008, allocations: 0 / 1.027 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.9008, allocations: 3.984 kB / 1.027 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003148/0.9011, allocations: 316.5 kB / 1.028 GB, free: 9.891 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.9011, allocations: 0 / 1.028 GB, free: 9.891 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004464/0.9016, allocations: 79.02 kB / 1.028 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.9016, allocations: 4 kB / 1.028 GB, free: 9.812 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.9016, allocations: 11.36 kB / 1.028 GB, free: 9.805 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.9016, allocations: 8 kB / 1.028 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.9016, allocations: 0 / 1.028 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007244/0.9024, allocations: 0.4999 MB / 1.028 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.9024, allocations: 100.8 kB / 1.028 GB, free: 9.277 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.9025, allocations: 8 kB / 1.028 GB, free: 9.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.9028, allocations: 43.95 kB / 1.029 GB, free: 9.227 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.503e-05/0.9029, allocations: 40.48 kB / 1.029 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.291e-05/0.9029, allocations: 19.48 kB / 1.029 GB, free: 9.18 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.848e-05/0.903, allocations: 118 kB / 1.029 GB, free: 9.078 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003161/0.9033, allocations: 64 kB / 1.029 GB, free: 9.016 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0002003/0.9035, allocations: 122.9 kB / 1.029 GB, free: 8.891 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005045/0.904, allocations: 317.1 kB / 1.029 GB, free: 8.668 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.904, allocations: 0 / 1.029 GB, free: 8.668 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.9043, allocations: 157.8 kB / 1.029 GB, free: 8.559 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.9046, allocations: 27.28 kB / 1.029 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.9057, allocations: 486.8 kB / 1.03 GB, free: 8.082 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004682/0.9062, allocations: 0.8147 MB / 1.031 GB, free: 7.246 MB / 0.6511 GB Notification: Performance of SimCode: time 2.7e-07/0.9062, allocations: 192 / 1.031 GB, free: 7.246 MB / 0.6511 GB Notification: Performance of Templates: time 0.007074/0.9132, allocations: 3.816 MB / 1.034 GB, free: 3.461 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches