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.567/1.567, allocations: 249.5 MB / 257 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 180.9 kB / 316.3 MB, free: 3.238 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.766/1.766, allocations: 205.3 MB / 0.5672 GB, free: 15.88 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.0009727/0.0009727, allocations: 90.83 kB / 0.6714 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.27e-05/2.273e-05, allocations: 12 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2339, allocations: 106.3 MB / 0.8853 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7616/0.9955, allocations: 134.7 MB / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.9958, allocations: 79.89 kB / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.05431/1.05, allocations: 21.7 MB / 1.038 GB, free: 1.008 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.703e-06/1.05, allocations: 0 / 1.038 GB, free: 1.008 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 7.802e-05/1.05, allocations: 28 kB / 1.038 GB, free: 0.9805 MB / 0.6511 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.002288/1.053, allocations: 1.309 MB / 1.039 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/1.053, allocations: 8.031 kB / 1.039 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002459/1.053, allocations: 154.1 kB / 1.04 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/1.054, allocations: 0.776 MB / 1.04 GB, free: 14.86 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/1.054, allocations: 36 kB / 1.04 GB, free: 14.82 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/1.054, allocations: 71.92 kB / 1.04 GB, free: 14.75 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001154/1.056, allocations: 0.6273 MB / 1.041 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/1.057, allocations: 0.8481 MB / 1.042 GB, free: 13.69 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/1.057, allocations: 3.938 kB / 1.042 GB, free: 13.68 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.368e-05/1.057, allocations: 7.984 kB / 1.042 GB, free: 13.68 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.142e-05/1.057, allocations: 28 kB / 1.042 GB, free: 13.65 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004892/1.062, allocations: 3.722 MB / 1.046 GB, free: 10.52 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/1.064, allocations: 0.8414 MB / 1.046 GB, free: 9.969 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004733/1.064, allocations: 355 kB / 1.047 GB, free: 9.746 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 5.318e-05/1.064, allocations: 12.77 kB / 1.047 GB, free: 9.734 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005642/1.065, allocations: 339.7 kB / 1.047 GB, free: 9.492 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=88): time 3.006e-06/1.065, allocations: 0 / 1.047 GB, free: 9.492 MB / 0.6667 GB Notification: Performance of matching and sorting (n=88): time 0.001008/1.066, allocations: 0.6232 MB / 1.048 GB, free: 9.027 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/1.066, allocations: 218.4 kB / 1.048 GB, free: 8.766 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007512/1.067, allocations: 0.6036 MB / 1.048 GB, free: 8.312 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 5.461e-05/1.067, allocations: 29.7 kB / 1.048 GB, free: 8.277 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003653/1.067, allocations: 0.5399 MB / 1.049 GB, free: 7.922 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/1.067, allocations: 290.6 kB / 1.049 GB, free: 7.672 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.292e-05/1.067, allocations: 3.938 kB / 1.049 GB, free: 7.668 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.067, allocations: 336.8 kB / 1.05 GB, free: 7.348 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/1.068, allocations: 232.2 kB / 1.05 GB, free: 7.219 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004733/1.068, allocations: 389.7 kB / 1.05 GB, free: 6.914 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004124/1.069, allocations: 279.6 kB / 1.05 GB, free: 6.742 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/1.069, allocations: 4 kB / 1.05 GB, free: 6.738 MB / 0.6667 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00104/1.07, allocations: 0.7264 MB / 1.051 GB, free: 6.199 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002002/1.07, allocations: 457.1 kB / 1.052 GB, free: 5.727 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/1.07, allocations: 7.984 kB / 1.052 GB, free: 5.719 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/1.07, allocations: 4 kB / 1.052 GB, free: 5.715 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009116/1.071, allocations: 211.3 kB / 1.052 GB, free: 5.516 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/1.071, allocations: 8 kB / 1.052 GB, free: 5.508 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005982/1.072, allocations: 131.3 kB / 1.052 GB, free: 5.379 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.379e-05/1.072, allocations: 26 kB / 1.052 GB, free: 5.359 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/1.072, allocations: 4 kB / 1.052 GB, free: 5.355 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008404/1.073, allocations: 0.5638 MB / 1.053 GB, free: 4.969 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/1.073, allocations: 3.938 kB / 1.053 GB, free: 4.965 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.183e-06/1.073, allocations: 8.125 kB / 1.053 GB, free: 4.957 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006315/1.073, allocations: 167.6 kB / 1.053 GB, free: 4.801 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/1.073, allocations: 11.98 kB / 1.053 GB, free: 4.789 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/1.074, allocations: 95.28 kB / 1.053 GB, free: 4.695 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/1.074, allocations: 22.06 kB / 1.053 GB, free: 4.68 MB / 0.6667 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 () * 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.0001798/1.074, allocations: 122.4 kB / 1.053 GB, free: 4.555 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/1.074, allocations: 102.7 kB / 1.053 GB, free: 4.453 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002276/1.074, allocations: 100.9 kB / 1.053 GB, free: 4.398 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/1.074, allocations: 8 kB / 1.053 GB, free: 4.391 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.074, allocations: 0 / 1.053 GB, free: 4.391 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/1.074, allocations: 11.92 kB / 1.053 GB, free: 4.379 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/1.075, allocations: 0.8528 MB / 1.054 GB, free: 3.723 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/1.075, allocations: 3.984 kB / 1.054 GB, free: 3.719 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007514/1.076, allocations: 178.4 kB / 1.054 GB, free: 3.551 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/1.076, allocations: 8 kB / 1.054 GB, free: 3.543 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.064e-05/1.076, allocations: 11.48 kB / 1.054 GB, free: 3.535 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/1.076, allocations: 3.938 kB / 1.054 GB, free: 3.531 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.076, allocations: 4 kB / 1.054 GB, free: 3.527 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/1.078, allocations: 0.9864 MB / 1.055 GB, free: 2.852 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/1.078, allocations: 186.3 kB / 1.055 GB, free: 2.656 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.083e-05/1.078, allocations: 4 kB / 1.055 GB, free: 2.652 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/1.078, allocations: 75.81 kB / 1.055 GB, free: 2.582 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/1.078, allocations: 56.5 kB / 1.055 GB, free: 2.531 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.156e-05/1.078, allocations: 27.81 kB / 1.055 GB, free: 2.512 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0005497/1.079, allocations: 471.7 kB / 1.056 GB, free: 2.184 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.4e-07/1.079, allocations: 0 / 1.056 GB, free: 2.184 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0008015/1.08, allocations: 350.1 kB / 1.056 GB, free: 1.84 MB / 0.6667 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) * 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.0002244/1.08, allocations: 124.1 kB / 1.056 GB, free: 1.715 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001382/1.081, allocations: 0.967 MB / 1.057 GB, free: 1.074 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/1.081, allocations: 0 / 1.057 GB, free: 1.074 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004131/1.082, allocations: 312.9 kB / 1.058 GB, free: 0.8633 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009654/1.083, allocations: 213.9 kB / 1.058 GB, free: 0.6992 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/1.085, allocations: 1.354 MB / 1.059 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006996/1.086, allocations: 1.111 MB / 1.06 GB, free: 14.35 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0007176/1.086, allocations: 167.5 kB / 1.06 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/1.087, allocations: 67.11 kB / 1.06 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of SimCode: time 5.61e-07/1.087, allocations: 0 / 1.06 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of Templates: time 0.02026/1.107, allocations: 10.62 MB / 1.071 GB, free: 3.602 MB / 0.6823 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