Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008338/0.008338, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001437/0.001437, allocations: 189.1 kB / 16.67 MB, free: 5.973 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.536/1.536, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.46/2.46, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 65.44 kB / 0.9509 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3498, allocations: 140.4 MB / 1.088 GB, free: 1.406 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PID): time 0.004891/0.3547, allocations: 3.616 MB / 1.092 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003841/0.3586, allocations: 2.136 MB / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005575/0.3592, allocations: 23.94 kB / 1.094 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004648/0.3597, allocations: 170.1 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003796/0.3601, allocations: 142.6 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.3613, allocations: 0.4927 MB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001203/0.3625, allocations: 1.272 MB / 1.096 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008269/0.3633, allocations: 0.5993 MB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004414/0.3638, allocations: 438.3 kB / 1.097 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004415/0.3642, allocations: 493.4 kB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.3644, allocations: 128 kB / 1.097 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.3646, allocations: 144 kB / 1.097 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.3648, allocations: 255.1 kB / 1.098 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003937/0.3652, allocations: 0.5011 MB / 1.098 GB, free: 6.969 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.3664, allocations: 1.432 MB / 1.1 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.3665, allocations: 0 / 1.1 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3665, allocations: 0 / 1.1 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.569e-05/0.3665, allocations: 4 kB / 1.1 GB, free: 5.527 MB / 0.8575 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.002453/0.3689, allocations: 1.356 MB / 1.101 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.369, allocations: 16.03 kB / 1.101 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.3692, allocations: 115.5 kB / 1.101 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009327/0.3701, allocations: 0.5986 MB / 1.102 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.3702, allocations: 70.38 kB / 1.102 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.3704, allocations: 100.3 kB / 1.102 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.3718, allocations: 0.8602 MB / 1.103 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.3719, allocations: 192 / 1.103 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.311e-05/0.3719, allocations: 43.92 kB / 1.103 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.372, allocations: 20 kB / 1.103 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.3732, allocations: 0.6324 MB / 1.103 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004332/0.3776, allocations: 2.968 MB / 1.106 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.3791, allocations: 0.6753 MB / 1.107 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006278/0.3797, allocations: 374.6 kB / 1.107 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.3798, allocations: 8.562 kB / 1.107 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006607/0.3804, allocations: 352.1 kB / 1.107 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=68): time 2.785e-06/0.3804, allocations: 0 / 1.107 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of matching and sorting (n=68): time 0.001825/0.3823, allocations: 0.8298 MB / 1.108 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.3824, allocations: 192.5 kB / 1.108 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008672/0.3833, allocations: 0.6801 MB / 1.109 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.202e-05/0.3834, allocations: 45.64 kB / 1.109 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003582/0.3837, allocations: 431.8 kB / 1.11 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.3839, allocations: 232.6 kB / 1.11 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000227/0.3842, allocations: 146.6 kB / 1.11 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3843, allocations: 337.9 kB / 1.11 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006661/0.385, allocations: 292.7 kB / 1.111 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000794/0.3858, allocations: 482.2 kB / 1.111 GB, free: 9.316 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.387, allocations: 0.677 MB / 1.112 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.387, allocations: 0 / 1.112 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00173/0.3888, allocations: 0.8847 MB / 1.113 GB, free: 7.695 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.799e-05/0.3888, allocations: 37.7 kB / 1.113 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.3888, allocations: 4.094 kB / 1.113 GB, free: 7.648 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.3889, allocations: 7.938 kB / 1.113 GB, free: 7.641 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/0.3895, allocations: 163.7 kB / 1.113 GB, free: 7.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.3895, allocations: 11.98 kB / 1.113 GB, free: 7.469 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006485/0.3902, allocations: 143 kB / 1.113 GB, free: 7.328 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-05/0.3903, allocations: 35.98 kB / 1.113 GB, free: 7.293 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006461/0.3909, allocations: 394 kB / 1.113 GB, free: 6.906 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005449/0.3915, allocations: 415.2 kB / 1.114 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008155/0.3923, allocations: 0.5756 MB / 1.114 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.204e-06/0.3923, allocations: 3.938 kB / 1.114 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001196/0.3935, allocations: 0.7556 MB / 1.115 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.3936, allocations: 41.69 kB / 1.115 GB, free: 4.992 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3936, allocations: 4 kB / 1.115 GB, free: 4.988 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.506e-06/0.3936, allocations: 8 kB / 1.115 GB, free: 4.98 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.3941, allocations: 131.8 kB / 1.115 GB, free: 4.852 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.3941, allocations: 11.94 kB / 1.115 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005515/0.3946, allocations: 111.8 kB / 1.115 GB, free: 4.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.3947, allocations: 28 kB / 1.115 GB, free: 4.703 MB / 0.8731 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.0002608/0.395, allocations: 232.1 kB / 1.116 GB, free: 4.469 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.3951, allocations: 78.97 kB / 1.116 GB, free: 4.391 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/0.3964, allocations: 0.6592 MB / 1.116 GB, free: 3.719 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3965, allocations: 8 kB / 1.116 GB, free: 3.711 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3965, allocations: 0 / 1.116 GB, free: 3.711 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.3965, allocations: 7.984 kB / 1.116 GB, free: 3.703 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.3989, allocations: 1.659 MB / 1.118 GB, free: 1.957 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.3989, allocations: 11.88 kB / 1.118 GB, free: 1.945 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005248/0.3994, allocations: 136.1 kB / 1.118 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-06/0.3995, allocations: 11.98 kB / 1.118 GB, free: 1.801 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.926e-05/0.3995, allocations: 16 kB / 1.118 GB, free: 1.785 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-06/0.3995, allocations: 4 kB / 1.118 GB, free: 1.781 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3995, allocations: 4 kB / 1.118 GB, free: 1.777 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.4013, allocations: 1.085 MB / 1.119 GB, free: 0.6484 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.4015, allocations: 171.9 kB / 1.119 GB, free: 472 kB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.4016, allocations: 23.98 kB / 1.119 GB, free: 448 kB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003695/0.4019, allocations: 47.95 kB / 1.119 GB, free: 400 kB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.924e-05/0.402, allocations: 40.45 kB / 1.119 GB, free: 360 kB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.833e-05/0.4021, allocations: 27.98 kB / 1.119 GB, free: 332 kB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005563/0.4026, allocations: 483 kB / 1.12 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4026, allocations: 0 / 1.12 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0008807/0.4035, allocations: 322.8 kB / 1.12 GB, free: 15.54 MB / 0.8887 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.0002513/0.4038, allocations: 139.1 kB / 1.12 GB, free: 15.4 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00208/0.4059, allocations: 1.144 MB / 1.121 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4059, allocations: 0 / 1.121 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005507/0.4064, allocations: 315.5 kB / 1.122 GB, free: 13.92 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009371/0.4074, allocations: 184.6 kB / 1.122 GB, free: 13.74 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.41, allocations: 1.482 MB / 1.123 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007286/0.4108, allocations: 0.9782 MB / 1.124 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0005988/0.4114, allocations: 97.91 kB / 1.124 GB, free: 11.1 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.4116, allocations: 63.42 kB / 1.124 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of SimCode: time 7.21e-07/0.4116, allocations: 0 / 1.124 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of Templates: time 0.01897/0.4306, allocations: 9.82 MB / 1.134 GB, free: 1.316 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches