Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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,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") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,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") [: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.804/1.804, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.001071/0.001071, allocations: 184.6 kB / 487 MB, free: 5.395 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.121/1.121, allocations: 221.3 MB / 0.7819 GB, free: 1.359 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.0008386/0.0008386, allocations: 105.5 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/7.905e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1816, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5027/0.6843, allocations: 149 MB / 1.351 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/0.6845, allocations: 68.19 kB / 1.351 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02198/0.7065, allocations: 8.339 MB / 1.359 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.218e-05/0.7066, allocations: 4.844 kB / 1.359 GB, free: 15.1 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.0009946/0.7076, allocations: 0.6146 MB / 1.36 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.7076, allocations: 9.781 kB / 1.36 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.497e-05/0.7077, allocations: 33.33 kB / 1.36 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.7078, allocations: 192.1 kB / 1.36 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.708, allocations: 250.7 kB / 1.36 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.219e-05/0.708, allocations: 25.48 kB / 1.36 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002933/0.7083, allocations: 132.9 kB / 1.36 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.7087, allocations: 219 kB / 1.36 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.7087, allocations: 1.984 kB / 1.36 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.7087, allocations: 1.734 kB / 1.36 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.7088, allocations: 9.5 kB / 1.36 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000964/0.7097, allocations: 0.7302 MB / 1.361 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.7101, allocations: 173.1 kB / 1.361 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.7103, allocations: 104.8 kB / 1.361 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-05/0.7103, allocations: 7.531 kB / 1.361 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003336/0.7107, allocations: 254.6 kB / 1.362 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 1.643e-06/0.7107, allocations: 4 kB / 1.362 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.0004515/0.7111, allocations: 289.5 kB / 1.362 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.7112, allocations: 119.4 kB / 1.362 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.546e-05/0.7113, allocations: 147.3 kB / 1.362 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.7113, allocations: 36.64 kB / 1.362 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.985e-05/0.7113, allocations: 109.2 kB / 1.362 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.126e-05/0.7114, allocations: 137.1 kB / 1.362 GB, free: 12.72 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.055e-05/0.7115, allocations: 0 / 1.362 GB, free: 12.72 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.705e-05/0.7115, allocations: 344.5 kB / 1.363 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.7117, allocations: 115.3 kB / 1.363 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.7119, allocations: 222.4 kB / 1.363 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.7121, allocations: 132.8 kB / 1.363 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.7121, allocations: 0 / 1.363 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005077/0.7126, allocations: 400.3 kB / 1.364 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.7126, allocations: 8.516 kB / 1.364 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.7127, allocations: 4 kB / 1.364 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.7127, allocations: 8.656 kB / 1.364 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003791/0.7131, allocations: 96.06 kB / 1.364 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.7131, allocations: 13.3 kB / 1.364 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.7133, allocations: 65.06 kB / 1.364 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.7134, allocations: 22.56 kB / 1.364 GB, free: 11.62 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.362e-05/0.7135, allocations: 128 kB / 1.364 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.946e-05/0.7135, allocations: 28.52 kB / 1.364 GB, free: 11.47 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.179e-05/0.7136, allocations: 25.62 kB / 1.364 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.7136, allocations: 8 kB / 1.364 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.7136, allocations: 3.906 kB / 1.364 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.7136, allocations: 2.625 kB / 1.364 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.7139, allocations: 305.4 kB / 1.364 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.7139, allocations: 4.516 kB / 1.364 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.7143, allocations: 78.69 kB / 1.364 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.7143, allocations: 4 kB / 1.364 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.7143, allocations: 9.688 kB / 1.364 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.7144, allocations: 4.797 kB / 1.364 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.7144, allocations: 7.844 kB / 1.364 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006019/0.715, allocations: 0.5018 MB / 1.365 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.715, allocations: 105.8 kB / 1.365 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.7151, allocations: 5.516 kB / 1.365 GB, free: 10.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.7153, allocations: 48.7 kB / 1.365 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.23e-05/0.7154, allocations: 36.48 kB / 1.365 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.7155, allocations: 17.58 kB / 1.365 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5.133e-05/0.7155, allocations: 116.6 kB / 1.365 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002724/0.7158, allocations: 65 kB / 1.365 GB, free: 10.41 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.0001413/0.7159, allocations: 117.4 kB / 1.365 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004098/0.7164, allocations: 330.5 kB / 1.366 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.7164, allocations: 0 / 1.366 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.7166, allocations: 156.3 kB / 1.366 GB, free: 9.965 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.7168, allocations: 24.02 kB / 1.366 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008799/0.7177, allocations: 483.9 kB / 1.366 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.7181, allocations: 0.811 MB / 1.367 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of SimCode: time 2.51e-07/0.7181, allocations: 0 / 1.367 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of Templates: time 0.006001/0.7241, allocations: 3.796 MB / 1.371 GB, free: 5.43 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches