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.007878/0.007878, allocations: 101.6 kB / 15.73 MB, free: 6.031 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.001414/0.001415, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.869/2.869, allocations: 461.8 MB / 0.7347 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001259, allocations: 75.89 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3911, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.002306/0.3935, allocations: 0.7684 MB / 1.209 GB, free: 8.895 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009513/0.3944, allocations: 0.8235 MB / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.502e-05/0.3945, allocations: 3.938 kB / 1.209 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.3947, allocations: 55.78 kB / 1.209 GB, free: 8 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.49e-05/0.3948, allocations: 39.78 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 8.252e-05/0.3949, allocations: 23.97 kB / 1.209 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.3951, allocations: 87.75 kB / 1.21 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.3953, allocations: 31.95 kB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.402e-05/0.3953, allocations: 39.84 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.3955, allocations: 79.78 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.3955, allocations: 12 kB / 1.21 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.77e-05/0.3956, allocations: 8 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.944e-05/0.3957, allocations: 39.89 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.467e-05/0.3957, allocations: 43.73 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.3959, allocations: 115.5 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3959, allocations: 0 / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.475e-06/0.3959, allocations: 0 / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.3959, allocations: 3.984 kB / 1.21 GB, free: 7.484 MB / 0.9669 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.0008107/0.3967, allocations: 462.8 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3968, allocations: 12.62 kB / 1.21 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.114e-05/0.3968, allocations: 12.83 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.397, allocations: 204.1 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.3971, allocations: 384 / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.3971, allocations: 4.375 kB / 1.211 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.3975, allocations: 159.8 kB / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3975, allocations: 192 / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.3975, allocations: 7.938 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3976, allocations: 0 / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005148/0.3981, allocations: 171.8 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008247/0.3989, allocations: 0.5046 MB / 1.211 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.3993, allocations: 161.1 kB / 1.212 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.3996, allocations: 89.73 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.3996, allocations: 0 / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.3997, allocations: 46.5 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.3997, allocations: 0 / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0009705/0.4006, allocations: 289.3 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.4007, allocations: 77.11 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.4009, allocations: 160.4 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.4009, allocations: 25.7 kB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.963e-05/0.401, allocations: 112 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.4011, allocations: 27.64 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.058e-05/0.4011, allocations: 17.72 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4013, allocations: 330.7 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000262/0.4016, allocations: 79.92 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.4019, allocations: 97.64 kB / 1.213 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004883/0.4024, allocations: 173.5 kB / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4024, allocations: 3.938 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005397/0.4029, allocations: 213.3 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.403, allocations: 6.031 kB / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.403, allocations: 0 / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.403, allocations: 0 / 1.213 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.4032, allocations: 39.89 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.4032, allocations: 4.141 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.4034, allocations: 27.91 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.4034, allocations: 4 kB / 1.213 GB, free: 3.758 MB / 0.9669 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.0001186/0.4035, allocations: 134.4 kB / 1.213 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.4036, allocations: 7.906 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.996e-05/0.4036, allocations: 20.23 kB / 1.213 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.4036, allocations: 4 kB / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4036, allocations: 0 / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4036, allocations: 0 / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.4039, allocations: 229.4 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.404, allocations: 4 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.4041, allocations: 39.95 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.4041, allocations: 0 / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.4042, allocations: 7.938 kB / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4042, allocations: 0 / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4042, allocations: 0 / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006331/0.4048, allocations: 378.5 kB / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.111e-05/0.4049, allocations: 89.47 kB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.4049, allocations: 4 kB / 1.214 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.4051, allocations: 19.97 kB / 1.214 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.4052, allocations: 11.98 kB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.4052, allocations: 8 kB / 1.214 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001005/0.4053, allocations: 120.8 kB / 1.214 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4053, allocations: 0 / 1.214 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002772/0.4056, allocations: 19.91 kB / 1.214 GB, free: 2.586 MB / 0.9669 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.0001784/0.4058, allocations: 111.2 kB / 1.214 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005823/0.4064, allocations: 179.7 kB / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4064, allocations: 0 / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.4066, allocations: 91.86 kB / 1.215 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.407, allocations: 15.98 kB / 1.215 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005524/0.4076, allocations: 264.4 kB / 1.215 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.4079, allocations: 0.708 MB / 1.216 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.254e-05/0.408, allocations: 31.84 kB / 1.216 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.655e-05/0.408, allocations: 15.38 kB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.408, allocations: 0 / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of Templates: time 0.003799/0.4118, allocations: 1.238 MB / 1.217 GB, free: 15.88 MB / 0.9825 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