Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001051/0.001052, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001083/0.001083, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.214/1.214, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.27/2.27, allocations: 390.2 MB / 0.6643 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 71.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.539/0.5404, allocations: 140.4 MB / 0.9491 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain): time 0.001675/0.5421, allocations: 0.8296 MB / 0.9499 GB, free: 8.484 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007065/0.5429, allocations: 0.8213 MB / 0.9507 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.996e-05/0.5429, allocations: 5.125 kB / 0.9507 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.5431, allocations: 49.58 kB / 0.9507 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.611e-05/0.5432, allocations: 34.05 kB / 0.9508 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.6e-05/0.5432, allocations: 18.44 kB / 0.9508 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.253e-05/0.5433, allocations: 85.67 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.5434, allocations: 30.03 kB / 0.9509 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.249e-05/0.5435, allocations: 37 kB / 0.9509 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.5436, allocations: 76.84 kB / 0.951 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.5436, allocations: 4.781 kB / 0.951 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.5437, allocations: 4.5 kB / 0.951 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.617e-05/0.5437, allocations: 36.14 kB / 0.951 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.6e-05/0.5438, allocations: 44.33 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.458e-05/0.5439, allocations: 108.6 kB / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.5439, allocations: 0 / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.11e-07/0.5439, allocations: 0 / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.5439, allocations: 4 kB / 0.9512 GB, free: 7.484 MB / 0.7169 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.0005993/0.5445, allocations: 464 kB / 0.9516 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.5445, allocations: 9.375 kB / 0.9516 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.892e-05/0.5446, allocations: 33.31 kB / 0.9517 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.959e-05/0.5446, allocations: 10.56 kB / 0.9517 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.5447, allocations: 217.4 kB / 0.9519 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.325e-06/0.5448, allocations: 5.938 kB / 0.9519 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.5448, allocations: 4.406 kB / 0.9519 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.5451, allocations: 151.7 kB / 0.952 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.5452, allocations: 5.312 kB / 0.9521 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.5452, allocations: 0 / 0.9521 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.5452, allocations: 5.281 kB / 0.9521 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004949/0.5457, allocations: 171.2 kB / 0.9522 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006717/0.5464, allocations: 0.5008 MB / 0.9527 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.5467, allocations: 170.4 kB / 0.9529 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.547, allocations: 93.66 kB / 0.953 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.547, allocations: 1.312 kB / 0.953 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.442e-05/0.547, allocations: 35.72 kB / 0.953 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.547, allocations: 0 / 0.953 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0008011/0.5478, allocations: 286.5 kB / 0.9533 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/0.5479, allocations: 82.47 kB / 0.9534 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.548, allocations: 159.9 kB / 0.9535 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.548, allocations: 31.02 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.289e-05/0.548, allocations: 105.2 kB / 0.9536 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.525e-05/0.5481, allocations: 27.31 kB / 0.9537 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.424e-05/0.5481, allocations: 22.94 kB / 0.9537 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.693e-05/0.5481, allocations: 326.5 kB / 0.954 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.5484, allocations: 76.02 kB / 0.9541 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.5486, allocations: 99.62 kB / 0.9542 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004311/0.5491, allocations: 177.7 kB / 0.9543 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5491, allocations: 0 / 0.9543 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004953/0.5496, allocations: 201.3 kB / 0.9545 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.5496, allocations: 6.156 kB / 0.9545 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.5496, allocations: 0 / 0.9545 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.5496, allocations: 5.25 kB / 0.9545 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.5498, allocations: 34.61 kB / 0.9546 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.5498, allocations: 1.125 kB / 0.9546 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.55, allocations: 25.98 kB / 0.9546 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.55, allocations: 1.719 kB / 0.9546 GB, free: 4.727 MB / 0.7169 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 6.806e-05/0.5501, allocations: 137 kB / 0.9547 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.5501, allocations: 16.59 kB / 0.9547 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.5501, allocations: 21.09 kB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.5502, allocations: 1.219 kB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.5502, allocations: 1.094 kB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.5502, allocations: 3.938 kB / 0.9548 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002321/0.5504, allocations: 222.8 kB / 0.955 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.5504, allocations: 4.953 kB / 0.955 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.5506, allocations: 34.22 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.5506, allocations: 5.188 kB / 0.955 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.5506, allocations: 1.156 kB / 0.955 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.5506, allocations: 5.094 kB / 0.955 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5506, allocations: 5.109 kB / 0.955 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005097/0.5511, allocations: 390.1 kB / 0.9554 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.129e-05/0.5512, allocations: 92.17 kB / 0.9555 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.5512, allocations: 0.9375 kB / 0.9555 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.5514, allocations: 24.89 kB / 0.9555 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.5515, allocations: 12.83 kB / 0.9555 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.754e-06/0.5515, allocations: 1.25 kB / 0.9555 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.006e-05/0.5515, allocations: 122.5 kB / 0.9556 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5515, allocations: 0 / 0.9556 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002776/0.5518, allocations: 19.72 kB / 0.9557 GB, free: 3.781 MB / 0.7169 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.0006564/0.5525, allocations: 0.9102 MB / 0.9566 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004801/0.553, allocations: 167 kB / 0.9567 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.553, allocations: 0 / 0.9567 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.5532, allocations: 96.09 kB / 0.9568 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.5536, allocations: 10.19 kB / 0.9568 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/0.5557, allocations: 1.999 MB / 0.9588 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.5559, allocations: 0.7123 MB / 0.9595 GB, free: 484 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.5e-05/0.556, allocations: 30.47 kB / 0.9595 GB, free: 472 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.48e-05/0.556, allocations: 30.95 kB / 0.9595 GB, free: 444 kB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.556, allocations: 0 / 0.9595 GB, free: 444 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01114/0.5672, allocations: 2.35 MB / 0.9618 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/0.5674, allocations: 207 kB / 0.962 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/2.177, allocations: 4 kB / 0.962 GB, free: 15.03 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches