Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.00133, allocations: 108 kB / 16.41 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001286/0.001287, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241 MB, free: 14.95 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.634/2.634, allocations: 461.9 MB / 0.7354 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 63.91 kB / 1.055 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9197/0.9212, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PID): time 0.004793/0.926, allocations: 3.616 MB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003491/0.9295, allocations: 2.139 MB / 1.214 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004972/0.9301, allocations: 19.94 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0004281/0.9305, allocations: 174.1 kB / 1.214 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000355/0.9309, allocations: 146.6 kB / 1.214 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.932, allocations: 0.4985 MB / 1.215 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001094/0.9331, allocations: 1.264 MB / 1.216 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007782/0.9339, allocations: 0.5955 MB / 1.217 GB, free: 5.086 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004702/0.9344, allocations: 442.3 kB / 1.217 GB, free: 4.652 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004438/0.9348, allocations: 489.4 kB / 1.218 GB, free: 4.172 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.000146/0.935, allocations: 132 kB / 1.218 GB, free: 4.043 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.9352, allocations: 144 kB / 1.218 GB, free: 3.902 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.9354, allocations: 251.1 kB / 1.218 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003742/0.9357, allocations: 0.5089 MB / 1.219 GB, free: 3.145 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.937, allocations: 1.422 MB / 1.22 GB, free: 1.723 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.937, allocations: 3.984 kB / 1.22 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.464e-06/0.937, allocations: 0 / 1.22 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.462e-05/0.937, allocations: 0 / 1.22 GB, free: 1.719 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.00239/0.9394, allocations: 1.368 MB / 1.221 GB, free: 292 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.9395, allocations: 12.03 kB / 1.221 GB, free: 280 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.9396, allocations: 115.6 kB / 1.221 GB, free: 164 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008289/0.9405, allocations: 0.6064 MB / 1.222 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.9405, allocations: 70.38 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.9407, allocations: 96.38 kB / 1.222 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.9421, allocations: 0.8602 MB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.9421, allocations: 4.125 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.515e-05/0.9422, allocations: 39.94 kB / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.169e-05/0.9422, allocations: 20 kB / 1.223 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.9435, allocations: 0.6363 MB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004157/0.9477, allocations: 2.968 MB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.9492, allocations: 0.679 MB / 1.227 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006491/0.9498, allocations: 378.6 kB / 1.228 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.9499, allocations: 9.656 kB / 1.228 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006634/0.9505, allocations: 351 kB / 1.228 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=68): time 2.394e-06/0.9505, allocations: 0 / 1.228 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=68): time 0.001725/0.9523, allocations: 0.8337 MB / 1.229 GB, free: 8.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.9524, allocations: 184.5 kB / 1.229 GB, free: 8.207 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008271/0.9532, allocations: 0.6802 MB / 1.23 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.752e-05/0.9533, allocations: 41.7 kB / 1.23 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.9536, allocations: 431.8 kB / 1.23 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.9538, allocations: 228.7 kB / 1.23 GB, free: 6.812 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.954, allocations: 142.7 kB / 1.23 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.9542, allocations: 345.9 kB / 1.231 GB, free: 6.324 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006555/0.9548, allocations: 288.7 kB / 1.231 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000776/0.9556, allocations: 486.2 kB / 1.232 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.9569, allocations: 0.6731 MB / 1.232 GB, free: 4.777 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.9569, allocations: 0 / 1.232 GB, free: 4.777 MB / 0.9512 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001792/0.9587, allocations: 0.8804 MB / 1.233 GB, free: 3.883 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/0.9587, allocations: 42.06 kB / 1.233 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.9588, allocations: 8 kB / 1.233 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.9588, allocations: 4 kB / 1.233 GB, free: 3.824 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006131/0.9594, allocations: 163.7 kB / 1.233 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.9594, allocations: 4 kB / 1.233 GB, free: 3.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000656/0.9601, allocations: 147 kB / 1.233 GB, free: 3.516 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.748e-05/0.9602, allocations: 35.98 kB / 1.233 GB, free: 3.48 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006885/0.9609, allocations: 394 kB / 1.234 GB, free: 3.09 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005612/0.9614, allocations: 418.2 kB / 1.234 GB, free: 2.613 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008267/0.9623, allocations: 0.5756 MB / 1.235 GB, free: 1.988 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.605e-06/0.9623, allocations: 0 / 1.235 GB, free: 1.988 MB / 0.9512 GB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001258/0.9635, allocations: 0.752 MB / 1.236 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.9636, allocations: 45.69 kB / 1.236 GB, free: 1.172 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.9636, allocations: 4 kB / 1.236 GB, free: 1.168 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.9636, allocations: 8 kB / 1.236 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004848/0.9641, allocations: 127.8 kB / 1.236 GB, free: 1.035 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.9641, allocations: 15.92 kB / 1.236 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005776/0.9647, allocations: 111.6 kB / 1.236 GB, free: 0.9102 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.011e-05/0.9648, allocations: 28 kB / 1.236 GB, free: 0.8828 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,noLimPID.con1.y,limPI.con1.y,limPID.con1.y,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002159/0.965, allocations: 236 kB / 1.236 GB, free: 0.6445 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.9651, allocations: 82.95 kB / 1.236 GB, free: 0.5625 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.9664, allocations: 0.6515 MB / 1.237 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.9665, allocations: 8 kB / 1.237 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.9665, allocations: 0 / 1.237 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.9665, allocations: 3.984 kB / 1.237 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.9691, allocations: 1.671 MB / 1.238 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.9692, allocations: 7.938 kB / 1.238 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005231/0.9697, allocations: 131.8 kB / 1.239 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.9697, allocations: 8 kB / 1.239 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.9697, allocations: 15.98 kB / 1.239 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.488e-06/0.9698, allocations: 8.281 kB / 1.239 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.9698, allocations: 7.938 kB / 1.239 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.9716, allocations: 1.081 MB / 1.24 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.9718, allocations: 175.9 kB / 1.24 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.909e-05/0.9719, allocations: 23.94 kB / 1.24 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003815/0.9723, allocations: 47.89 kB / 1.24 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.985e-05/0.9724, allocations: 44.5 kB / 1.24 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.9724, allocations: 27.98 kB / 1.24 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0006048/0.973, allocations: 483 kB / 1.24 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.973, allocations: 0 / 1.24 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0008939/0.9739, allocations: 322.8 kB / 1.241 GB, free: 11.71 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (limPID.I.y,limPID.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002448/0.9742, allocations: 135.1 kB / 1.241 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002469/0.9767, allocations: 1.147 MB / 1.242 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.9767, allocations: 3.938 kB / 1.242 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0006141/0.9773, allocations: 316.5 kB / 1.242 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.9784, allocations: 191.1 kB / 1.242 GB, free: 9.91 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003332/0.9818, allocations: 1.519 MB / 1.244 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007411/0.9825, allocations: 0.9743 MB / 1.245 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.9828, allocations: 71.42 kB / 1.245 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of SimCode: time 1.272e-06/0.9828, allocations: 0 / 1.245 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of Templates: time 0.01806/1.001, allocations: 10.19 MB / 1.255 GB, free: 13.11 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches