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.001253/0.001253, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001328/0.001328, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.403/1.403, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.881/2.881, allocations: 461.9 MB / 0.7342 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 65.52 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3571, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.002749/0.36, allocations: 0.8351 MB / 1.053 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.3612, allocations: 0.8312 MB / 1.054 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.888e-05/0.3613, allocations: 4 kB / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002258/0.3615, allocations: 51.86 kB / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.69e-05/0.3616, allocations: 31.89 kB / 1.054 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 8.764e-05/0.3617, allocations: 19.97 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.3619, allocations: 87.7 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.362, allocations: 23.92 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.531e-05/0.3621, allocations: 35.89 kB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.3623, allocations: 83.78 kB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.3623, allocations: 4 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.295e-05/0.3624, allocations: 4 kB / 1.054 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.812e-05/0.3625, allocations: 31.91 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.961e-05/0.3625, allocations: 43.67 kB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.3627, allocations: 107.6 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3627, allocations: 4 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3627, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.759e-06/0.3627, allocations: 0 / 1.054 GB, free: 6.66 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.0009318/0.3637, allocations: 467.2 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.3637, allocations: 15.97 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.976e-05/0.3638, allocations: 12.75 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.364, allocations: 212 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.364, allocations: 384 / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.134e-05/0.3641, allocations: 8.375 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004171/0.3645, allocations: 147.9 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3645, allocations: 192 / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.3645, allocations: 11.92 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.3646, allocations: 0 / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005263/0.3651, allocations: 167.8 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.366, allocations: 0.5047 MB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004132/0.3665, allocations: 161.1 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002762/0.3667, allocations: 97.73 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.3668, allocations: 4 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.3668, allocations: 34.5 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.422e-06/0.3668, allocations: 0 / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0009253/0.3677, allocations: 281.7 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.3678, allocations: 85.05 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.368, allocations: 160.2 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.368, allocations: 29.7 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.371e-05/0.3681, allocations: 104.1 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.09e-05/0.3681, allocations: 31.55 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.3682, allocations: 21.72 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3683, allocations: 326.8 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.3686, allocations: 75.92 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.3688, allocations: 97.62 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005071/0.3694, allocations: 173.6 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.3694, allocations: 0 / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005716/0.37, allocations: 209.4 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.37, allocations: 7.938 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.37, allocations: 0 / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.37, allocations: 4 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.3702, allocations: 35.89 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.3703, allocations: 8 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.3704, allocations: 27.81 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.3704, allocations: 8 kB / 1.058 GB, free: 2.926 MB / 0.8106 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.0001071/0.3705, allocations: 132.8 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.322e-05/0.3706, allocations: 11.91 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.3706, allocations: 24.23 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3707, allocations: 0 / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3707, allocations: 0 / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3707, allocations: 4 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003071/0.371, allocations: 225.5 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.371, allocations: 0 / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.3712, allocations: 31.95 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.3712, allocations: 4 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.3712, allocations: 0 / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3712, allocations: 0 / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3712, allocations: 3.938 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006056/0.3718, allocations: 386.4 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/0.3719, allocations: 85.02 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.3719, allocations: 0 / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001939/0.3721, allocations: 27.91 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.862e-05/0.3722, allocations: 11.98 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/0.3722, allocations: 7.984 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.628e-05/0.3723, allocations: 123.2 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3723, allocations: 0 / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002761/0.3726, allocations: 16 kB / 1.059 GB, free: 1.758 MB / 0.8106 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.0001699/0.3728, allocations: 103.2 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005869/0.3734, allocations: 175.8 kB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3734, allocations: 0 / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.3737, allocations: 96.22 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.374, allocations: 17.03 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005438/0.3746, allocations: 283.9 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.3749, allocations: 0.7161 MB / 1.06 GB, free: 328 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.5e-05/0.375, allocations: 27.95 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.742e-05/0.3751, allocations: 11.44 kB / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3751, allocations: 0 / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of Templates: time 0.003558/0.3786, allocations: 0.9943 MB / 1.061 GB, free: 15.3 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