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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001048/0.001048, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001318/0.001318, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.206/3.206, allocations: 462.6 MB / 0.736 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 11.28 kB / 0.9022 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3894, allocations: 159.6 MB / 1.058 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.001048/0.3905, allocations: 480.5 kB / 1.058 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009605/0.3915, allocations: 0.8274 MB / 1.059 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.063e-05/0.3916, allocations: 4 kB / 1.059 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.3917, allocations: 55.78 kB / 1.059 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.317e-05/0.3918, allocations: 31.91 kB / 1.059 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 6.711e-05/0.3919, allocations: 15.98 kB / 1.059 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.392, allocations: 83.67 kB / 1.059 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.3921, allocations: 12 kB / 1.059 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.56e-05/0.3922, allocations: 39.83 kB / 1.06 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.3924, allocations: 71.84 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.3924, allocations: 7.938 kB / 1.06 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.3924, allocations: 4 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.173e-05/0.3925, allocations: 27.97 kB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.515e-05/0.3925, allocations: 37.64 kB / 1.06 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.894e-05/0.3926, allocations: 83.81 kB / 1.06 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3926, allocations: 0 / 1.06 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3926, allocations: 0 / 1.06 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.52e-05/0.3927, allocations: 0 / 1.06 GB, free: 3.57 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.0007695/0.3934, allocations: 471 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3935, allocations: 12.03 kB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.3935, allocations: 11.81 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.3937, allocations: 204.4 kB / 1.06 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.3938, allocations: 7.984 kB / 1.06 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.3938, allocations: 7.953 kB / 1.06 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.3942, allocations: 159.3 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3942, allocations: 3.984 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.3942, allocations: 7.938 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.361e-06/0.3942, allocations: 4 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004829/0.3947, allocations: 195.8 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007955/0.3955, allocations: 0.5204 MB / 1.061 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.3959, allocations: 173.1 kB / 1.061 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.3962, allocations: 113.7 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.3962, allocations: 0 / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.3962, allocations: 42.5 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.3962, allocations: 0 / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0008703/0.3971, allocations: 337.2 kB / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.3972, allocations: 81.11 kB / 1.062 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.3973, allocations: 171.5 kB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3974, allocations: 25.7 kB / 1.062 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.409e-05/0.3975, allocations: 96.14 kB / 1.062 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.121e-05/0.3975, allocations: 31.55 kB / 1.062 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.003e-05/0.3975, allocations: 4 kB / 1.062 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3977, allocations: 326.8 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.3979, allocations: 95.92 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.3982, allocations: 105.6 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.3984, allocations: 99.92 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3984, allocations: 0 / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005591/0.399, allocations: 237.8 kB / 1.063 GB, free: 15.84 MB / 0.8263 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.399, allocations: 11.94 kB / 1.063 GB, free: 15.82 MB / 0.8263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.399, allocations: 0 / 1.063 GB, free: 15.82 MB / 0.8263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.399, allocations: 0 / 1.063 GB, free: 15.82 MB / 0.8263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.3993, allocations: 47.95 kB / 1.063 GB, free: 15.78 MB / 0.8263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3993, allocations: 0 / 1.063 GB, free: 15.78 MB / 0.8263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3994, allocations: 35.91 kB / 1.063 GB, free: 15.74 MB / 0.8263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.3994, allocations: 4 kB / 1.063 GB, free: 15.74 MB / 0.8263 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001315/0.3996, allocations: 133.7 kB / 1.063 GB, free: 15.6 MB / 0.8263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.161e-05/0.3996, allocations: 19.84 kB / 1.063 GB, free: 15.58 MB / 0.8263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.943e-05/0.3997, allocations: 20.23 kB / 1.063 GB, free: 15.55 MB / 0.8263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.3997, allocations: 0 / 1.063 GB, free: 15.55 MB / 0.8263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.3997, allocations: 0 / 1.063 GB, free: 15.55 MB / 0.8263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3997, allocations: 8 kB / 1.063 GB, free: 15.55 MB / 0.8263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003272/0.4001, allocations: 221.5 kB / 1.064 GB, free: 15.28 MB / 0.8263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4001, allocations: 0 / 1.064 GB, free: 15.28 MB / 0.8263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.4002, allocations: 39.95 kB / 1.064 GB, free: 15.24 MB / 0.8263 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4003, allocations: 4 kB / 1.064 GB, free: 15.24 MB / 0.8263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.4003, allocations: 4 kB / 1.064 GB, free: 15.23 MB / 0.8263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.4003, allocations: 0 / 1.064 GB, free: 15.23 MB / 0.8263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4003, allocations: 4 kB / 1.064 GB, free: 15.23 MB / 0.8263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000628/0.4009, allocations: 418.4 kB / 1.064 GB, free: 14.8 MB / 0.8263 GB Notification: Performance of postOpt removeConstants (simulation): time 5.693e-05/0.401, allocations: 89.02 kB / 1.064 GB, free: 14.7 MB / 0.8263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.401, allocations: 4 kB / 1.064 GB, free: 14.7 MB / 0.8263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.4012, allocations: 27.97 kB / 1.064 GB, free: 14.67 MB / 0.8263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.4013, allocations: 7.984 kB / 1.064 GB, free: 14.66 MB / 0.8263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.4013, allocations: 11.94 kB / 1.064 GB, free: 14.65 MB / 0.8263 GB Notification: Performance of sorting global known variables: time 8.961e-05/0.4014, allocations: 123.4 kB / 1.064 GB, free: 14.53 MB / 0.8263 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4014, allocations: 4 kB / 1.064 GB, free: 14.53 MB / 0.8263 GB Notification: Performance of remove unused functions: time 0.0002669/0.4017, allocations: 20 kB / 1.064 GB, free: 14.51 MB / 0.8263 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 (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.0001894/0.4019, allocations: 99.25 kB / 1.064 GB, free: 14.4 MB / 0.8263 GB Notification: Performance of simCode: created initialization part: time 0.0005302/0.4024, allocations: 203.8 kB / 1.065 GB, free: 14.2 MB / 0.8263 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4024, allocations: 4 kB / 1.065 GB, free: 14.2 MB / 0.8263 GB Notification: Performance of simCode: created simulation system equations: time 0.0002545/0.4027, allocations: 107.8 kB / 1.065 GB, free: 14.09 MB / 0.8263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/0.4031, allocations: 17.5 kB / 1.065 GB, free: 14.08 MB / 0.8263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005362/0.4036, allocations: 284.8 kB / 1.065 GB, free: 13.77 MB / 0.8263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.4041, allocations: 0.7043 MB / 1.066 GB, free: 13.04 MB / 0.8263 GB Notification: Performance of simCode: alias equations: time 8.879e-05/0.4042, allocations: 27.95 kB / 1.066 GB, free: 13.01 MB / 0.8263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.166e-05/0.4042, allocations: 11.44 kB / 1.066 GB, free: 13 MB / 0.8263 GB Notification: Performance of SimCode: time 2.7e-07/0.4042, allocations: 3.938 kB / 1.066 GB, free: 13 MB / 0.8263 GB Notification: Performance of Templates: time 0.003609/0.4078, allocations: 0.9374 MB / 1.067 GB, free: 12.07 MB / 0.8263 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