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.LimPID.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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_m|limPIDOri.y|limPID.u_s|noLimPID.y|limPID.y|limPD.y|limP.y|limPI.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_m|limPIDOri.y|limPID.u_s|noLimPID.y|limPID.y|limPD.y|limP.y|limPI.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID") [: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.347/1.347, allocations: 249.4 MB / 256.7 MB, free: 15.77 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.001246/0.001246, allocations: 183.4 kB / 316 MB, free: 7.137 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.789/1.789, allocations: 205.1 MB / 0.5667 GB, free: 23.63 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.0009448/0.0009449, allocations: 92.53 kB / 0.671 GB, free: 0.7812 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 1.552e-05/1.554e-05, allocations: 4 kB / 0.7808 GB, free: 276 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.4085, allocations: 106.3 MB / 0.8846 GB, free: 76.2 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.5558, allocations: 133.7 MB / 1.015 GB, free: 6.27 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.556, allocations: 75.95 kB / 1.015 GB, free: 6.195 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.05452/0.6106, allocations: 21.43 MB / 1.036 GB, free: 0.7461 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.206e-05/0.6107, allocations: 28 kB / 1.036 GB, free: 0.7188 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.229/0.8397, allocations: 1.33 MB / 1.038 GB, free: 200.4 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.8398, allocations: 10.25 kB / 1.038 GB, free: 200.4 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004003/0.8402, allocations: 155.6 kB / 1.038 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.8414, allocations: 0.7774 MB / 1.038 GB, free: 200.1 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.8415, allocations: 31.16 kB / 1.038 GB, free: 200.1 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.8416, allocations: 70.03 kB / 1.039 GB, free: 200.1 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001119/0.8427, allocations: 0.6371 MB / 1.039 GB, free: 200.1 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.8438, allocations: 0.845 MB / 1.04 GB, free: 199.9 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.8439, allocations: 6.906 kB / 1.04 GB, free: 199.9 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.977e-05/0.844, allocations: 7.625 kB / 1.04 GB, free: 199.9 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.844, allocations: 24.5 kB / 1.04 GB, free: 199.9 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003987/0.848, allocations: 3.712 MB / 1.044 GB, free: 198.3 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.8494, allocations: 0.8003 MB / 1.044 GB, free: 198.3 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00046/0.8499, allocations: 353.7 kB / 1.045 GB, free: 198.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.071e-05/0.85, allocations: 16.31 kB / 1.045 GB, free: 198.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004332/0.8504, allocations: 333.6 kB / 1.045 GB, free: 198.2 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=88): time 2.204e-06/0.8504, allocations: 0 / 1.045 GB, free: 198.2 MB / 0.6823 GB Notification: Performance of matching and sorting (n=88): time 0.0009162/0.8513, allocations: 0.6162 MB / 1.046 GB, free: 198.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.636e-05/0.8514, allocations: 219.7 kB / 1.046 GB, free: 197.9 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006004/0.852, allocations: 0.5992 MB / 1.046 GB, free: 197.8 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.8521, allocations: 37.73 kB / 1.047 GB, free: 197.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.8522, allocations: 391.9 kB / 1.047 GB, free: 197.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.8524, allocations: 282.4 kB / 1.047 GB, free: 197.3 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.139e-05/0.8524, allocations: 6.344 kB / 1.047 GB, free: 197.3 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.681e-05/0.8525, allocations: 338 kB / 1.047 GB, free: 197 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.8529, allocations: 231 kB / 1.048 GB, free: 197 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.8533, allocations: 392.2 kB / 1.048 GB, free: 196.9 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.8537, allocations: 271.8 kB / 1.048 GB, free: 196.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.8537, allocations: 3.906 kB / 1.048 GB, free: 196.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001076/0.8548, allocations: 0.7216 MB / 1.049 GB, free: 196.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.443e-05/0.8549, allocations: 458 kB / 1.049 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.8549, allocations: 0 / 1.049 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.8549, allocations: 7.812 kB / 1.049 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007937/0.8557, allocations: 218.8 kB / 1.05 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.8558, allocations: 14.28 kB / 1.05 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005832/0.8564, allocations: 140.5 kB / 1.05 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.357e-05/0.8564, allocations: 26.31 kB / 1.05 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.921e-06/0.8564, allocations: 3.656 kB / 1.05 GB, free: 196.3 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007863/0.8572, allocations: 0.5544 MB / 1.05 GB, free: 196.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.8572, allocations: 5.922 kB / 1.05 GB, free: 196.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.943e-06/0.8572, allocations: 6.625 kB / 1.05 GB, free: 196.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006232/0.8579, allocations: 176.6 kB / 1.051 GB, free: 196.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.8579, allocations: 3.531 kB / 1.051 GB, free: 196.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.8583, allocations: 101.5 kB / 1.051 GB, free: 196.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.112e-05/0.8584, allocations: 21.38 kB / 1.051 GB, free: 196.2 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,noLimPID.I.trigger_internal,limPI.I.trigger_internal,limPIDOri.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0001375/0.8585, allocations: 128.7 kB / 1.051 GB, free: 196.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.8586, allocations: 102.4 kB / 1.051 GB, free: 196 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001957/0.8588, allocations: 100.3 kB / 1.051 GB, free: 196 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.8588, allocations: 10.16 kB / 1.051 GB, free: 196 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.8589, allocations: 0.5312 kB / 1.051 GB, free: 196 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.8589, allocations: 7.094 kB / 1.051 GB, free: 196 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008432/0.8597, allocations: 0.8522 MB / 1.052 GB, free: 195.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.8597, allocations: 1.469 kB / 1.052 GB, free: 195.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008048/0.8605, allocations: 187.9 kB / 1.052 GB, free: 195.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.8606, allocations: 4.719 kB / 1.052 GB, free: 195.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.471e-05/0.8606, allocations: 13.06 kB / 1.052 GB, free: 195.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.8606, allocations: 7.156 kB / 1.052 GB, free: 195.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.8606, allocations: 1.406 kB / 1.052 GB, free: 195.8 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001497/0.8621, allocations: 1.004 MB / 1.053 GB, free: 195.7 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/0.8623, allocations: 178.4 kB / 1.053 GB, free: 195.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.8624, allocations: 2.781 kB / 1.053 GB, free: 195.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005057/0.8629, allocations: 79.11 kB / 1.053 GB, free: 195.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.863, allocations: 55.17 kB / 1.053 GB, free: 195.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.721e-05/0.8631, allocations: 21.91 kB / 1.053 GB, free: 195.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0005339/0.8636, allocations: 469.4 kB / 1.054 GB, free: 195.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0008232/0.8644, allocations: 355.3 kB / 1.054 GB, free: 195.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPID.I.y,limPID.D.x,limPIDOri.I.y,limPIDOri.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002025/0.8646, allocations: 116.6 kB / 1.054 GB, free: 195.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001488/0.8661, allocations: 0.9817 MB / 1.055 GB, free: 195.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.8662, allocations: 1.344 kB / 1.055 GB, free: 195.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004426/0.8666, allocations: 316.7 kB / 1.056 GB, free: 195.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009343/0.8675, allocations: 205.5 kB / 1.056 GB, free: 195.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.8701, allocations: 1.376 MB / 1.057 GB, free: 194.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007339/0.8708, allocations: 1.19 MB / 1.058 GB, free: 194 MB / 0.6823 GB Notification: Performance of SimCode: time 6.41e-07/0.8708, allocations: 2.156 kB / 1.058 GB, free: 194 MB / 0.6823 GB Notification: Performance of Templates: time 0.02995/0.9008, allocations: 14.05 MB / 1.072 GB, free: 193.4 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_LimPID.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches