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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.419/1.419, allocations: 251.9 MB / 266.9 MB, free: 11.03 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.001148/0.001148, allocations: 185 kB / 326.5 MB, free: 2.254 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.965/1.965, allocations: 205.4 MB / 0.5775 GB, free: 20.5 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.000889/0.0008891, allocations: 99.48 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003896, allocations: 12.06 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2561, allocations: 106.3 MB / 0.9001 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1874/0.4436, allocations: 134.6 MB / 1.032 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.4439, allocations: 79.95 kB / 1.032 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05539/0.4993, allocations: 21.9 MB / 1.053 GB, free: 3.57 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4994, allocations: 4 kB / 1.053 GB, free: 3.566 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.219e-05/0.4995, allocations: 39.92 kB / 1.053 GB, free: 3.527 MB / 0.698 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.002851/0.5023, allocations: 1.509 MB / 1.054 GB, free: 1.961 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.5024, allocations: 8.031 kB / 1.054 GB, free: 1.953 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.5026, allocations: 154.1 kB / 1.055 GB, free: 1.801 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.504, allocations: 0.7735 MB / 1.055 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.246e-05/0.5041, allocations: 82.06 kB / 1.055 GB, free: 0.9023 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.5043, allocations: 115.8 kB / 1.056 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.532/1.036, allocations: 1.11 MB / 1.057 GB, free: 141.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/1.036, allocations: 1.344 kB / 1.057 GB, free: 141.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/1.037, allocations: 46.52 kB / 1.057 GB, free: 141.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.393e-05/1.037, allocations: 25.16 kB / 1.057 GB, free: 141.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/1.039, allocations: 0.9107 MB / 1.058 GB, free: 141.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005428/1.044, allocations: 3.941 MB / 1.061 GB, free: 139.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/1.047, allocations: 1.149 MB / 1.063 GB, free: 139.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.645e-05/1.047, allocations: 15.41 kB / 1.063 GB, free: 139.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/1.048, allocations: 471.9 kB / 1.063 GB, free: 139.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=88): time 3.346e-06/1.048, allocations: 0 / 1.063 GB, free: 139.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=88): time 0.002517/1.05, allocations: 1.192 MB / 1.064 GB, free: 139.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.05, allocations: 222.7 kB / 1.064 GB, free: 139.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/1.052, allocations: 0.7694 MB / 1.065 GB, free: 139.2 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.512e-05/1.052, allocations: 50.48 kB / 1.065 GB, free: 139.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005255/1.052, allocations: 0.5363 MB / 1.066 GB, free: 139 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002807/1.053, allocations: 299 kB / 1.066 GB, free: 138.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.946e-05/1.053, allocations: 18 kB / 1.066 GB, free: 138.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.921e-05/1.053, allocations: 337.6 kB / 1.066 GB, free: 138.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008592/1.054, allocations: 348.5 kB / 1.067 GB, free: 138.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/1.055, allocations: 0.5042 MB / 1.067 GB, free: 138.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009415/1.056, allocations: 392.3 kB / 1.068 GB, free: 138.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/1.056, allocations: 1.828 kB / 1.068 GB, free: 138.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002287/1.058, allocations: 0.9985 MB / 1.069 GB, free: 138.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001455/1.058, allocations: 458.9 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.058, allocations: 1.625 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/1.058, allocations: 5.156 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009139/1.059, allocations: 210.8 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/1.059, allocations: 10.5 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007514/1.06, allocations: 165.1 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.17e-05/1.06, allocations: 28.05 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/1.06, allocations: 10.31 kB / 1.069 GB, free: 137.8 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001322/1.061, allocations: 0.6819 MB / 1.07 GB, free: 137.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/1.061, allocations: 1.281 kB / 1.07 GB, free: 137.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/1.061, allocations: 5.719 kB / 1.07 GB, free: 137.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006828/1.062, allocations: 173.8 kB / 1.07 GB, free: 137.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/1.062, allocations: 5.547 kB / 1.07 GB, free: 137.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005264/1.063, allocations: 123.5 kB / 1.07 GB, free: 137.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.036e-05/1.063, allocations: 28.16 kB / 1.07 GB, free: 137.7 MB / 0.698 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 () * Number of clocked 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.0005706/1.063, allocations: 328.5 kB / 1.071 GB, free: 137.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/1.063, allocations: 114.8 kB / 1.071 GB, free: 137.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002675/1.064, allocations: 125 kB / 1.071 GB, free: 137.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/1.064, allocations: 12.47 kB / 1.071 GB, free: 137.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.162e-05/1.064, allocations: 0.5938 kB / 1.071 GB, free: 137.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/1.064, allocations: 4.891 kB / 1.071 GB, free: 137.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/1.065, allocations: 0.9891 MB / 1.072 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/1.065, allocations: 4 kB / 1.072 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008401/1.066, allocations: 183.6 kB / 1.072 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.025e-05/1.066, allocations: 7.141 kB / 1.072 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.465e-05/1.066, allocations: 23.08 kB / 1.072 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/1.066, allocations: 3.812 kB / 1.072 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.066, allocations: 0 / 1.072 GB, free: 137.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/1.069, allocations: 1.368 MB / 1.073 GB, free: 137 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/1.07, allocations: 198.3 kB / 1.074 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/1.07, allocations: 25.31 kB / 1.074 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004711/1.07, allocations: 86.16 kB / 1.074 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/1.07, allocations: 57.31 kB / 1.074 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.948e-05/1.07, allocations: 22.58 kB / 1.074 GB, free: 136.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0009609/1.071, allocations: 0.6031 MB / 1.074 GB, free: 136.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.61e-07/1.071, allocations: 0 / 1.074 GB, free: 136.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001072/1.072, allocations: 380.8 kB / 1.075 GB, free: 136.7 MB / 0.698 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) * Number of clocked states: 0 () * 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.0002743/1.073, allocations: 133.8 kB / 1.075 GB, free: 136.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002749/1.075, allocations: 1.224 MB / 1.076 GB, free: 136.5 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.076, allocations: 2.531 kB / 1.076 GB, free: 136.5 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009129/1.076, allocations: 432.2 kB / 1.077 GB, free: 136.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/1.078, allocations: 242.6 kB / 1.077 GB, free: 136.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003558/1.081, allocations: 2.273 MB / 1.079 GB, free: 135.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007851/1.082, allocations: 1.105 MB / 1.08 GB, free: 134.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006482/1.083, allocations: 135.5 kB / 1.08 GB, free: 134.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/1.083, allocations: 80.58 kB / 1.08 GB, free: 134.6 MB / 0.698 GB Notification: Performance of SimCode: time 1.293e-06/1.083, allocations: 1.188 kB / 1.08 GB, free: 134.6 MB / 0.698 GB Notification: Performance of Templates: time 0.01953/1.102, allocations: 10.38 MB / 1.09 GB, free: 134 MB / 0.698 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