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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.00162/0.00162, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.511/1.511, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.048/3.048, allocations: 472.7 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 75.77 kB / 0.9121 GB, free: 33.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3985, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PID): time 0.005243/0.4038, allocations: 3.62 MB / 1.072 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003728/0.4076, allocations: 2.124 MB / 1.074 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004433/0.408, allocations: 27.94 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004335/0.4085, allocations: 174.1 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003459/0.4089, allocations: 138.6 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.41, allocations: 0.5026 MB / 1.075 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001096/0.4111, allocations: 1.249 MB / 1.076 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008235/0.4119, allocations: 0.5993 MB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004286/0.4123, allocations: 446.2 kB / 1.077 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004179/0.4128, allocations: 473.6 kB / 1.077 GB, free: 1.02 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.4129, allocations: 131.9 kB / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.4131, allocations: 144 kB / 1.078 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002091/0.4134, allocations: 263.1 kB / 1.078 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004585/0.4138, allocations: 0.5012 MB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00136/0.4152, allocations: 1.375 MB / 1.08 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.4152, allocations: 0 / 1.08 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.196e-06/0.4152, allocations: 4 kB / 1.08 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.153e-05/0.4153, allocations: 0 / 1.08 GB, free: 14.61 MB / 0.8419 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.002768/0.418, allocations: 1.371 MB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.362e-05/0.4181, allocations: 8.031 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002366/0.4183, allocations: 115.6 kB / 1.081 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008825/0.4192, allocations: 0.5947 MB / 1.082 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.411e-05/0.4193, allocations: 70.36 kB / 1.082 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.4195, allocations: 92.38 kB / 1.082 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.421, allocations: 0.8602 MB / 1.083 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.421, allocations: 4.172 kB / 1.083 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.708e-05/0.4211, allocations: 39.94 kB / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/0.4211, allocations: 28 kB / 1.083 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.4224, allocations: 0.6363 MB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/0.4268, allocations: 2.984 MB / 1.086 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/0.4285, allocations: 0.6838 MB / 1.087 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006634/0.4291, allocations: 370.6 kB / 1.087 GB, free: 6.516 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.884e-05/0.4292, allocations: 20.69 kB / 1.087 GB, free: 6.496 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008255/0.43, allocations: 347 kB / 1.088 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=68): time 6.112e-06/0.4301, allocations: 0 / 1.088 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of matching and sorting (n=68): time 0.001967/0.432, allocations: 0.8337 MB / 1.089 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.4322, allocations: 192.5 kB / 1.089 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000936/0.4331, allocations: 0.6801 MB / 1.089 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.763e-05/0.4332, allocations: 41.7 kB / 1.089 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003997/0.4336, allocations: 427.8 kB / 1.09 GB, free: 3.91 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.4338, allocations: 236.6 kB / 1.09 GB, free: 3.676 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.4341, allocations: 146.6 kB / 1.09 GB, free: 3.527 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.4343, allocations: 333.9 kB / 1.09 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006746/0.4349, allocations: 300.7 kB / 1.091 GB, free: 2.898 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008014/0.4358, allocations: 474.2 kB / 1.091 GB, free: 2.367 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.4371, allocations: 0.677 MB / 1.092 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.4371, allocations: 4 kB / 1.092 GB, free: 1.641 MB / 0.8419 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002055/0.4392, allocations: 0.8805 MB / 1.093 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.4393, allocations: 39.58 kB / 1.093 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.4393, allocations: 0 / 1.093 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.4393, allocations: 8 kB / 1.093 GB, free: 0.6953 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006405/0.4399, allocations: 168 kB / 1.093 GB, free: 0.5312 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.44, allocations: 8 kB / 1.093 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006854/0.4407, allocations: 143.1 kB / 1.093 GB, free: 392 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.4407, allocations: 31.98 kB / 1.093 GB, free: 360 kB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007637/0.4415, allocations: 403.8 kB / 1.094 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000588/0.4421, allocations: 420.7 kB / 1.094 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009048/0.443, allocations: 0.5678 MB / 1.094 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.046e-06/0.443, allocations: 0 / 1.094 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.00135/0.4444, allocations: 0.7634 MB / 1.095 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/0.4445, allocations: 37.7 kB / 1.095 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4445, allocations: 4 kB / 1.095 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.4445, allocations: 8.375 kB / 1.095 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004958/0.445, allocations: 143.8 kB / 1.095 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.445, allocations: 8 kB / 1.095 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006251/0.4456, allocations: 107.5 kB / 1.096 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-05/0.4457, allocations: 27.98 kB / 1.096 GB, free: 13.75 MB / 0.8575 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.0003063/0.446, allocations: 236 kB / 1.096 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.4462, allocations: 78.97 kB / 1.096 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.4476, allocations: 0.6516 MB / 1.096 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.4476, allocations: 8 kB / 1.096 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.4476, allocations: 7.938 kB / 1.096 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.4477, allocations: 3.984 kB / 1.097 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.4507, allocations: 1.675 MB / 1.098 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.4507, allocations: 7.938 kB / 1.098 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005383/0.4512, allocations: 123.9 kB / 1.098 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/0.4513, allocations: 7.984 kB / 1.098 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.111e-05/0.4513, allocations: 19.98 kB / 1.098 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.722e-06/0.4513, allocations: 7.938 kB / 1.098 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.4513, allocations: 4 kB / 1.098 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.4533, allocations: 1.085 MB / 1.099 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.4535, allocations: 179.9 kB / 1.1 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.512e-05/0.4536, allocations: 16 kB / 1.1 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.454, allocations: 47.95 kB / 1.1 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.4541, allocations: 44.44 kB / 1.1 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.4542, allocations: 20 kB / 1.1 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007023/0.4549, allocations: 491 kB / 1.1 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4549, allocations: 0 / 1.1 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001112/0.456, allocations: 314.8 kB / 1.1 GB, free: 8.586 MB / 0.8575 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.0003215/0.4563, allocations: 131.7 kB / 1.101 GB, free: 8.449 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002703/0.459, allocations: 1.175 MB / 1.102 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/0.4591, allocations: 8.062 kB / 1.102 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005719/0.4596, allocations: 302.9 kB / 1.102 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.4607, allocations: 186.1 kB / 1.102 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002892/0.4636, allocations: 1.501 MB / 1.104 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006622/0.4642, allocations: 0.9743 MB / 1.105 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000444/0.4647, allocations: 101.9 kB / 1.105 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.4649, allocations: 63.42 kB / 1.105 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of SimCode: time 5.41e-07/0.4649, allocations: 4 kB / 1.105 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of Templates: time 0.02035/0.4853, allocations: 9.682 MB / 1.114 GB, free: 10.46 MB / 0.8731 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/jenkins/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