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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001982/0.001982, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002391/0.002391, allocations: 190.9 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.291/3.291, allocations: 0.4893 GB / 0.7884 GB, free: 33.07 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=2500,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=2500,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") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.42 kB / 1.145 GB, free: 30.73 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3656, allocations: 174.9 MB / 1.316 GB, free: 9.668 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.002343/0.368, allocations: 0.7843 MB / 1.317 GB, free: 8.883 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001079/0.3691, allocations: 0.8352 MB / 1.318 GB, free: 8.035 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.502e-05/0.3691, allocations: 3.938 kB / 1.318 GB, free: 8.031 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.3694, allocations: 59.8 kB / 1.318 GB, free: 7.973 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 6.184e-05/0.3694, allocations: 31.83 kB / 1.318 GB, free: 7.941 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 7.883e-05/0.3695, allocations: 23.97 kB / 1.318 GB, free: 7.918 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001451/0.3696, allocations: 87.75 kB / 1.318 GB, free: 7.832 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.3698, allocations: 15.98 kB / 1.318 GB, free: 7.816 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.097e-05/0.3699, allocations: 47.83 kB / 1.318 GB, free: 7.77 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.37, allocations: 87.72 kB / 1.318 GB, free: 7.684 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.37, allocations: 8 kB / 1.318 GB, free: 7.676 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 2.537e-05/0.3701, allocations: 8 kB / 1.318 GB, free: 7.668 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 7.242e-05/0.3701, allocations: 39.89 kB / 1.318 GB, free: 7.629 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 5.675e-05/0.3702, allocations: 39.73 kB / 1.318 GB, free: 7.59 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.3704, allocations: 127.4 kB / 1.318 GB, free: 7.465 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3704, allocations: 4 kB / 1.318 GB, free: 7.461 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.743e-06/0.3704, allocations: 0 / 1.318 GB, free: 7.461 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 5.881e-06/0.3704, allocations: 0 / 1.318 GB, free: 7.461 MB / 1.014 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.0007941/0.3712, allocations: 385.7 kB / 1.319 GB, free: 7.051 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3712, allocations: 12.02 kB / 1.319 GB, free: 7.039 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.012e-05/0.3713, allocations: 16.89 kB / 1.319 GB, free: 7.023 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.3715, allocations: 148 kB / 1.319 GB, free: 6.855 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.3715, allocations: 4.375 kB / 1.319 GB, free: 6.852 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.3715, allocations: 4.375 kB / 1.319 GB, free: 6.848 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004708/0.372, allocations: 147.9 kB / 1.319 GB, free: 6.691 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.372, allocations: 192 / 1.319 GB, free: 6.691 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.372, allocations: 7.938 kB / 1.319 GB, free: 6.684 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.372, allocations: 4 kB / 1.319 GB, free: 6.68 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005195/0.3725, allocations: 171.8 kB / 1.319 GB, free: 6.512 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.3734, allocations: 479.9 kB / 1.32 GB, free: 5.996 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003992/0.3738, allocations: 157.1 kB / 1.32 GB, free: 5.824 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002623/0.3741, allocations: 93.73 kB / 1.32 GB, free: 5.727 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.3741, allocations: 3.984 kB / 1.32 GB, free: 5.723 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.3741, allocations: 42.5 kB / 1.32 GB, free: 5.672 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.3741, allocations: 0 / 1.32 GB, free: 5.672 MB / 1.014 GB
Notification: Performance of matching and sorting (n=8): time 0.0008649/0.375, allocations: 289.4 kB / 1.32 GB, free: 5.383 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.375, allocations: 77.11 kB / 1.32 GB, free: 5.289 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.3752, allocations: 167.5 kB / 1.32 GB, free: 5.117 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.3752, allocations: 29.7 kB / 1.32 GB, free: 5.082 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.3753, allocations: 104.1 kB / 1.32 GB, free: 4.977 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.3753, allocations: 23.75 kB / 1.32 GB, free: 4.953 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.3754, allocations: 25.66 kB / 1.32 GB, free: 4.922 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001508/0.3755, allocations: 330.8 kB / 1.321 GB, free: 4.59 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.3758, allocations: 79.86 kB / 1.321 GB, free: 4.512 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.376, allocations: 93.62 kB / 1.321 GB, free: 4.414 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004493/0.3764, allocations: 169.6 kB / 1.321 GB, free: 4.242 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3764, allocations: 4 kB / 1.321 GB, free: 4.238 MB / 1.014 GB
Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005389/0.377, allocations: 205.4 kB / 1.321 GB, free: 4.031 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.377, allocations: 8 kB / 1.321 GB, free: 4.023 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.377, allocations: 0 / 1.321 GB, free: 4.023 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.377, allocations: 0 / 1.321 GB, free: 4.023 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.3772, allocations: 39.95 kB / 1.321 GB, free: 3.984 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3772, allocations: 0 / 1.321 GB, free: 3.984 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.3774, allocations: 27.95 kB / 1.321 GB, free: 3.957 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.3774, allocations: 0 / 1.321 GB, free: 3.957 MB / 1.014 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.0001139/0.3775, allocations: 139.5 kB / 1.322 GB, free: 3.812 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.416e-05/0.3776, allocations: 11.91 kB / 1.322 GB, free: 3.801 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.255e-05/0.3776, allocations: 16.34 kB / 1.322 GB, free: 3.773 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3776, allocations: 8 kB / 1.322 GB, free: 3.766 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3776, allocations: 0 / 1.322 GB, free: 3.766 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3776, allocations: 4 kB / 1.322 GB, free: 3.762 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000285/0.3779, allocations: 200.5 kB / 1.322 GB, free: 3.523 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3779, allocations: 4 kB / 1.322 GB, free: 3.52 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.3781, allocations: 31.95 kB / 1.322 GB, free: 3.488 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3781, allocations: 4 kB / 1.322 GB, free: 3.484 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.3781, allocations: 0 / 1.322 GB, free: 3.484 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3781, allocations: 0 / 1.322 GB, free: 3.484 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3781, allocations: 4 kB / 1.322 GB, free: 3.48 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006121/0.3787, allocations: 386.6 kB / 1.322 GB, free: 3.086 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.077e-05/0.3787, allocations: 15.91 kB / 1.322 GB, free: 3.07 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.3788, allocations: 0 / 1.322 GB, free: 3.07 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.3789, allocations: 23.95 kB / 1.322 GB, free: 3.047 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.379, allocations: 12.31 kB / 1.322 GB, free: 3.035 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.379, allocations: 4 kB / 1.322 GB, free: 3.031 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 9.737e-05/0.3791, allocations: 120.1 kB / 1.322 GB, free: 2.914 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.3791, allocations: 3.938 kB / 1.322 GB, free: 2.91 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002604/0.3794, allocations: 16 kB / 1.322 GB, free: 2.895 MB / 1.014 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.0001332/0.3795, allocations: 107.7 kB / 1.322 GB, free: 2.781 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0005353/0.38, allocations: 175.8 kB / 1.323 GB, free: 2.609 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.38, allocations: 0 / 1.323 GB, free: 2.609 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.000261/0.3803, allocations: 95.86 kB / 1.323 GB, free: 2.516 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.3806, allocations: 15.98 kB / 1.323 GB, free: 2.5 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005587/0.3812, allocations: 259 kB / 1.323 GB, free: 2.215 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.3816, allocations: 0.7158 MB / 1.324 GB, free: 1.473 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 7.681e-05/0.3816, allocations: 23.97 kB / 1.324 GB, free: 1.449 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.598e-05/0.3817, allocations: 11.44 kB / 1.324 GB, free: 1.438 MB / 1.014 GB
Notification: Performance of SimCode: time 3.31e-07/0.3817, allocations: 0 / 1.324 GB, free: 1.438 MB / 1.014 GB
Notification: Performance of Templates: time 0.004077/0.3858, allocations: 1.252 MB / 1.325 GB, free: 200 kB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.makefile [Timeout 300]
(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=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe 2>&1) [Timeout 800]
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) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.177932159975171]