Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.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.MatrixGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|matGai.y.1.|matGai.y.2.|matGai.y.3.|matGai.u.1.|matGai.u.2.|matGai1.y.1.|matGai1.y.2.|matGai1.u.1.|matGai1.u.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|matGai.y.1.|matGai.y.2.|matGai.y.3.|matGai.u.1.|matGai.u.2.|matGai1.y.1.|matGai1.y.2.|matGai1.u.1.|matGai1.u.2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01032/0.01032, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.518/1.518, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.895/2.895, allocations: 462.6 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003712, allocations: 11.56 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4028, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.001137/0.404, allocations: 496.2 kB / 1.059 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.4051, allocations: 0.8313 MB / 1.06 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.991e-05/0.4052, allocations: 7.938 kB / 1.06 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.4054, allocations: 51.88 kB / 1.06 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.489e-05/0.4055, allocations: 35.88 kB / 1.06 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 7.818e-05/0.4056, allocations: 15.92 kB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.4057, allocations: 87.75 kB / 1.06 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.4059, allocations: 19.94 kB / 1.06 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.144e-05/0.406, allocations: 43.83 kB / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.4061, allocations: 71.78 kB / 1.06 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.4061, allocations: 4 kB / 1.06 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.603e-05/0.4062, allocations: 4 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.52e-05/0.4062, allocations: 35.84 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.238e-05/0.4063, allocations: 61.44 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.4065, allocations: 111.5 kB / 1.061 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4065, allocations: 0 / 1.061 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4065, allocations: 4 kB / 1.061 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.4065, allocations: 4 kB / 1.061 GB, free: 3.605 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000813/0.4073, allocations: 463.3 kB / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4074, allocations: 12.03 kB / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.4074, allocations: 12.75 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.4076, allocations: 208 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.4077, allocations: 4.359 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.942e-05/0.4077, allocations: 8.375 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.4081, allocations: 163.8 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.4081, allocations: 192 / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.4082, allocations: 7.938 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.4082, allocations: 4 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00058/0.4088, allocations: 207.8 kB / 1.062 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008557/0.4096, allocations: 0.5087 MB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004383/0.4101, allocations: 181.1 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.4104, allocations: 109.7 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.4104, allocations: 4 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.4104, allocations: 38.56 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.4104, allocations: 0 / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.000977/0.4114, allocations: 341.2 kB / 1.063 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.4115, allocations: 77.11 kB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.4116, allocations: 167.3 kB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.4117, allocations: 33.7 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.013e-05/0.4118, allocations: 100.1 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.081e-05/0.4118, allocations: 35.55 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.4118, allocations: 9.719 kB / 1.063 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.412, allocations: 326.8 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.4122, allocations: 99.86 kB / 1.064 GB, free: 300 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.4125, allocations: 109.6 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.413, allocations: 205.6 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4131, allocations: 0 / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005766/0.4136, allocations: 245.4 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.4137, allocations: 4 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.4137, allocations: 0 / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.4137, allocations: 0 / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.4139, allocations: 43.95 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.4139, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.4141, allocations: 39.81 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.4141, allocations: 7.938 kB / 1.064 GB, free: 15.63 MB / 0.8262 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 (8): * Single equations (assignments): 8 * 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.0001179/0.4142, allocations: 137.7 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.53e-05/0.4143, allocations: 7.906 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.332e-05/0.4144, allocations: 24.17 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.4144, allocations: 4 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4144, allocations: 4 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.4144, allocations: 0 / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003149/0.4147, allocations: 221.5 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4147, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001905/0.4149, allocations: 47.95 kB / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.4149, allocations: 0 / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.4149, allocations: 4 kB / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.415, allocations: 4 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.415, allocations: 160 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007081/0.4157, allocations: 422.4 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-05/0.4157, allocations: 85.47 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.4158, allocations: 4 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.416, allocations: 27.97 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/0.416, allocations: 11.98 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-06/0.416, allocations: 0 / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.398e-05/0.4161, allocations: 131.2 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4161, allocations: 0 / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000268/0.4164, allocations: 16 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (8): * Single equations (assignments): 8 * 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.0001736/0.4166, allocations: 99.25 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006204/0.4172, allocations: 219.7 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4172, allocations: 0 / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.4175, allocations: 103.9 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/0.4179, allocations: 19.98 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005511/0.4185, allocations: 282.2 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4188, allocations: 0.716 MB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.776e-05/0.4189, allocations: 23.97 kB / 1.067 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.826e-05/0.4189, allocations: 11.44 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.4189, allocations: 0 / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of Templates: time 0.003417/0.4224, allocations: 0.9778 MB / 1.068 GB, free: 11.92 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches