Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.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.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset") [: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.766/1.766, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009932/0.0009932, allocations: 189.2 kB / 487 MB, free: 5.32 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.32 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.0008162/0.0008162, allocations: 93.94 kB / 0.9213 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.855e-06/7.895e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1797, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5035/0.6832, allocations: 150.1 MB / 1.352 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001705/0.6834, allocations: 78.38 kB / 1.352 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.03072/0.7141, allocations: 13.41 MB / 1.365 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.076e-05/0.7142, allocations: 20 kB / 1.365 GB, free: 11.73 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.001205/0.7154, allocations: 1.029 MB / 1.366 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.7154, allocations: 16.95 kB / 1.366 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.7156, allocations: 122.6 kB / 1.366 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005855/0.7161, allocations: 0.521 MB / 1.367 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.7162, allocations: 28 kB / 1.367 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.514e-05/0.7163, allocations: 66.16 kB / 1.367 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007404/0.717, allocations: 497.3 kB / 1.367 GB, free: 9.75 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009292/0.718, allocations: 0.6827 MB / 1.368 GB, free: 9.242 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.718, allocations: 0 / 1.368 GB, free: 9.242 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.105e-05/0.718, allocations: 3.938 kB / 1.368 GB, free: 9.242 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.7181, allocations: 24 kB / 1.368 GB, free: 9.219 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.7206, allocations: 2.411 MB / 1.37 GB, free: 7.309 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004265/0.721, allocations: 368.5 kB / 1.371 GB, free: 7.059 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005982/0.7216, allocations: 435.2 kB / 1.371 GB, free: 6.77 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.7217, allocations: 12.66 kB / 1.371 GB, free: 6.758 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003633/0.7221, allocations: 300.9 kB / 1.371 GB, free: 6.551 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=77): time 1.733e-06/0.7221, allocations: 0 / 1.371 GB, free: 6.551 MB / 0.8073 GB Notification: Performance of matching and sorting (n=77): time 0.0006868/0.7228, allocations: 0.5022 MB / 1.372 GB, free: 6.172 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.7228, allocations: 166.9 kB / 1.372 GB, free: 5.973 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.7232, allocations: 398.2 kB / 1.372 GB, free: 5.672 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.672e-05/0.7232, allocations: 25.7 kB / 1.372 GB, free: 5.641 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 9.348e-05/0.7233, allocations: 321 kB / 1.373 GB, free: 5.359 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.7234, allocations: 250.3 kB / 1.373 GB, free: 5.141 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.7234, allocations: 0 / 1.373 GB, free: 5.141 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.499e-05/0.7235, allocations: 375.3 kB / 1.373 GB, free: 4.793 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.7238, allocations: 181.4 kB / 1.373 GB, free: 4.695 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.7241, allocations: 294.5 kB / 1.374 GB, free: 4.473 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.7243, allocations: 218 kB / 1.374 GB, free: 4.344 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7243, allocations: 0 / 1.374 GB, free: 4.344 MB / 0.8073 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.0006619/0.725, allocations: 0.5583 MB / 1.375 GB, free: 3.934 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.7251, allocations: 188.2 kB / 1.375 GB, free: 3.738 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.7251, allocations: 0 / 1.375 GB, free: 3.738 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.7251, allocations: 4 kB / 1.375 GB, free: 3.734 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006267/0.7257, allocations: 173.8 kB / 1.375 GB, free: 3.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.7258, allocations: 4 kB / 1.375 GB, free: 3.566 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003585/0.7261, allocations: 91.48 kB / 1.375 GB, free: 3.477 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.7262, allocations: 23.12 kB / 1.375 GB, free: 3.461 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.91e-06/0.7262, allocations: 6.812 kB / 1.375 GB, free: 3.457 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005411/0.7267, allocations: 450.5 kB / 1.375 GB, free: 3.156 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-06/0.7267, allocations: 0 / 1.375 GB, free: 3.156 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.589e-06/0.7267, allocations: 4 kB / 1.375 GB, free: 3.152 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004651/0.7272, allocations: 142.5 kB / 1.376 GB, free: 3.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.7272, allocations: 4 kB / 1.376 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.7275, allocations: 71.38 kB / 1.376 GB, free: 2.945 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.921e-05/0.7275, allocations: 19.44 kB / 1.376 GB, free: 2.93 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,greEquThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * 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.427e-05/0.7276, allocations: 124.2 kB / 1.376 GB, free: 2.805 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.427e-05/0.7277, allocations: 67.16 kB / 1.376 GB, free: 2.738 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007043/0.7284, allocations: 0.5246 MB / 1.376 GB, free: 2.375 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.7284, allocations: 8 kB / 1.376 GB, free: 2.367 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.7284, allocations: 0 / 1.376 GB, free: 2.367 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.7284, allocations: 3.984 kB / 1.376 GB, free: 2.363 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.73, allocations: 1.479 MB / 1.378 GB, free: 1.242 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.73, allocations: 4 kB / 1.378 GB, free: 1.238 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/0.7306, allocations: 166.4 kB / 1.378 GB, free: 1.082 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.7306, allocations: 4 kB / 1.378 GB, free: 1.078 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.374e-05/0.7307, allocations: 6.875 kB / 1.378 GB, free: 1.074 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.7307, allocations: 7.938 kB / 1.378 GB, free: 1.066 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7307, allocations: 0 / 1.378 GB, free: 1.066 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000913/0.7316, allocations: 1.011 MB / 1.379 GB, free: 272 kB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.211e-05/0.7317, allocations: 151.7 kB / 1.379 GB, free: 104 kB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.043e-05/0.7317, allocations: 3.984 kB / 1.379 GB, free: 100 kB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/0.7321, allocations: 51.88 kB / 1.379 GB, free: 48 kB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.7322, allocations: 39.41 kB / 1.379 GB, free: 16 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.245e-05/0.7322, allocations: 30.72 kB / 1.379 GB, free: 15.99 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0002808/0.7325, allocations: 305.2 kB / 1.38 GB, free: 15.77 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0006057/0.7331, allocations: 271.2 kB / 1.38 GB, free: 15.5 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 10 (limPIDPar.I.y,limPIDPar.D.x,intWitRes1.y,limPIDInp.I.y,limPIDInp.D.x,intWitRes2.y,limPIPar.I.y,intWitRes3.y,limPIInp.I.y,intWitRes4.y) * Number of discrete variables: 3 (greEquThr.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 77 * 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.0002023/0.7333, allocations: 127.8 kB / 1.38 GB, free: 15.37 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001131/0.7345, allocations: 0.7923 MB / 1.381 GB, free: 14.84 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7345, allocations: 0 / 1.381 GB, free: 14.84 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003258/0.7348, allocations: 280.1 kB / 1.381 GB, free: 14.65 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005898/0.7354, allocations: 104.2 kB / 1.381 GB, free: 14.57 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.7373, allocations: 1.149 MB / 1.382 GB, free: 13.52 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006662/0.738, allocations: 1.059 MB / 1.383 GB, free: 12.43 MB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/0.738, allocations: 4 kB / 1.383 GB, free: 12.43 MB / 0.823 GB Notification: Performance of Templates: time 0.01494/0.7529, allocations: 9.332 MB / 1.392 GB, free: 3.191 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithReset.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches