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.LimPIDWithReset.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.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.y|limPIDInp.u_m|limPIDInp.u_s|limPIPar.y|limPIPar.u_m|limPIPar.u_s|limPIInp.y|limPIInp.u_m|limPIInp.u_s",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.y|limPIDInp.u_m|limPIDInp.u_s|limPIPar.y|limPIPar.u_m|limPIPar.u_s|limPIInp.y|limPIInp.u_m|limPIInp.u_s",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset") [: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.357/1.357, allocations: 249.4 MB / 256.7 MB, free: 0.7148 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 188.1 kB / 316 MB, free: 8.934 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.1 MB / 0.5667 GB, free: 13.43 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009971/0.000997, allocations: 88.64 kB / 0.671 GB, free: 51.64 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 1.194e-05/1.222e-05, allocations: 4 kB / 0.7807 GB, free: 9.938 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7299/0.73, allocations: 106.3 MB / 0.8846 GB, free: 89.1 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1786/0.9086, allocations: 133.8 MB / 1.015 GB, free: 11.9 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001774/0.9088, allocations: 75.95 kB / 1.015 GB, free: 11.83 MB / 0.659 GB Notification: Performance of FrontEnd: time 0.04475/0.9536, allocations: 18.09 MB / 1.033 GB, free: 9.973 MB / 0.6746 GB Notification: Performance of Transformations before backend: time 5.928e-05/0.9537, allocations: 20.22 kB / 1.033 GB, free: 9.953 MB / 0.6746 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 244 * Number of variables: 244 Notification: Performance of Generate backend data structure: time 0.001687/0.9554, allocations: 1.15 MB / 1.034 GB, free: 8.758 MB / 0.6746 GB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.9554, allocations: 12.03 kB / 1.034 GB, free: 8.746 MB / 0.6746 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.9556, allocations: 130.4 kB / 1.034 GB, free: 8.617 MB / 0.6746 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.9566, allocations: 0.6568 MB / 1.035 GB, free: 7.922 MB / 0.6746 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.601e-05/0.9567, allocations: 32 kB / 1.035 GB, free: 7.891 MB / 0.6746 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.915e-05/0.9568, allocations: 56 kB / 1.035 GB, free: 7.836 MB / 0.6746 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009937/0.9578, allocations: 0.5351 MB / 1.035 GB, free: 7.301 MB / 0.6746 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.959, allocations: 0.7647 MB / 1.036 GB, free: 6.488 MB / 0.6746 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.959, allocations: 0 / 1.036 GB, free: 6.488 MB / 0.6746 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.743e-05/0.9591, allocations: 11.91 kB / 1.036 GB, free: 6.477 MB / 0.6746 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.9591, allocations: 24 kB / 1.036 GB, free: 6.453 MB / 0.6746 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.9629, allocations: 3.194 MB / 1.039 GB, free: 3.18 MB / 0.6746 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006604/0.9636, allocations: 382.2 kB / 1.04 GB, free: 2.805 MB / 0.6746 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.9641, allocations: 335.6 kB / 1.04 GB, free: 2.477 MB / 0.6746 GB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.9641, allocations: 8.656 kB / 1.04 GB, free: 2.469 MB / 0.6746 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/0.9646, allocations: 291.8 kB / 1.04 GB, free: 2.168 MB / 0.6746 GB Notification: Performance of pre-optimization done (n=76): time 1.844e-06/0.9646, allocations: 0 / 1.04 GB, free: 2.168 MB / 0.6746 GB Notification: Performance of matching and sorting (n=76): time 0.0008506/0.9654, allocations: 0.5107 MB / 1.041 GB, free: 1.652 MB / 0.6746 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.9655, allocations: 162.9 kB / 1.041 GB, free: 1.457 MB / 0.6746 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005772/0.9661, allocations: 0.4996 MB / 1.041 GB, free: 0.957 MB / 0.6746 GB Notification: Performance of collectPreVariables (initialization): time 4.214e-05/0.9662, allocations: 29.69 kB / 1.042 GB, free: 0.9219 MB / 0.6746 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.9664, allocations: 355.8 kB / 1.042 GB, free: 0.5664 MB / 0.6746 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.9666, allocations: 252.2 kB / 1.042 GB, free: 324 kB / 0.6746 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.9666, allocations: 0 / 1.042 GB, free: 324 kB / 0.6746 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.9667, allocations: 337.8 kB / 1.042 GB, free: 15.98 MB / 0.6903 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003212/0.9671, allocations: 199.7 kB / 1.043 GB, free: 15.79 MB / 0.6903 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.9675, allocations: 306.2 kB / 1.043 GB, free: 15.45 MB / 0.6903 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003871/0.9679, allocations: 224.5 kB / 1.043 GB, free: 15.23 MB / 0.6903 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.9679, allocations: 4 kB / 1.043 GB, free: 15.23 MB / 0.6903 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009479/0.9688, allocations: 0.5993 MB / 1.044 GB, free: 14.62 MB / 0.6903 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001893/0.969, allocations: 454 kB / 1.044 GB, free: 14.14 MB / 0.6903 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.381e-06/0.9691, allocations: 0 / 1.044 GB, free: 14.14 MB / 0.6903 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.9691, allocations: 4.844 kB / 1.044 GB, free: 14.14 MB / 0.6903 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000667/0.9698, allocations: 167.8 kB / 1.044 GB, free: 13.97 MB / 0.6903 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.9698, allocations: 11.92 kB / 1.044 GB, free: 13.96 MB / 0.6903 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004242/0.9702, allocations: 95.39 kB / 1.044 GB, free: 13.87 MB / 0.6903 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.751e-05/0.9703, allocations: 24 kB / 1.044 GB, free: 13.84 MB / 0.6903 GB Notification: Performance of prepare postOptimizeDAE: time 8.336e-06/0.9703, allocations: 4 kB / 1.044 GB, free: 13.84 MB / 0.6903 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008243/0.9711, allocations: 473 kB / 1.045 GB, free: 13.38 MB / 0.6903 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-06/0.9711, allocations: 0 / 1.045 GB, free: 13.38 MB / 0.6903 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.164e-06/0.9711, allocations: 4 kB / 1.045 GB, free: 13.38 MB / 0.6903 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.9717, allocations: 143.8 kB / 1.045 GB, free: 13.23 MB / 0.6903 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.9717, allocations: 8.125 kB / 1.045 GB, free: 13.23 MB / 0.6903 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.972, allocations: 59.42 kB / 1.045 GB, free: 13.17 MB / 0.6903 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/0.972, allocations: 28 kB / 1.045 GB, free: 13.14 MB / 0.6903 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,greEquThr.y,intWitRes4.trigger_internal,intWitRes3.trigger_internal,intWitRes2.trigger_internal,intWitRes1.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 94 * 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.0001552/0.9722, allocations: 116.8 kB / 1.045 GB, free: 13.02 MB / 0.6903 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.9723, allocations: 79.77 kB / 1.045 GB, free: 12.94 MB / 0.6903 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002062/0.9725, allocations: 84.2 kB / 1.045 GB, free: 12.85 MB / 0.6903 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.9725, allocations: 8 kB / 1.045 GB, free: 12.84 MB / 0.6903 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.9725, allocations: 0.8438 kB / 1.045 GB, free: 12.84 MB / 0.6903 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.9726, allocations: 3.984 kB / 1.045 GB, free: 12.84 MB / 0.6903 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.9747, allocations: 1.438 MB / 1.047 GB, free: 11.36 MB / 0.6903 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.9747, allocations: 4 kB / 1.047 GB, free: 11.35 MB / 0.6903 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006841/0.9754, allocations: 147.8 kB / 1.047 GB, free: 11.21 MB / 0.6903 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.9754, allocations: 0 / 1.047 GB, free: 11.21 MB / 0.6903 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.9754, allocations: 4 kB / 1.047 GB, free: 11.2 MB / 0.6903 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.716e-06/0.9754, allocations: 11.89 kB / 1.047 GB, free: 11.19 MB / 0.6903 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.9755, allocations: 0.5625 kB / 1.047 GB, free: 11.19 MB / 0.6903 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001248/0.9767, allocations: 0.9124 MB / 1.048 GB, free: 10.27 MB / 0.6903 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.9769, allocations: 159.9 kB / 1.048 GB, free: 10.09 MB / 0.6903 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.611e-05/0.977, allocations: 7.938 kB / 1.048 GB, free: 10.08 MB / 0.6903 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.9773, allocations: 51.95 kB / 1.048 GB, free: 10.03 MB / 0.6903 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.548e-05/0.9774, allocations: 36.59 kB / 1.048 GB, free: 9.996 MB / 0.6903 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.9775, allocations: 20 kB / 1.048 GB, free: 9.977 MB / 0.6903 GB Notification: Performance of sort global known variables: time 0.0004597/0.9779, allocations: 383.1 kB / 1.048 GB, free: 9.609 MB / 0.6903 GB Notification: Performance of remove unused functions: time 0.0006753/0.9786, allocations: 298.2 kB / 1.049 GB, free: 9.316 MB / 0.6903 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 2 (greEquThr.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 76 * 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.0001791/0.9788, allocations: 121.4 kB / 1.049 GB, free: 9.191 MB / 0.6903 GB Notification: Performance of simCode: created initialization part: time 0.001218/0.98, allocations: 0.815 MB / 1.05 GB, free: 8.379 MB / 0.6903 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.98, allocations: 1.031 kB / 1.05 GB, free: 8.379 MB / 0.6903 GB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.9804, allocations: 274.3 kB / 1.05 GB, free: 8.109 MB / 0.6903 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008364/0.9813, allocations: 169 kB / 1.05 GB, free: 7.953 MB / 0.6903 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.9835, allocations: 1.231 MB / 1.051 GB, free: 6.699 MB / 0.6903 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007987/0.9843, allocations: 1.116 MB / 1.052 GB, free: 5.555 MB / 0.6903 GB Notification: Performance of SimCode: time 3.5e-07/0.9843, allocations: 0 / 1.052 GB, free: 5.555 MB / 0.6903 GB Notification: Performance of Templates: time 0.01969/1.004, allocations: 10.98 MB / 1.063 GB, free: 10.86 MB / 0.7059 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_LimPIDWithReset.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches