Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Validation.Tanks.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Templates.Components.Validation.Tanks,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Validation_Tanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Validation.Tanks,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Validation_Tanks",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.001588/0.001588, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.431/1.431, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.876/2.876, allocations: 482.4 MB / 0.7547 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 68.52 kB / 0.9239 GB, free: 29.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4986/0.501, allocations: 162.2 MB / 1.082 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.05013/0.5512, allocations: 41.68 MB / 1.123 GB, free: 3.301 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01692/0.5681, allocations: 11.14 MB / 1.134 GB, free: 8.125 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.57, allocations: 51.69 kB / 1.134 GB, free: 8.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.5713, allocations: 429.1 kB / 1.134 GB, free: 7.652 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003238/0.5746, allocations: 1.154 MB / 1.136 GB, free: 6.492 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001931/0.5765, allocations: 0.7272 MB / 1.136 GB, free: 5.77 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002497/0.579, allocations: 2.069 MB / 1.138 GB, free: 3.699 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009107/0.58, allocations: 0.6844 MB / 1.139 GB, free: 3 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002165/0.5821, allocations: 0.962 MB / 1.14 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007025/0.5828, allocations: 0.5561 MB / 1.14 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.916e-05/0.583, allocations: 67.98 kB / 1.14 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001371/0.5843, allocations: 0.6122 MB / 1.141 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.5845, allocations: 175.4 kB / 1.141 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004201/0.585, allocations: 406.1 kB / 1.142 GB, free: 236 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001604/0.5866, allocations: 1.243 MB / 1.143 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.5866, allocations: 0 / 1.143 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5866, allocations: 4 kB / 1.143 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.328e-06/0.5866, allocations: 0 / 1.143 GB, free: 14.98 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001645/0.5883, allocations: 1.051 MB / 1.144 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.5883, allocations: 8.031 kB / 1.144 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.5884, allocations: 90.7 kB / 1.144 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.5887, allocations: 84 kB / 1.144 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.5897, allocations: 0.6689 MB / 1.145 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.5897, allocations: 41.12 kB / 1.145 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.29e-05/0.5898, allocations: 48 kB / 1.145 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008956/0.5907, allocations: 0.5625 MB / 1.145 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.5908, allocations: 0 / 1.145 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.511e-05/0.5908, allocations: 16 kB / 1.145 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.5908, allocations: 16 kB / 1.145 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00065/0.5915, allocations: 379.7 kB / 1.146 GB, free: 11.9 MB / 0.9044 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003025/0.5945, allocations: 2.683 MB / 1.148 GB, free: 9.035 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/0.5951, allocations: 238.6 kB / 1.149 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/0.5953, allocations: 132.7 kB / 1.149 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002178/0.5975, allocations: 1.815 MB / 1.15 GB, free: 6.578 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.5976, allocations: 30.56 kB / 1.151 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 1.233e-06/0.5976, allocations: 0 / 1.151 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20): time 0.00065/0.5982, allocations: 318.5 kB / 1.151 GB, free: 6.223 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.5983, allocations: 63.34 kB / 1.151 GB, free: 6.148 MB / 0.9044 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Templates/Components/Tanks/Buffer.mo:9:3-12:41:writable] Warning: Parameter noTan.V has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008114/0.5991, allocations: 0.641 MB / 1.151 GB, free: 5.496 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.5991, allocations: 29.7 kB / 1.152 GB, free: 5.461 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.5994, allocations: 359.3 kB / 1.152 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.113e-05/0.5995, allocations: 67.02 kB / 1.152 GB, free: 5.039 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.5997, allocations: 81.59 kB / 1.152 GB, free: 4.953 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002/0.5999, allocations: 370.8 kB / 1.152 GB, free: 4.582 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.6001, allocations: 91.94 kB / 1.152 GB, free: 4.492 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.6004, allocations: 233.8 kB / 1.153 GB, free: 4.199 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004606/0.6008, allocations: 346.9 kB / 1.153 GB, free: 3.797 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.6009, allocations: 3.938 kB / 1.153 GB, free: 3.793 MB / 0.9044 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006304/0.6015, allocations: 404.3 kB / 1.153 GB, free: 3.391 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.6015, allocations: 4 kB / 1.153 GB, free: 3.387 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.6015, allocations: 4.625 kB / 1.153 GB, free: 3.383 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.6016, allocations: 12 kB / 1.153 GB, free: 3.371 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.6018, allocations: 79.89 kB / 1.153 GB, free: 3.293 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.6018, allocations: 11.94 kB / 1.153 GB, free: 3.281 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002938/0.6021, allocations: 51.38 kB / 1.154 GB, free: 3.23 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.83e-05/0.6022, allocations: 23.98 kB / 1.154 GB, free: 3.207 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (intFlo.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * 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.0002412/0.6024, allocations: 213.6 kB / 1.154 GB, free: 2.988 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.6025, allocations: 71.09 kB / 1.154 GB, free: 2.918 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000592/0.6031, allocations: 333 kB / 1.154 GB, free: 2.582 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.6032, allocations: 4 kB / 1.154 GB, free: 2.578 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6032, allocations: 0 / 1.154 GB, free: 2.578 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000504/0.6037, allocations: 492 kB / 1.155 GB, free: 2.031 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.605, allocations: 0.9708 MB / 1.156 GB, free: 0.9922 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.605, allocations: 0 / 1.156 GB, free: 0.9922 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.6052, allocations: 44.09 kB / 1.156 GB, free: 0.9492 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.6052, allocations: 4 kB / 1.156 GB, free: 0.9453 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.6052, allocations: 8 kB / 1.156 GB, free: 0.9375 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6052, allocations: 3.984 kB / 1.156 GB, free: 0.9336 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.6052, allocations: 7.938 kB / 1.156 GB, free: 0.9258 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007281/0.606, allocations: 0.5344 MB / 1.156 GB, free: 372 kB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.6062, allocations: 176.2 kB / 1.156 GB, free: 176 kB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.848e-05/0.6063, allocations: 8 kB / 1.156 GB, free: 168 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.6065, allocations: 11.98 kB / 1.156 GB, free: 156 kB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.6066, allocations: 15.92 kB / 1.156 GB, free: 140 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.731e-05/0.6066, allocations: 15.98 kB / 1.156 GB, free: 124 kB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.000526/0.6071, allocations: 467.1 kB / 1.157 GB, free: 15.67 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6071, allocations: 4 kB / 1.157 GB, free: 15.67 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006362/0.6078, allocations: 211.7 kB / 1.157 GB, free: 15.46 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (tan.vol.dynBal.U,intFlo.y) * 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 (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001486/0.6093, allocations: 1.277 MB / 1.158 GB, free: 14.15 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004869/0.6098, allocations: 267.1 kB / 1.159 GB, free: 13.89 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.6098, allocations: 4.062 kB / 1.159 GB, free: 13.89 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.61, allocations: 117.8 kB / 1.159 GB, free: 13.78 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.6118, allocations: 456.5 kB / 1.159 GB, free: 13.35 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006483/0.6183, allocations: 5.136 MB / 1.164 GB, free: 7.988 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.6189, allocations: 0.9094 MB / 1.165 GB, free: 7.051 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.000511/0.6194, allocations: 129.7 kB / 1.165 GB, free: 6.922 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.6197, allocations: 235.3 kB / 1.165 GB, free: 6.691 MB / 0.92 GB Notification: Performance of SimCode: time 5.31e-07/0.6197, allocations: 0 / 1.165 GB, free: 6.691 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2584/0.8781, allocations: 19.94 MB / 1.185 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.929/10.81, allocations: 6.969 kB / 1.185 GB, free: 3.012 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Validation.Tanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Validation_Tanks_fmu --startTime=0 --stopTime=500 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Validation_Tanks.fmu > Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Validation_Tanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Validation.Tanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches