Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 104.3 kB / 19.7 MB, free: 2.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 213.2 kB / 22.99 MB, free: 4.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.553/1.553, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.363/3.363, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|kp.y|T.y|L.y|PID.k|PID.Ti|PID.Td",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|kp.y|T.y|L.y|PID.k|PID.Ti|PID.Td",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 68.41 kB / 1.155 GB, free: 25.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.4231, allocations: 176.1 MB / 1.327 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID): time 0.003157/0.4262, allocations: 1.136 MB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001849/0.4281, allocations: 1.007 MB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.4283, allocations: 4 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.4284, allocations: 23.67 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.4286, allocations: 35.66 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.4288, allocations: 95.91 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004003/0.4292, allocations: 311.4 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003691/0.4296, allocations: 138 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.4298, allocations: 119.6 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001592/0.4299, allocations: 119.5 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/0.43, allocations: 36 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.337e-05/0.4301, allocations: 39.94 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.564e-05/0.4301, allocations: 63.83 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.4303, allocations: 107.5 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005216/0.4308, allocations: 446.3 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.4308, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.195e-06/0.4308, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.4308, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009235/0.4317, allocations: 482.9 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4318, allocations: 8.031 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.544e-05/0.4318, allocations: 32.75 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.4322, allocations: 210.7 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.4322, allocations: 17.03 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.4322, allocations: 24.38 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006011/0.4328, allocations: 254.6 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.4328, allocations: 4.172 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.4329, allocations: 15.94 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.4329, allocations: 15.98 kB / 1.332 GB, free: 12.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006496/0.4335, allocations: 242.3 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.4346, allocations: 0.5977 MB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000576/0.4352, allocations: 206.7 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.4355, allocations: 114 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.4355, allocations: 8 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.4355, allocations: 34.56 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.343e-06/0.4355, allocations: 0 / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0009156/0.4365, allocations: 315.4 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.4365, allocations: 55.41 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.4366, allocations: 140.3 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.4367, allocations: 29.7 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.4368, allocations: 160.6 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.4369, allocations: 63.44 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.281e-05/0.4369, allocations: 37.7 kB / 1.334 GB, free: 10.17 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.4371, allocations: 322.8 kB / 1.334 GB, free: 9.848 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.4373, allocations: 83.94 kB / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002796/0.4376, allocations: 107.7 kB / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005385/0.4382, allocations: 191 kB / 1.334 GB, free: 9.465 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4382, allocations: 0 / 1.334 GB, free: 9.465 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006041/0.4388, allocations: 233.4 kB / 1.334 GB, free: 9.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.4388, allocations: 7.984 kB / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.4388, allocations: 0 / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.4388, allocations: 4.031 kB / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.4391, allocations: 55.91 kB / 1.335 GB, free: 9.164 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.4391, allocations: 4 kB / 1.335 GB, free: 9.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.4392, allocations: 35.8 kB / 1.335 GB, free: 9.125 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.4392, allocations: 4 kB / 1.335 GB, free: 9.121 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0001436/0.4394, allocations: 138.4 kB / 1.335 GB, free: 8.977 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.734e-05/0.4394, allocations: 11.91 kB / 1.335 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.696e-05/0.4395, allocations: 29.11 kB / 1.335 GB, free: 8.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.4395, allocations: 4 kB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.4395, allocations: 0 / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4395, allocations: 3.938 kB / 1.335 GB, free: 8.922 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.4398, allocations: 209.1 kB / 1.335 GB, free: 8.688 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4398, allocations: 3.984 kB / 1.335 GB, free: 8.684 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.44, allocations: 55.89 kB / 1.335 GB, free: 8.629 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.44, allocations: 0 / 1.335 GB, free: 8.629 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.44, allocations: 4 kB / 1.335 GB, free: 8.625 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.44, allocations: 7.938 kB / 1.335 GB, free: 8.617 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.44, allocations: 0 / 1.335 GB, free: 8.617 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006656/0.4407, allocations: 340.6 kB / 1.335 GB, free: 8.27 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.253e-05/0.4407, allocations: 11.91 kB / 1.335 GB, free: 8.258 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.4408, allocations: 8 kB / 1.335 GB, free: 8.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.4409, allocations: 23.97 kB / 1.335 GB, free: 8.227 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.441, allocations: 19.97 kB / 1.335 GB, free: 8.207 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.441, allocations: 4 kB / 1.335 GB, free: 8.203 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.308e-05/0.4411, allocations: 116.7 kB / 1.336 GB, free: 8.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4411, allocations: 0 / 1.336 GB, free: 8.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002936/0.4414, allocations: 55.78 kB / 1.336 GB, free: 8.035 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001415/0.4415, allocations: 95.25 kB / 1.336 GB, free: 7.934 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006311/0.4422, allocations: 197.9 kB / 1.336 GB, free: 7.742 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4422, allocations: 0 / 1.336 GB, free: 7.742 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.4424, allocations: 99.86 kB / 1.336 GB, free: 7.645 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.4429, allocations: 33.28 kB / 1.336 GB, free: 7.613 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009152/0.4438, allocations: 421.3 kB / 1.336 GB, free: 7.176 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.444, allocations: 133.6 kB / 1.337 GB, free: 7.031 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.553e-05/0.444, allocations: 17.42 kB / 1.337 GB, free: 7.012 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.918e-05/0.4441, allocations: 15.44 kB / 1.337 GB, free: 6.996 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.4441, allocations: 0 / 1.337 GB, free: 6.996 MB / 1.029 GB Notification: Performance of Templates: time 0.005612/0.4497, allocations: 1.984 MB / 1.338 GB, free: 5.051 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_AutoTuner_AMIGO_Validation_PID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.AutoTuner.AMIGO.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.51914263900835]