Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.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_11_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_11_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.001812/0.001812, allocations: 109.5 kB / 16.27 MB, free: 6.004 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.001864/0.001864, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.537/1.537, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.774/2.774, allocations: 469.8 MB / 0.743 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 73.86 kB / 0.9092 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3571, allocations: 159.1 MB / 1.065 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.002252/0.3594, allocations: 0.7625 MB / 1.065 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00115/0.3605, allocations: 0.8311 MB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.911e-05/0.3606, allocations: 0 / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.3608, allocations: 63.8 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.382e-05/0.3609, allocations: 35.83 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 6.885e-05/0.361, allocations: 19.97 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.3611, allocations: 87.81 kB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.3613, allocations: 23.92 kB / 1.066 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.708e-05/0.3614, allocations: 43.83 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.3615, allocations: 83.78 kB / 1.067 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.3616, allocations: 8 kB / 1.067 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 2.078e-05/0.3616, allocations: 8 kB / 1.067 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.28e-05/0.3617, allocations: 35.91 kB / 1.067 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.996e-05/0.3618, allocations: 43.72 kB / 1.067 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.3619, allocations: 115.6 kB / 1.067 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3619, allocations: 4 kB / 1.067 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3619, allocations: 0 / 1.067 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.3619, allocations: 0 / 1.067 GB, free: 12.55 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008482/0.3628, allocations: 463.2 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3628, allocations: 8.031 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.507e-05/0.3629, allocations: 12.75 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.3632, allocations: 209.3 kB / 1.067 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.3633, allocations: 12.25 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.3633, allocations: 8.375 kB / 1.067 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.3638, allocations: 147.9 kB / 1.068 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.3638, allocations: 192 / 1.068 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.3638, allocations: 7.938 kB / 1.068 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.3638, allocations: 4 kB / 1.068 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005512/0.3644, allocations: 167.8 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009421/0.3653, allocations: 0.5008 MB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.3658, allocations: 169.1 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.3661, allocations: 101.7 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.3661, allocations: 0 / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.3661, allocations: 34.56 kB / 1.069 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.3661, allocations: 0 / 1.069 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.000986/0.3671, allocations: 285.3 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.3672, allocations: 81.11 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.3674, allocations: 164.4 kB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.3674, allocations: 25.7 kB / 1.069 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.3676, allocations: 108 kB / 1.069 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.3676, allocations: 19.66 kB / 1.069 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.3677, allocations: 33.7 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3678, allocations: 326.8 kB / 1.07 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.3681, allocations: 75.92 kB / 1.07 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.3684, allocations: 93.58 kB / 1.07 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005231/0.3689, allocations: 169.6 kB / 1.07 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3689, allocations: 0 / 1.07 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005858/0.3695, allocations: 209.8 kB / 1.07 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.3695, allocations: 4 kB / 1.07 GB, free: 8.906 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.3695, allocations: 4 kB / 1.07 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.3696, allocations: 3.984 kB / 1.07 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.3698, allocations: 35.91 kB / 1.07 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3698, allocations: 0 / 1.07 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.3699, allocations: 35.8 kB / 1.07 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.37, allocations: 8 kB / 1.07 GB, free: 8.82 MB / 0.8419 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.0001199/0.3701, allocations: 129.8 kB / 1.07 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.018e-05/0.3701, allocations: 7.906 kB / 1.07 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.946e-05/0.3702, allocations: 24.19 kB / 1.07 GB, free: 8.645 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.3702, allocations: 0 / 1.07 GB, free: 8.645 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3702, allocations: 0 / 1.07 GB, free: 8.645 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3702, allocations: 11.98 kB / 1.07 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.3706, allocations: 225.5 kB / 1.071 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3706, allocations: 0 / 1.071 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.3708, allocations: 31.97 kB / 1.071 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3708, allocations: 3.984 kB / 1.071 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.3708, allocations: 0 / 1.071 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.3708, allocations: 4 kB / 1.071 GB, free: 8.324 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3708, allocations: 0 / 1.071 GB, free: 8.324 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008168/0.3716, allocations: 382.4 kB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.407e-05/0.3717, allocations: 85.02 kB / 1.071 GB, free: 7.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.3717, allocations: 0 / 1.071 GB, free: 7.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.3719, allocations: 35.95 kB / 1.071 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.045e-05/0.372, allocations: 7.984 kB / 1.071 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.372, allocations: 3.938 kB / 1.071 GB, free: 7.785 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000106/0.3721, allocations: 126.8 kB / 1.071 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3721, allocations: 0 / 1.071 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002668/0.3724, allocations: 20 kB / 1.071 GB, free: 7.645 MB / 0.8419 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.0001502/0.3725, allocations: 99.25 kB / 1.071 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006117/0.3732, allocations: 183.7 kB / 1.071 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3732, allocations: 0 / 1.071 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003406/0.3735, allocations: 87.86 kB / 1.072 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.3739, allocations: 20 kB / 1.072 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005833/0.3745, allocations: 294.4 kB / 1.072 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005711/0.375, allocations: 0.708 MB / 1.073 GB, free: 6.199 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.183e-05/0.3751, allocations: 11.44 kB / 1.073 GB, free: 6.188 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.3751, allocations: 3.938 kB / 1.073 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of Templates: time 0.003559/0.3787, allocations: 1.489 MB / 1.074 GB, free: 4.699 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches