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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009852/0.009852, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.002437/0.002437, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.603/2.603, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 67.91 kB / 1.054 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8935/0.8951, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain): time 0.002351/0.8975, allocations: 0.7619 MB / 1.208 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.8986, allocations: 0.8313 MB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.114e-05/0.8987, allocations: 3.938 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002204/0.8989, allocations: 55.86 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.861e-05/0.899, allocations: 39.77 kB / 1.209 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 8.359e-05/0.8991, allocations: 19.97 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.8992, allocations: 83.77 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.8994, allocations: 23.97 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.872e-05/0.8995, allocations: 47.83 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.8996, allocations: 83.78 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.8997, allocations: 8 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.591e-05/0.8997, allocations: 8 kB / 1.209 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.309e-05/0.8998, allocations: 35.91 kB / 1.209 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.728e-05/0.8998, allocations: 43.73 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.9, allocations: 127.5 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.9, allocations: 0 / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.834e-06/0.9, allocations: 0 / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.9, allocations: 0 / 1.209 GB, free: 11.38 MB / 0.9356 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.0007947/0.9008, allocations: 465.1 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.9009, allocations: 8.031 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.037e-05/0.9009, allocations: 34.75 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.483e-05/0.901, allocations: 12.84 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.9012, allocations: 200.1 kB / 1.21 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.9012, allocations: 8.312 kB / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.9012, allocations: 12.36 kB / 1.21 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000398/0.9016, allocations: 147.8 kB / 1.21 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.9017, allocations: 3.938 kB / 1.21 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.9017, allocations: 8 kB / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.9017, allocations: 0 / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005123/0.9022, allocations: 167.8 kB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008323/0.9031, allocations: 0.5085 MB / 1.211 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.9035, allocations: 165.1 kB / 1.211 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.9037, allocations: 97.73 kB / 1.211 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.9037, allocations: 0 / 1.211 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.9038, allocations: 34.56 kB / 1.211 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.9038, allocations: 0 / 1.211 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0008366/0.9046, allocations: 285.3 kB / 1.212 GB, free: 9.055 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.9047, allocations: 77.11 kB / 1.212 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.9048, allocations: 166.4 kB / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.9049, allocations: 25.7 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.9049, allocations: 119.9 kB / 1.212 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.905, allocations: 19.66 kB / 1.212 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/0.9051, allocations: 29.7 kB / 1.212 GB, free: 8.586 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.9052, allocations: 326.8 kB / 1.212 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.9054, allocations: 75.92 kB / 1.212 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.9057, allocations: 93.64 kB / 1.212 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004315/0.9061, allocations: 173.5 kB / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.9061, allocations: 0 / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004875/0.9066, allocations: 213.7 kB / 1.213 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.9066, allocations: 8 kB / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.9066, allocations: 96 / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.9066, allocations: 3.984 kB / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.9068, allocations: 39.89 kB / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.9069, allocations: 4.156 kB / 1.213 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.907, allocations: 23.97 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.907, allocations: 4 kB / 1.213 GB, free: 7.613 MB / 0.9356 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 9.391e-05/0.9071, allocations: 129.8 kB / 1.213 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/0.9071, allocations: 7.906 kB / 1.213 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.816e-05/0.9072, allocations: 24.23 kB / 1.213 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.9072, allocations: 4 kB / 1.213 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.9072, allocations: 4 kB / 1.213 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.9072, allocations: 0 / 1.213 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.9075, allocations: 229.4 kB / 1.213 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.9075, allocations: 0 / 1.213 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.9077, allocations: 39.89 kB / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.9077, allocations: 0 / 1.213 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.9077, allocations: 4 kB / 1.213 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.9077, allocations: 3.984 kB / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.9077, allocations: 0 / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.9083, allocations: 378.5 kB / 1.214 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.001e-05/0.9083, allocations: 88.94 kB / 1.214 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.9083, allocations: 4 kB / 1.214 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.9085, allocations: 23.97 kB / 1.214 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.712e-05/0.9086, allocations: 15.92 kB / 1.214 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.9086, allocations: 4 kB / 1.214 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.813e-05/0.9087, allocations: 119.2 kB / 1.214 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9087, allocations: 0 / 1.214 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002791/0.909, allocations: 23.91 kB / 1.214 GB, free: 6.43 MB / 0.9356 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.0009332/0.9099, allocations: 0.9068 MB / 1.215 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005028/0.9105, allocations: 179.8 kB / 1.215 GB, free: 5.32 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.9105, allocations: 3.938 kB / 1.215 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002296/0.9107, allocations: 91.86 kB / 1.215 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.911, allocations: 12 kB / 1.215 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.9135, allocations: 1.972 MB / 1.217 GB, free: 3.148 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.9137, allocations: 0.7158 MB / 1.218 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.568e-05/0.9138, allocations: 23.97 kB / 1.218 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.312e-05/0.9139, allocations: 39.36 kB / 1.218 GB, free: 2.344 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.9139, allocations: 0 / 1.218 GB, free: 2.344 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.9335, allocations: 2.7 MB / 1.22 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.65/8.583, allocations: 3.938 kB / 1.22 GB, free: 15.75 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MatrixGain_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MatrixGain.fmu > 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/jenkins1/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