Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.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.Continuous.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") [: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 9.1.1-maint.9.1.x/package.mo): time 1.767/1.767, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001044/0.001044, allocations: 173.4 kB / 487 MB, free: 5.359 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.108/1.108, allocations: 221.3 MB / 0.7819 GB, free: 1.348 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000927/0.000927, allocations: 94 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.905e-06/7.925e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1975, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5289/0.7265, allocations: 149 MB / 1.351 GB, free: 16.18 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001387/0.7266, allocations: 71.05 kB / 1.351 GB, free: 16.18 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02128/0.7479, allocations: 8.335 MB / 1.359 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.748, allocations: 3.969 kB / 1.359 GB, free: 15.59 MB / 0.8073 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.001003/0.749, allocations: 0.6192 MB / 1.36 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.749, allocations: 10.44 kB / 1.36 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.7491, allocations: 28.58 kB / 1.36 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.978e-05/0.7492, allocations: 195.8 kB / 1.36 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.7493, allocations: 251.7 kB / 1.36 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.159e-05/0.7494, allocations: 26.31 kB / 1.36 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002927/0.7497, allocations: 129.6 kB / 1.36 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.7501, allocations: 218.1 kB / 1.36 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.7501, allocations: 6.609 kB / 1.36 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.7501, allocations: 1.766 kB / 1.36 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.7501, allocations: 8.969 kB / 1.36 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009852/0.7511, allocations: 0.7233 MB / 1.361 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.7515, allocations: 173.6 kB / 1.361 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.7516, allocations: 104.2 kB / 1.361 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.7517, allocations: 17.39 kB / 1.361 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.752, allocations: 249.2 kB / 1.362 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 1.984e-06/0.752, allocations: 0 / 1.362 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.0004577/0.7524, allocations: 277.4 kB / 1.362 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.7525, allocations: 124.3 kB / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.754e-05/0.7526, allocations: 149 kB / 1.362 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.7526, allocations: 34.5 kB / 1.362 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.7526, allocations: 108.5 kB / 1.362 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.357e-05/0.7527, allocations: 140.8 kB / 1.362 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/0.7528, allocations: 0 / 1.362 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.211e-05/0.7528, allocations: 351.7 kB / 1.363 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.753, allocations: 113.9 kB / 1.363 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.7532, allocations: 215.7 kB / 1.363 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.7534, allocations: 137.9 kB / 1.363 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.7534, allocations: 0.5625 kB / 1.363 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005042/0.7539, allocations: 400.4 kB / 1.364 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.937e-06/0.7539, allocations: 8 kB / 1.364 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.754, allocations: 4 kB / 1.364 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.754, allocations: 8 kB / 1.364 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.7544, allocations: 97.12 kB / 1.364 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.7544, allocations: 4.703 kB / 1.364 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.7546, allocations: 72.11 kB / 1.364 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.034e-05/0.7547, allocations: 23.38 kB / 1.364 GB, free: 11.99 MB / 0.8073 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.movAve1.mode,movAve1.mode,$whenCondition6,$PRE.movAve2.mode,movAve2.mode,$whenCondition7,$PRE.movAve3.mode,movAve3.mode,$whenCondition8,$PRE.movAve4.mode,movAve4.mode,$whenCondition9,$PRE.movAve5.mode,movAve5.mode,$whenCondition3,$PRE.movAve6.mode,movAve6.mode,$whenCondition4,$PRE.movAve7.mode,movAve7.mode,$whenCondition1,$PRE.movAve8.mode,movAve8.mode,$whenCondition2,$PRE.movAve9.mode,movAve9.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 8.278e-05/0.7548, allocations: 127.4 kB / 1.364 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.7548, allocations: 28.98 kB / 1.364 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.161e-05/0.7549, allocations: 25.98 kB / 1.364 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.7549, allocations: 8 kB / 1.364 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7549, allocations: 7.906 kB / 1.364 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.7549, allocations: 2.438 kB / 1.364 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/0.7552, allocations: 310.8 kB / 1.364 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.7552, allocations: 4 kB / 1.364 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003986/0.7556, allocations: 75.56 kB / 1.364 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.7556, allocations: 4 kB / 1.364 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.7556, allocations: 10.8 kB / 1.364 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.7556, allocations: 0 / 1.364 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.7556, allocations: 8.562 kB / 1.364 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006074/0.7563, allocations: 0.5044 MB / 1.365 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.029e-05/0.7563, allocations: 109.3 kB / 1.365 GB, free: 11 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.7563, allocations: 1.5 kB / 1.365 GB, free: 11 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.7566, allocations: 41.56 kB / 1.365 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/0.7567, allocations: 39.88 kB / 1.365 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.7567, allocations: 17.56 kB / 1.365 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.935e-05/0.7568, allocations: 120.2 kB / 1.365 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002678/0.7571, allocations: 61.27 kB / 1.365 GB, free: 10.79 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.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.0001245/0.7572, allocations: 122.3 kB / 1.365 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003977/0.7576, allocations: 318.9 kB / 1.366 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.7576, allocations: 4 kB / 1.366 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.7578, allocations: 160.6 kB / 1.366 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.7581, allocations: 33.75 kB / 1.366 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008228/0.7589, allocations: 481.6 kB / 1.366 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.7592, allocations: 0.8082 MB / 1.367 GB, free: 9.145 MB / 0.8073 GB Notification: Performance of SimCode: time 7.12e-07/0.7592, allocations: 0 / 1.367 GB, free: 9.145 MB / 0.8073 GB Notification: Performance of Templates: time 0.005709/0.7649, allocations: 3.807 MB / 1.371 GB, free: 5.781 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches