Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.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.PIDInitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.I.y|limPID.D.y|limPI.I.y|limPID.D.u",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.I.y|limPID.D.y|limPI.I.y|limPID.D.u",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState") [: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.783/1.783, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.000906/0.0009059, allocations: 169.3 kB / 487 MB, free: 5.398 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.113/1.113, allocations: 221.3 MB / 0.7819 GB, free: 1.473 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.0008017/0.0008017, allocations: 100.3 kB / 0.9213 GB, free: 2.734 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.924e-06/7.944e-06, allocations: 8 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1803, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5207/0.701, allocations: 149.6 MB / 1.351 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.7012, allocations: 72.88 kB / 1.351 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01527/0.7165, allocations: 6.097 MB / 1.357 GB, free: 15.6 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.664e-05/0.7166, allocations: 12.34 kB / 1.357 GB, free: 15.6 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009386/0.7176, allocations: 0.618 MB / 1.358 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.7176, allocations: 9.5 kB / 1.358 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.7177, allocations: 51.84 kB / 1.358 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005037/0.7183, allocations: 330.6 kB / 1.358 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.7183, allocations: 12.19 kB / 1.358 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.764e-05/0.7184, allocations: 31.28 kB / 1.358 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004829/0.7189, allocations: 218.3 kB / 1.359 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.7194, allocations: 322 kB / 1.359 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.7195, allocations: 1.594 kB / 1.359 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.7195, allocations: 4.812 kB / 1.359 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.7195, allocations: 9.406 kB / 1.359 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.7212, allocations: 1.195 MB / 1.36 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.7216, allocations: 199.8 kB / 1.36 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.7217, allocations: 133.4 kB / 1.36 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.7218, allocations: 3.203 kB / 1.36 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.722, allocations: 161.4 kB / 1.361 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=28): time 1.613e-06/0.722, allocations: 0 / 1.361 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28): time 0.0003761/0.7224, allocations: 220.4 kB / 1.361 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.7224, allocations: 132.3 kB / 1.361 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.7227, allocations: 251.9 kB / 1.361 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.7227, allocations: 26.31 kB / 1.361 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.796e-05/0.7228, allocations: 204.5 kB / 1.361 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.199e-05/0.7229, allocations: 84.45 kB / 1.361 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.158e-05/0.7229, allocations: 0 / 1.361 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.575e-05/0.723, allocations: 342.1 kB / 1.362 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.7231, allocations: 81 kB / 1.362 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.7233, allocations: 159.6 kB / 1.362 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.7234, allocations: 104.6 kB / 1.362 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.7234, allocations: 1.062 kB / 1.362 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004426/0.7239, allocations: 281.5 kB / 1.362 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.427e-05/0.724, allocations: 0.5253 MB / 1.363 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.724, allocations: 6.328 kB / 1.363 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.724, allocations: 3.344 kB / 1.363 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.7244, allocations: 77.5 kB / 1.363 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.7244, allocations: 2.438 kB / 1.363 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.7246, allocations: 47.39 kB / 1.363 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.7247, allocations: 12.73 kB / 1.363 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/0.7247, allocations: 3.812 kB / 1.363 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003282/0.725, allocations: 203.1 kB / 1.363 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.725, allocations: 4 kB / 1.363 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.417e-06/0.725, allocations: 8.031 kB / 1.363 GB, free: 12.49 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.7252, allocations: 61.3 kB / 1.363 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.136e-06/0.7253, allocations: 0.5156 kB / 1.363 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.7254, allocations: 27.03 kB / 1.363 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.7254, allocations: 12.64 kB / 1.363 GB, free: 12.41 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.632e-05/0.7255, allocations: 120.3 kB / 1.363 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.7256, allocations: 24.28 kB / 1.363 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002439/0.7258, allocations: 165.4 kB / 1.364 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.7258, allocations: 0 / 1.364 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.7258, allocations: 4.656 kB / 1.364 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.7258, allocations: 9.359 kB / 1.364 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009963/0.7268, allocations: 0.9156 MB / 1.365 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.7269, allocations: 4.516 kB / 1.365 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/0.7271, allocations: 56.75 kB / 1.365 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.7271, allocations: 4 kB / 1.365 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.7271, allocations: 5.125 kB / 1.365 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.7271, allocations: 12.45 kB / 1.365 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.7272, allocations: 0 / 1.365 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004719/0.7276, allocations: 0.7005 MB / 1.365 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.071e-05/0.7277, allocations: 111.9 kB / 1.365 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.267e-05/0.7277, allocations: 12.42 kB / 1.365 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.728, allocations: 25.16 kB / 1.365 GB, free: 10.55 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.728, allocations: 16.81 kB / 1.365 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.728, allocations: 17.36 kB / 1.365 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001387/0.7282, allocations: 198 kB / 1.366 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0004425/0.7286, allocations: 128 kB / 1.366 GB, free: 10.26 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 3 (limPI.I.y,limPID.I.y,limPID.D.x) * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.0001393/0.7288, allocations: 116.4 kB / 1.366 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004219/0.7292, allocations: 338 kB / 1.366 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.7292, allocations: 0.5 kB / 1.366 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.7293, allocations: 107.2 kB / 1.366 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.7298, allocations: 55.86 kB / 1.366 GB, free: 9.82 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009804/0.7308, allocations: 0.5548 MB / 1.367 GB, free: 9.316 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/0.7312, allocations: 0.8412 MB / 1.368 GB, free: 24.5 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/0.7312, allocations: 0 / 1.368 GB, free: 24.5 MB / 0.823 GB Notification: Performance of Templates: time 0.006917/0.7381, allocations: 4.193 MB / 1.372 GB, free: 20.61 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDInitialState.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches