Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001553/0.001553, allocations: 111.3 kB / 16.41 MB, free: 6.508 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.00176/0.001761, allocations: 191.8 kB / 17.34 MB, free: 5.758 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.455/1.455, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.637/2.637, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 64.14 kB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9066/0.9086, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.002023/0.9107, allocations: 0.7706 MB / 1.168 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.9117, allocations: 0.8312 MB / 1.169 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.651e-05/0.9118, allocations: 0 / 1.169 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.912, allocations: 63.8 kB / 1.169 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.443e-05/0.9121, allocations: 35.83 kB / 1.169 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 7.533e-05/0.9121, allocations: 19.97 kB / 1.169 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001528/0.9123, allocations: 91.73 kB / 1.169 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.9124, allocations: 16 kB / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.189e-05/0.9125, allocations: 47.83 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.9127, allocations: 87.72 kB / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.9127, allocations: 8 kB / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.673e-05/0.9128, allocations: 8 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.449e-05/0.9128, allocations: 38.34 kB / 1.169 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.9129, allocations: 43.72 kB / 1.169 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.9131, allocations: 120.1 kB / 1.169 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.9131, allocations: 0 / 1.169 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.723e-06/0.9131, allocations: 0 / 1.169 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.035e-05/0.9131, allocations: 0 / 1.169 GB, free: 1.645 MB / 0.8887 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.0008338/0.9139, allocations: 466.8 kB / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.914, allocations: 16.88 kB / 1.17 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.044e-05/0.914, allocations: 12.84 kB / 1.17 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.9143, allocations: 208.1 kB / 1.17 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.9143, allocations: 4.375 kB / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.9143, allocations: 8.375 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.9148, allocations: 151.8 kB / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.9148, allocations: 192 / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.9148, allocations: 7.938 kB / 1.17 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.9148, allocations: 0 / 1.17 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005373/0.9154, allocations: 171.8 kB / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008939/0.9163, allocations: 0.497 MB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/0.9167, allocations: 165.1 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.917, allocations: 93.73 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.917, allocations: 8 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.9171, allocations: 34.56 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.9171, allocations: 0 / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0008966/0.918, allocations: 289.3 kB / 1.172 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.918, allocations: 81.11 kB / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.9182, allocations: 157.8 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.9182, allocations: 33.64 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.9183, allocations: 104.1 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/0.9183, allocations: 27.75 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-05/0.9184, allocations: 25.7 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001694/0.9186, allocations: 326.8 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002568/0.9188, allocations: 75.92 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.9191, allocations: 97.58 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004847/0.9196, allocations: 173.9 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9196, allocations: 0 / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005571/0.9202, allocations: 209.4 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.9202, allocations: 6.5 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.9202, allocations: 3.984 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.9202, allocations: 4 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.9204, allocations: 27.97 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.9205, allocations: 4 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.9206, allocations: 35.89 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.9206, allocations: 4 kB / 1.173 GB, free: 13.92 MB / 0.9044 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.0001226/0.9208, allocations: 129.7 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.197e-05/0.9208, allocations: 15.89 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.935e-05/0.9209, allocations: 20.25 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.9209, allocations: 0 / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.9209, allocations: 0 / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.9209, allocations: 3.984 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003207/0.9212, allocations: 237.5 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.9212, allocations: 0 / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.9214, allocations: 35.95 kB / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.9214, allocations: 0 / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.9214, allocations: 0 / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.9215, allocations: 0 / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.9215, allocations: 0 / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006401/0.9221, allocations: 382.5 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.414e-05/0.9222, allocations: 89.02 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.9222, allocations: 3.984 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.9224, allocations: 31.97 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.9225, allocations: 3.984 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.9225, allocations: 4 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001152/0.9226, allocations: 123.2 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9226, allocations: 0 / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002738/0.9229, allocations: 20 kB / 1.174 GB, free: 12.73 MB / 0.9044 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.0001492/0.9231, allocations: 95.25 kB / 1.174 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005743/0.9236, allocations: 179.7 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9236, allocations: 0 / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.9239, allocations: 95.8 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.9243, allocations: 23.94 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000574/0.9249, allocations: 259 kB / 1.175 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.9253, allocations: 0.708 MB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.256e-05/0.9254, allocations: 32.44 kB / 1.175 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.817e-05/0.9254, allocations: 11.44 kB / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of SimCode: time 5.11e-07/0.9254, allocations: 0 / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of Templates: time 0.004125/0.9295, allocations: 1.217 MB / 1.176 GB, free: 10.07 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches