Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.746/1.746, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0008853/0.0008853, allocations: 195.8 kB / 490.8 MB, free: 1.918 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.068/1.068, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.0008097/0.0008097, allocations: 76.83 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.664e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1687, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4603/0.629, allocations: 150.9 MB / 1.359 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001748/0.6292, allocations: 76.98 kB / 1.359 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02951/0.6587, allocations: 13.41 MB / 1.372 GB, free: 16.75 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.495e-05/0.6588, allocations: 20 kB / 1.372 GB, free: 16.75 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.001411/0.6602, allocations: 1.032 MB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.93e-05/0.6602, allocations: 8.781 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.6604, allocations: 117.2 kB / 1.373 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006326/0.661, allocations: 0.5296 MB / 1.374 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.6611, allocations: 28.62 kB / 1.374 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.225e-05/0.6612, allocations: 60.25 kB / 1.374 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008003/0.662, allocations: 0.4895 MB / 1.374 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.663, allocations: 0.6876 MB / 1.375 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.663, allocations: 0 / 1.375 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/0.6631, allocations: 2.438 kB / 1.375 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.6631, allocations: 22.77 kB / 1.375 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002951/0.6661, allocations: 2.409 MB / 1.377 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004715/0.6665, allocations: 377.2 kB / 1.378 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000627/0.6672, allocations: 430.3 kB / 1.378 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.31e-05/0.6672, allocations: 14.42 kB / 1.378 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003803/0.6676, allocations: 306.7 kB / 1.379 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=77): time 1.593e-06/0.6676, allocations: 0 / 1.379 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=77): time 0.0007138/0.6683, allocations: 0.4953 MB / 1.379 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.6684, allocations: 166 kB / 1.379 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.6688, allocations: 398.1 kB / 1.38 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.6688, allocations: 34.66 kB / 1.38 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.6689, allocations: 313.8 kB / 1.38 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.669, allocations: 254.5 kB / 1.38 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.6691, allocations: 0 / 1.38 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6692, allocations: 379.1 kB / 1.38 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.6695, allocations: 180.6 kB / 1.381 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.6698, allocations: 284.1 kB / 1.381 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00029/0.6701, allocations: 216.8 kB / 1.381 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.6701, allocations: 1.25 kB / 1.381 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.0007176/0.6708, allocations: 0.559 MB / 1.382 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.163e-05/0.6709, allocations: 190.4 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.6709, allocations: 1.281 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.6709, allocations: 3.656 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006352/0.6715, allocations: 167.1 kB / 1.382 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.6715, allocations: 3.938 kB / 1.382 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.6719, allocations: 99.59 kB / 1.382 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.935e-05/0.672, allocations: 26.69 kB / 1.382 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.19e-06/0.672, allocations: 3.625 kB / 1.382 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006063/0.6726, allocations: 450.6 kB / 1.383 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/0.6726, allocations: 0 / 1.383 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.129e-06/0.6726, allocations: 4.156 kB / 1.383 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004913/0.6731, allocations: 137.8 kB / 1.383 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.6731, allocations: 3.531 kB / 1.383 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.6734, allocations: 68.94 kB / 1.383 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.6734, allocations: 20.28 kB / 1.383 GB, free: 28.85 MB / 0.8386 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 0.000101/0.6735, allocations: 120.4 kB / 1.383 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.6736, allocations: 75.38 kB / 1.383 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007474/0.6744, allocations: 0.5301 MB / 1.383 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.6744, allocations: 6.938 kB / 1.384 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.6744, allocations: 0.8125 kB / 1.384 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.6744, allocations: 3.984 kB / 1.384 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.6761, allocations: 1.481 MB / 1.385 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.6761, allocations: 2.5 kB / 1.385 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006082/0.6767, allocations: 155.2 kB / 1.385 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.6767, allocations: 5.188 kB / 1.385 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.539e-05/0.6767, allocations: 14.98 kB / 1.385 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.6767, allocations: 4 kB / 1.385 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6768, allocations: 2.531 kB / 1.385 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001018/0.6778, allocations: 1.007 MB / 1.386 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.788e-05/0.6779, allocations: 155.2 kB / 1.386 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.6779, allocations: 3.906 kB / 1.386 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.6783, allocations: 49.48 kB / 1.386 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.6784, allocations: 44.78 kB / 1.386 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.6784, allocations: 28.55 kB / 1.386 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002618/0.6787, allocations: 306.6 kB / 1.387 GB, free: 27.22 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005553/0.6792, allocations: 273 kB / 1.387 GB, free: 27.14 MB / 0.8386 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.0001398/0.6794, allocations: 130.5 kB / 1.387 GB, free: 27.03 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009745/0.6804, allocations: 0.7863 MB / 1.388 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6804, allocations: 1.281 kB / 1.388 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003178/0.6807, allocations: 275 kB / 1.388 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000548/0.6813, allocations: 111.8 kB / 1.388 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.6829, allocations: 1.155 MB / 1.389 GB, free: 26.4 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000631/0.6836, allocations: 1.06 MB / 1.39 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/0.6836, allocations: 0 / 1.39 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of Templates: time 0.0148/0.6984, allocations: 9.317 MB / 1.399 GB, free: 21.14 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithReset.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches