Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.707/1.707, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.0009136/0.0009136, allocations: 197.2 kB / 490.8 MB, free: 1.945 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.063/1.063, allocations: 221.3 MB / 0.7863 GB, free: 13.69 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.0008035/0.0008036, allocations: 96.02 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.867e-06/8.887e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1713, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4522/0.6235, allocations: 149.8 MB / 1.358 GB, free: 17.24 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001606/0.6237, allocations: 72.19 kB / 1.358 GB, free: 17.24 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01949/0.6432, allocations: 8.334 MB / 1.366 GB, free: 16.65 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.6433, allocations: 8.031 kB / 1.366 GB, free: 16.64 MB / 0.823 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.0009176/0.6442, allocations: 0.6141 MB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.6442, allocations: 10.98 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.111e-05/0.6443, allocations: 31.97 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.721e-05/0.6444, allocations: 196.6 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.6445, allocations: 255.2 kB / 1.367 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.6446, allocations: 20.22 kB / 1.367 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002621/0.6448, allocations: 133.9 kB / 1.367 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.6451, allocations: 223 kB / 1.368 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.6452, allocations: 1.125 kB / 1.368 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.6452, allocations: 2.406 kB / 1.368 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.6452, allocations: 5.562 kB / 1.368 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008494/0.646, allocations: 0.7285 MB / 1.368 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.6463, allocations: 179.1 kB / 1.368 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.6465, allocations: 103.2 kB / 1.369 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.6465, allocations: 9.656 kB / 1.369 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.6468, allocations: 250.3 kB / 1.369 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.573e-06/0.6468, allocations: 1.031 kB / 1.369 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0004384/0.6473, allocations: 282.3 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.6473, allocations: 115.5 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.6474, allocations: 149.4 kB / 1.369 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.6474, allocations: 27.95 kB / 1.369 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.779e-05/0.6475, allocations: 111.7 kB / 1.369 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.663e-05/0.6476, allocations: 141.8 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.857e-05/0.6476, allocations: 1.031 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.6477, allocations: 347.2 kB / 1.37 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.6479, allocations: 115.4 kB / 1.37 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.6481, allocations: 220.1 kB / 1.37 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.6483, allocations: 134.3 kB / 1.37 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.6483, allocations: 1 kB / 1.37 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005203/0.6488, allocations: 400.1 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.6488, allocations: 7.5 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.6488, allocations: 3 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.6488, allocations: 10.19 kB / 1.371 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.6492, allocations: 103.5 kB / 1.371 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.6492, allocations: 10.5 kB / 1.371 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.6495, allocations: 60.33 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.6495, allocations: 19.47 kB / 1.371 GB, free: 29.98 MB / 0.8386 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 9.59e-05/0.6496, allocations: 135.5 kB / 1.371 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.6497, allocations: 25.19 kB / 1.371 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.6497, allocations: 31.33 kB / 1.371 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.6497, allocations: 8.656 kB / 1.371 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.6498, allocations: 1.219 kB / 1.371 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.6498, allocations: 7.781 kB / 1.371 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.65, allocations: 305.4 kB / 1.371 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.65, allocations: 1.125 kB / 1.371 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003924/0.6504, allocations: 81.73 kB / 1.371 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.6504, allocations: 2.531 kB / 1.371 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.6504, allocations: 15.7 kB / 1.372 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.6505, allocations: 2.219 kB / 1.372 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.6505, allocations: 1.031 kB / 1.372 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006111/0.6511, allocations: 0.5054 MB / 1.372 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.873e-05/0.6511, allocations: 102.8 kB / 1.372 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.855e-05/0.6512, allocations: 11.81 kB / 1.372 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.6514, allocations: 41.06 kB / 1.372 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.812e-05/0.6515, allocations: 33.95 kB / 1.372 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.6515, allocations: 21.45 kB / 1.372 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.362e-05/0.6516, allocations: 117.5 kB / 1.372 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002707/0.6519, allocations: 61.09 kB / 1.372 GB, free: 29.3 MB / 0.8386 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.0001244/0.652, allocations: 117.7 kB / 1.372 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004221/0.6525, allocations: 326.3 kB / 1.373 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.6525, allocations: 0 / 1.373 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002231/0.6527, allocations: 158.7 kB / 1.373 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.6529, allocations: 27.25 kB / 1.373 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008185/0.6537, allocations: 488.9 kB / 1.373 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004112/0.6542, allocations: 0.8133 MB / 1.374 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/0.6542, allocations: 0 / 1.374 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of Templates: time 0.006398/0.6606, allocations: 3.798 MB / 1.378 GB, free: 28.05 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches