Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00211/0.00211, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.00198/0.00198, allocations: 191 kB / 17.29 MB, free: 5.516 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 / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 66.2 kB / 0.814 GB, free: 32.54 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3383, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain): time 0.002175/0.3406, allocations: 0.7729 MB / 0.9519 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009857/0.3416, allocations: 0.8294 MB / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.423e-05/0.3417, allocations: 0 / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002206/0.3419, allocations: 67.78 kB / 0.9528 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.795e-05/0.342, allocations: 27.84 kB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 8.506e-05/0.342, allocations: 19.97 kB / 0.9528 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.3422, allocations: 95.67 kB / 0.9529 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.3424, allocations: 23.98 kB / 0.9529 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.194e-05/0.3425, allocations: 39.84 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.3427, allocations: 87.77 kB / 0.953 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.3427, allocations: 8 kB / 0.9531 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.652e-05/0.3427, allocations: 4 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.348e-05/0.3428, allocations: 35.91 kB / 0.9531 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.094e-05/0.3429, allocations: 43.73 kB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.343, allocations: 123.5 kB / 0.9533 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3431, allocations: 0 / 0.9533 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.785e-06/0.3431, allocations: 0 / 0.9533 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.3431, allocations: 4 kB / 0.9533 GB, free: 5.844 MB / 0.7325 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.0008367/0.3439, allocations: 462.9 kB / 0.9537 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.344, allocations: 16.03 kB / 0.9537 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.344, allocations: 12.75 kB / 0.9537 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.3443, allocations: 207.5 kB / 0.9539 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.3443, allocations: 384 / 0.9539 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.3443, allocations: 8.375 kB / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003939/0.3447, allocations: 151.7 kB / 0.9541 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3448, allocations: 8.188 kB / 0.9541 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.3448, allocations: 7.938 kB / 0.9541 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3448, allocations: 0 / 0.9541 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.3453, allocations: 163.8 kB / 0.9542 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008558/0.3462, allocations: 0.5008 MB / 0.9547 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003718/0.3465, allocations: 165.1 kB / 0.9549 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.3468, allocations: 93.73 kB / 0.955 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.3468, allocations: 3.938 kB / 0.955 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.3469, allocations: 42.48 kB / 0.955 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.3469, allocations: 0 / 0.955 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0008138/0.3477, allocations: 285.2 kB / 0.9553 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.3477, allocations: 77.11 kB / 0.9554 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.3479, allocations: 166.2 kB / 0.9555 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.3479, allocations: 25.7 kB / 0.9556 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.604e-05/0.348, allocations: 100.1 kB / 0.9557 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.348, allocations: 31.55 kB / 0.9557 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/0.3481, allocations: 17.72 kB / 0.9557 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.3482, allocations: 330.8 kB / 0.956 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.3485, allocations: 79.92 kB / 0.9561 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.3487, allocations: 89.64 kB / 0.9562 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004213/0.3491, allocations: 173.5 kB / 0.9563 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3491, allocations: 4 kB / 0.9563 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004865/0.3496, allocations: 205.4 kB / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3496, allocations: 6.188 kB / 0.9565 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/0.3497, allocations: 0 / 0.9565 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.3497, allocations: 4 kB / 0.9565 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002011/0.3499, allocations: 39.89 kB / 0.9566 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3499, allocations: 0 / 0.9566 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.35, allocations: 31.89 kB / 0.9566 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.3501, allocations: 7.938 kB / 0.9566 GB, free: 2.125 MB / 0.7325 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.0001102/0.3502, allocations: 125.8 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/0.3502, allocations: 15.8 kB / 0.9568 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.689e-05/0.3503, allocations: 24.72 kB / 0.9568 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3503, allocations: 4 kB / 0.9568 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3503, allocations: 0 / 0.9568 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3503, allocations: 0 / 0.9568 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.3506, allocations: 225.5 kB / 0.957 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3506, allocations: 7.984 kB / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.3508, allocations: 31.95 kB / 0.957 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3508, allocations: 7.938 kB / 0.957 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.3508, allocations: 0 / 0.957 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3508, allocations: 4 kB / 0.9571 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3508, allocations: 0 / 0.9571 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006107/0.3514, allocations: 382.5 kB / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.86e-05/0.3515, allocations: 88.92 kB / 0.9575 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.3516, allocations: 0 / 0.9575 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.3517, allocations: 23.95 kB / 0.9575 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.3518, allocations: 11.98 kB / 0.9575 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.3518, allocations: 4 kB / 0.9575 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.541e-05/0.3519, allocations: 129.5 kB / 0.9577 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3519, allocations: 0 / 0.9577 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002824/0.3522, allocations: 16 kB / 0.9577 GB, free: 0.9531 MB / 0.7325 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.0001934/0.3524, allocations: 111.2 kB / 0.9578 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005254/0.353, allocations: 167.8 kB / 0.9579 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.353, allocations: 0 / 0.9579 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.3532, allocations: 99.84 kB / 0.958 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.3536, allocations: 13.03 kB / 0.9581 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005605/0.3542, allocations: 263.1 kB / 0.9583 GB, free: 280 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.3545, allocations: 0.7117 MB / 0.959 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.976e-05/0.3546, allocations: 31.89 kB / 0.959 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.5e-05/0.3546, allocations: 15.44 kB / 0.959 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of SimCode: time 2.01e-07/0.3546, allocations: 0 / 0.959 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of Templates: time 0.003814/0.3584, allocations: 1.197 MB / 0.9602 GB, free: 14.3 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches