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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.486/2.486, allocations: 387.1 MB / 399.7 MB, free: 9.492 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 165 kB / 492.3 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 221.3 MB / 0.7871 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 103.2 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.369e-05/3.372e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2991, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9854/1.285, allocations: 148.8 MB / 1.358 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/1.285, allocations: 71.25 kB / 1.358 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004511/1.289, allocations: 1.417 MB / 1.359 GB, free: 34.73 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.954e-06/1.289, allocations: 0 / 1.359 GB, free: 34.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.406e-05/1.289, allocations: 3.844 kB / 1.359 GB, free: 34.73 MB / 0.8386 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.0005548/1.29, allocations: 450.5 kB / 1.36 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/1.29, allocations: 8.344 kB / 1.36 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.076e-05/1.29, allocations: 23.25 kB / 1.36 GB, free: 34.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/1.29, allocations: 207.9 kB / 1.36 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/1.29, allocations: 3.844 kB / 1.36 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/1.29, allocations: 8.234 kB / 1.36 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/1.291, allocations: 109.4 kB / 1.36 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/1.291, allocations: 0.6094 kB / 1.36 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/1.291, allocations: 3.688 kB / 1.36 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-06/1.291, allocations: 0 / 1.36 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/1.291, allocations: 105.6 kB / 1.36 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007575/1.292, allocations: 0.5136 MB / 1.361 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/1.292, allocations: 130.8 kB / 1.361 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.031e-05/1.292, allocations: 65.03 kB / 1.361 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/1.292, allocations: 0 / 1.361 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.424e-05/1.292, allocations: 38.44 kB / 1.361 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/1.292, allocations: 0 / 1.361 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002746/1.292, allocations: 138 kB / 1.361 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/1.292, allocations: 81.06 kB / 1.361 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/1.292, allocations: 151.8 kB / 1.361 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/1.292, allocations: 29.08 kB / 1.361 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.934e-05/1.292, allocations: 111.8 kB / 1.361 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.806e-05/1.292, allocations: 26.25 kB / 1.361 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/1.292, allocations: 4 kB / 1.361 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001033/1.293, allocations: 324.4 kB / 1.362 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.058e-05/1.293, allocations: 36.52 kB / 1.362 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.885e-05/1.293, allocations: 65.09 kB / 1.362 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.682e-05/1.293, allocations: 44.97 kB / 1.362 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/1.293, allocations: 0 / 1.362 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001869/1.293, allocations: 133.3 kB / 1.362 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/1.293, allocations: 3.906 kB / 1.362 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/1.293, allocations: 9.031 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/1.293, allocations: 0 / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/1.293, allocations: 49.11 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/1.293, allocations: 0 / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/1.293, allocations: 38.19 kB / 1.362 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/1.293, allocations: 3.812 kB / 1.362 GB, free: 32.85 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.302e-05/1.294, allocations: 104.6 kB / 1.362 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/1.294, allocations: 13.25 kB / 1.362 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.209e-05/1.294, allocations: 19.72 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/1.294, allocations: 2.375 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/1.294, allocations: 0 / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/1.294, allocations: 3.844 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/1.294, allocations: 234 kB / 1.362 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/1.294, allocations: 0 / 1.362 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/1.294, allocations: 45.25 kB / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/1.294, allocations: 3.812 kB / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/1.294, allocations: 0 / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/1.294, allocations: 0 / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/1.294, allocations: 5.438 kB / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002371/1.294, allocations: 319.6 kB / 1.363 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.868e-05/1.294, allocations: 90.09 kB / 1.363 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/1.294, allocations: 3.875 kB / 1.363 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/1.295, allocations: 37.31 kB / 1.363 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.165e-05/1.295, allocations: 7.719 kB / 1.363 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/1.295, allocations: 7.891 kB / 1.363 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.56e-05/1.295, allocations: 125.8 kB / 1.363 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.295, allocations: 0 / 1.363 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002393/1.295, allocations: 22.47 kB / 1.363 GB, free: 32.11 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001386/1.295, allocations: 104.4 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001801/1.295, allocations: 104.1 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.295, allocations: 3.938 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.159e-05/1.296, allocations: 55.44 kB / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/1.296, allocations: 12.64 kB / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003563/1.296, allocations: 177.2 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/1.296, allocations: 0.7162 MB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.593e-05/1.296, allocations: 30.3 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/1.297, allocations: 11.19 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of SimCode: time 9.62e-07/1.297, allocations: 0 / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of Templates: time 0.003105/1.3, allocations: 0.9506 MB / 1.365 GB, free: 31.13 MB / 0.8386 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 -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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches