Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.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.Shade.Validation.Shade_H,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaH.H|shaH.HHigh|shaH.HLow|shaH.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H") translateModel(Buildings.Controls.OBC.Shade.Validation.Shade_H,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaH.H|shaH.HHigh|shaH.HLow|shaH.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H") [: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.256/1.256, allocations: 249.4 MB / 256.7 MB, free: 15.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001322/0.001322, allocations: 186.8 kB / 316 MB, free: 7.238 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.782/1.782, allocations: 205.1 MB / 0.5667 GB, free: 23.89 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.0008798/0.00088, allocations: 89.06 kB / 0.671 GB, free: 1.059 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 7.223e-06/7.253e-06, allocations: 0 / 0.7807 GB, free: 0.5781 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5877/0.5877, allocations: 106.3 MB / 0.8846 GB, free: 76.33 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1691/0.7569, allocations: 130.9 MB / 1.012 GB, free: 9.211 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.7572, allocations: 67.95 kB / 1.012 GB, free: 9.145 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.003186/0.7604, allocations: 0.8031 MB / 1.013 GB, free: 8.344 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 7.715e-06/0.7604, allocations: 0 / 1.013 GB, free: 8.344 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003733/0.7608, allocations: 356.9 kB / 1.014 GB, free: 7.953 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.7609, allocations: 8.031 kB / 1.014 GB, free: 7.945 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.7609, allocations: 7.906 kB / 1.014 GB, free: 7.938 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.7611, allocations: 174.9 kB / 1.014 GB, free: 7.727 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.7611, allocations: 4 kB / 1.014 GB, free: 7.723 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.7611, allocations: 3.938 kB / 1.014 GB, free: 7.719 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.95e-05/0.7612, allocations: 20 kB / 1.014 GB, free: 7.699 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.848e-05/0.7613, allocations: 49.69 kB / 1.014 GB, free: 7.645 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.7613, allocations: 3.984 kB / 1.014 GB, free: 7.641 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.7613, allocations: 3.938 kB / 1.014 GB, free: 7.637 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.7613, allocations: 4 kB / 1.014 GB, free: 7.633 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004131/0.7618, allocations: 285.2 kB / 1.014 GB, free: 7.316 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.7619, allocations: 38.58 kB / 1.014 GB, free: 7.27 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.102e-05/0.762, allocations: 12.92 kB / 1.014 GB, free: 7.254 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.762, allocations: 4.078 kB / 1.014 GB, free: 7.25 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.762, allocations: 38.5 kB / 1.014 GB, free: 7.203 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 1.203e-06/0.762, allocations: 0 / 1.014 GB, free: 7.203 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0001506/0.7622, allocations: 45.61 kB / 1.014 GB, free: 7.152 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.7622, allocations: 55.39 kB / 1.014 GB, free: 7.086 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.7623, allocations: 105.3 kB / 1.014 GB, free: 6.977 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.7624, allocations: 29.7 kB / 1.014 GB, free: 6.941 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.7624, allocations: 92.12 kB / 1.015 GB, free: 6.848 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.7624, allocations: 7.844 kB / 1.015 GB, free: 6.84 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-06/0.7624, allocations: 0 / 1.015 GB, free: 6.84 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.7626, allocations: 326.7 kB / 1.015 GB, free: 6.512 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.393e-05/0.7626, allocations: 8 kB / 1.015 GB, free: 6.504 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.792e-05/0.7626, allocations: 21.72 kB / 1.015 GB, free: 6.477 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.303e-05/0.7627, allocations: 12.03 kB / 1.015 GB, free: 6.465 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.7627, allocations: 0 / 1.015 GB, free: 6.465 MB / 0.6667 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001027/0.7628, allocations: 61.53 kB / 1.015 GB, free: 6.398 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.7628, allocations: 4 kB / 1.015 GB, free: 6.395 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.7628, allocations: 0 / 1.015 GB, free: 6.395 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.7628, allocations: 4 kB / 1.015 GB, free: 6.391 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.261e-05/0.7629, allocations: 7.984 kB / 1.015 GB, free: 6.383 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.7629, allocations: 0 / 1.015 GB, free: 6.383 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.91e-05/0.763, allocations: 15.94 kB / 1.015 GB, free: 6.367 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.763, allocations: 4 kB / 1.015 GB, free: 6.363 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.shaH.hys.y,shaH.hys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.575e-05/0.7631, allocations: 111 kB / 1.015 GB, free: 6.25 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.7631, allocations: 7.906 kB / 1.015 GB, free: 6.242 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.918e-05/0.7631, allocations: 8 kB / 1.015 GB, free: 6.23 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.7632, allocations: 0 / 1.015 GB, free: 6.23 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.7632, allocations: 0 / 1.015 GB, free: 6.23 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.7632, allocations: 4 kB / 1.015 GB, free: 6.227 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.7633, allocations: 158.1 kB / 1.015 GB, free: 6.035 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.7633, allocations: 0 / 1.015 GB, free: 6.035 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.837e-05/0.7634, allocations: 4 kB / 1.015 GB, free: 6.031 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.7634, allocations: 0 / 1.015 GB, free: 6.031 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.7634, allocations: 7.938 kB / 1.015 GB, free: 6.023 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.7634, allocations: 0 / 1.015 GB, free: 6.023 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.7634, allocations: 0 / 1.015 GB, free: 6.023 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001296/0.7636, allocations: 151.6 kB / 1.015 GB, free: 5.859 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.7636, allocations: 85.06 kB / 1.016 GB, free: 5.758 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.7636, allocations: 3.984 kB / 1.016 GB, free: 5.754 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.02e-05/0.7637, allocations: 6.469 kB / 1.016 GB, free: 5.75 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.7638, allocations: 7.984 kB / 1.016 GB, free: 5.742 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.7638, allocations: 7.984 kB / 1.016 GB, free: 5.734 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.7e-05/0.7639, allocations: 95.33 kB / 1.016 GB, free: 5.641 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002084/0.7641, allocations: 12 kB / 1.016 GB, free: 5.629 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (shaH.hys.y) * Number of discrete states: 1 (shaH.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001137/0.7642, allocations: 95.16 kB / 1.016 GB, free: 5.527 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 9.735e-05/0.7643, allocations: 31.92 kB / 1.016 GB, free: 5.496 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.7643, allocations: 0 / 1.016 GB, free: 5.496 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 2.697e-05/0.7643, allocations: 12 kB / 1.016 GB, free: 5.484 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001671/0.7645, allocations: 11.94 kB / 1.016 GB, free: 5.473 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.7648, allocations: 75.83 kB / 1.016 GB, free: 5.371 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002889/0.7651, allocations: 0.7032 MB / 1.017 GB, free: 4.645 MB / 0.6667 GB Notification: Performance of SimCode: time 2.214e-06/0.7651, allocations: 0 / 1.017 GB, free: 4.645 MB / 0.6667 GB Notification: Performance of Templates: time 0.002531/0.7676, allocations: 0.6238 MB / 1.017 GB, free: 4.027 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches