Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001805/0.001805, allocations: 101.7 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002176/0.002176, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.627/1.627, allocations: 230.6 MB / 252.8 MB, free: 9.121 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.259/3.259, allocations: 0.49 GB / 0.7916 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 66.72 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.3705, allocations: 176.1 MB / 1.321 GB, free: 3.27 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.002091/0.3726, allocations: 0.7784 MB / 1.322 GB, free: 2.496 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.3738, allocations: 0.863 MB / 1.322 GB, free: 1.621 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.995e-05/0.3738, allocations: 4 kB / 1.322 GB, free: 1.617 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.3741, allocations: 55.8 kB / 1.323 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.974e-05/0.3741, allocations: 35.83 kB / 1.323 GB, free: 1.527 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 8.389e-05/0.3742, allocations: 27.97 kB / 1.323 GB, free: 1.5 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.3744, allocations: 83.75 kB / 1.323 GB, free: 1.418 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.3745, allocations: 23.92 kB / 1.323 GB, free: 1.395 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.489e-05/0.3746, allocations: 39.89 kB / 1.323 GB, free: 1.355 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.3748, allocations: 87.77 kB / 1.323 GB, free: 1.27 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.3748, allocations: 8 kB / 1.323 GB, free: 1.262 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.416e-05/0.3748, allocations: 8 kB / 1.323 GB, free: 1.254 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.05e-05/0.3749, allocations: 31.91 kB / 1.323 GB, free: 1.223 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.2e-05/0.375, allocations: 51.67 kB / 1.323 GB, free: 1.172 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.3752, allocations: 123.7 kB / 1.323 GB, free: 1.051 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3752, allocations: 0 / 1.323 GB, free: 1.051 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3752, allocations: 0 / 1.323 GB, free: 1.051 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.3752, allocations: 0 / 1.323 GB, free: 1.051 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.0009015/0.3761, allocations: 466.8 kB / 1.323 GB, free: 0.543 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3761, allocations: 15.98 kB / 1.323 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.15e-05/0.3762, allocations: 38.75 kB / 1.324 GB, free: 492 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.3762, allocations: 12.84 kB / 1.324 GB, free: 480 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.3765, allocations: 205.1 kB / 1.324 GB, free: 236 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.3765, allocations: 8.375 kB / 1.324 GB, free: 228 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.3765, allocations: 8.312 kB / 1.324 GB, free: 220 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.377, allocations: 159.7 kB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.377, allocations: 3.938 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.377, allocations: 0 / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.377, allocations: 0 / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005852/0.3776, allocations: 167.8 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009193/0.3785, allocations: 0.5007 MB / 1.325 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.379, allocations: 169.1 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/0.3792, allocations: 93.66 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.3793, allocations: 8 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.3793, allocations: 30.56 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.3793, allocations: 4 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0009187/0.3802, allocations: 281.3 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.3803, allocations: 85.11 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.3804, allocations: 164.8 kB / 1.325 GB, free: 14.44 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.3805, allocations: 25.7 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.783e-05/0.3805, allocations: 104.1 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.547e-05/0.3806, allocations: 27.75 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.727e-05/0.3806, allocations: 21.7 kB / 1.326 GB, free: 14.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.3808, allocations: 330.8 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.3811, allocations: 79.92 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.3813, allocations: 93.62 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.3819, allocations: 177.5 kB / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3819, allocations: 0 / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005756/0.3824, allocations: 197.5 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3825, allocations: 11.92 kB / 1.326 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.3825, allocations: 4 kB / 1.326 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.3825, allocations: 4 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.3827, allocations: 27.97 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.3827, allocations: 7.984 kB / 1.326 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.3829, allocations: 23.92 kB / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.3829, allocations: 4 kB / 1.326 GB, free: 13.28 MB / 1.029 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.0001167/0.383, allocations: 133.8 kB / 1.327 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.202e-05/0.383, allocations: 11.95 kB / 1.327 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.466e-05/0.3831, allocations: 16.25 kB / 1.327 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3831, allocations: 7.984 kB / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3831, allocations: 0 / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3831, allocations: 0 / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/0.3834, allocations: 233.5 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3834, allocations: 0 / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.3836, allocations: 39.89 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3836, allocations: 4.469 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.3836, allocations: 3.938 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3836, allocations: 3.938 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3836, allocations: 4 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006954/0.3843, allocations: 382.5 kB / 1.327 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.876e-05/0.3844, allocations: 85.06 kB / 1.327 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.3844, allocations: 3.984 kB / 1.327 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.3846, allocations: 23.97 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.3847, allocations: 11.98 kB / 1.327 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.3847, allocations: 3.938 kB / 1.327 GB, free: 12.23 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001004/0.3848, allocations: 125 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3848, allocations: 4 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002764/0.3851, allocations: 19.95 kB / 1.327 GB, free: 12.09 MB / 1.029 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.001038/0.3861, allocations: 0.9069 MB / 1.328 GB, free: 11.15 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006141/0.3867, allocations: 171.8 kB / 1.329 GB, free: 10.98 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3867, allocations: 4 kB / 1.329 GB, free: 10.98 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.387, allocations: 91.84 kB / 1.329 GB, free: 10.89 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.3874, allocations: 10.03 kB / 1.329 GB, free: 10.88 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.3909, allocations: 1.982 MB / 1.331 GB, free: 8.809 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004236/0.3914, allocations: 0.709 MB / 1.331 GB, free: 8.074 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.435e-05/0.3915, allocations: 23.97 kB / 1.331 GB, free: 8.051 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.921e-05/0.3916, allocations: 35.42 kB / 1.331 GB, free: 8.016 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3916, allocations: 0 / 1.331 GB, free: 8.016 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.4194, allocations: 2.709 MB / 1.334 GB, free: 5.406 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.479, allocations: 13.34 kB / 1.334 GB, free: 5.398 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable matGai.u[1] in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv. Warning: Get data of variable matGai.u[1] from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv failed! Error: Could not read variable matGai1.y[1] in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv. Warning: Get data of variable matGai1.y[1] from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv failed! Error: Could not read variable matGai1.y[2] in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv. Warning: Get data of variable matGai1.y[2] from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv failed! Error: Could not read variable matGai1.u[2] in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv. Warning: Get data of variable matGai1.u[2] from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.588606329867616]