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.005081/0.005081, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001243/0.001243, allocations: 194.6 kB / 16.68 MB, free: 5.969 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.535/2.535, allocations: 482.6 MB / 0.7551 GB, free: 6.59 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00261/0.00261, allocations: 64.56 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3519, allocations: 162.3 MB / 1.242 GB, free: 8.887 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.04528/0.3972, allocations: 41.66 MB / 1.283 GB, free: 15.08 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01531/0.4125, allocations: 11.16 MB / 1.293 GB, free: 3.883 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.4142, allocations: 47.69 kB / 1.293 GB, free: 3.836 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.4155, allocations: 425.2 kB / 1.294 GB, free: 3.418 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.003077/0.4185, allocations: 1.154 MB / 1.295 GB, free: 2.258 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001857/0.4204, allocations: 0.7343 MB / 1.296 GB, free: 1.531 MB / 1.014 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 NFFlatten.flatten: time 0.002689/0.4231, allocations: 2.073 MB / 1.298 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009825/0.4241, allocations: 0.6883 MB / 1.298 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002282/0.4264, allocations: 0.9652 MB / 1.299 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000782/0.4272, allocations: 0.56 MB / 1.3 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.4273, allocations: 60 kB / 1.3 GB, free: 13.16 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001385/0.4287, allocations: 0.6083 MB / 1.301 GB, free: 12.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.4289, allocations: 183.3 kB / 1.301 GB, free: 12.38 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0004253/0.4293, allocations: 402.1 kB / 1.301 GB, free: 11.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001823/0.4312, allocations: 1.261 MB / 1.302 GB, free: 10.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4312, allocations: 0 / 1.302 GB, free: 10.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4312, allocations: 0 / 1.302 GB, free: 10.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.4312, allocations: 4 kB / 1.302 GB, free: 10.71 MB / 1.029 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.001692/0.4329, allocations: 1.074 MB / 1.303 GB, free: 9.586 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.433, allocations: 11.97 kB / 1.303 GB, free: 9.574 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.4331, allocations: 86.7 kB / 1.303 GB, free: 9.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.4333, allocations: 92.42 kB / 1.304 GB, free: 9.391 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.4344, allocations: 0.7046 MB / 1.304 GB, free: 8.648 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.038e-05/0.4344, allocations: 45.06 kB / 1.304 GB, free: 8.605 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.697e-05/0.4345, allocations: 48 kB / 1.304 GB, free: 8.559 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008982/0.4354, allocations: 0.5625 MB / 1.305 GB, free: 7.961 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.4355, allocations: 4 kB / 1.305 GB, free: 7.957 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.034e-05/0.4355, allocations: 27.97 kB / 1.305 GB, free: 7.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.487e-05/0.4355, allocations: 12 kB / 1.305 GB, free: 7.918 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006502/0.4362, allocations: 383.7 kB / 1.305 GB, free: 7.543 MB / 1.029 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.00292/0.4391, allocations: 2.668 MB / 1.308 GB, free: 4.695 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005403/0.4397, allocations: 242.6 kB / 1.308 GB, free: 4.449 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.4399, allocations: 120.8 kB / 1.308 GB, free: 4.328 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002093/0.442, allocations: 1.811 MB / 1.31 GB, free: 2.25 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.442, allocations: 46.5 kB / 1.31 GB, free: 2.195 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 3.587e-06/0.442, allocations: 3.984 kB / 1.31 GB, free: 2.191 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0006306/0.4427, allocations: 318.8 kB / 1.31 GB, free: 1.875 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.4427, allocations: 63.34 kB / 1.31 GB, free: 1.801 MB / 1.029 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.0007653/0.4435, allocations: 0.641 MB / 1.311 GB, free: 1.148 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.4435, allocations: 29.7 kB / 1.311 GB, free: 1.113 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002658/0.4438, allocations: 352 kB / 1.311 GB, free: 0.7656 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.231e-05/0.4439, allocations: 87.3 kB / 1.312 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.444, allocations: 73.64 kB / 1.312 GB, free: 0.6016 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001785/0.4442, allocations: 374.8 kB / 1.312 GB, free: 232 kB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.4444, allocations: 91.94 kB / 1.312 GB, free: 140 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.4447, allocations: 245.7 kB / 1.312 GB, free: 15.83 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004463/0.4451, allocations: 336.2 kB / 1.313 GB, free: 15.44 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.4451, allocations: 7.938 kB / 1.313 GB, free: 15.43 MB / 1.045 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006219/0.4458, allocations: 404.6 kB / 1.313 GB, free: 15.03 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.4458, allocations: 11.94 kB / 1.313 GB, free: 15.02 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4458, allocations: 4.625 kB / 1.313 GB, free: 15.01 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.4458, allocations: 12 kB / 1.313 GB, free: 15 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.4461, allocations: 71.91 kB / 1.313 GB, free: 14.93 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/0.4461, allocations: 15.92 kB / 1.313 GB, free: 14.91 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.4464, allocations: 47.62 kB / 1.313 GB, free: 14.87 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/0.4464, allocations: 23.98 kB / 1.313 GB, free: 14.84 MB / 1.045 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.0002483/0.4467, allocations: 213.7 kB / 1.313 GB, free: 14.62 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.4468, allocations: 71.52 kB / 1.313 GB, free: 14.55 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000588/0.4474, allocations: 343.6 kB / 1.314 GB, free: 14.21 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.4474, allocations: 7.984 kB / 1.314 GB, free: 14.2 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.4474, allocations: 0 / 1.314 GB, free: 14.2 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000486/0.4479, allocations: 482.6 kB / 1.314 GB, free: 13.66 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.4492, allocations: 0.9607 MB / 1.315 GB, free: 12.64 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.4492, allocations: 0 / 1.315 GB, free: 12.64 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.4494, allocations: 48.03 kB / 1.315 GB, free: 12.59 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.4494, allocations: 0 / 1.315 GB, free: 12.59 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.4494, allocations: 8 kB / 1.315 GB, free: 12.59 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.4495, allocations: 4 kB / 1.315 GB, free: 12.58 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4495, allocations: 0 / 1.315 GB, free: 12.58 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007247/0.4502, allocations: 0.5455 MB / 1.316 GB, free: 12.01 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.4504, allocations: 184.5 kB / 1.316 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.389e-05/0.4505, allocations: 8 kB / 1.316 GB, free: 11.8 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.4507, allocations: 11.94 kB / 1.316 GB, free: 11.79 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.4508, allocations: 15.98 kB / 1.316 GB, free: 11.77 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.4508, allocations: 15.98 kB / 1.316 GB, free: 11.76 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000523/0.4514, allocations: 463 kB / 1.316 GB, free: 11.31 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4514, allocations: 4.062 kB / 1.316 GB, free: 11.3 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006343/0.452, allocations: 207.6 kB / 1.317 GB, free: 11.1 MB / 1.045 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.001547/0.4536, allocations: 1.298 MB / 1.318 GB, free: 9.773 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004728/0.454, allocations: 264.8 kB / 1.318 GB, free: 9.516 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.4541, allocations: 4.062 kB / 1.318 GB, free: 9.512 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.4542, allocations: 115.9 kB / 1.318 GB, free: 9.398 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/0.4561, allocations: 438.9 kB / 1.319 GB, free: 8.988 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00609/0.4622, allocations: 4.947 MB / 1.324 GB, free: 3.816 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005108/0.4627, allocations: 0.9135 MB / 1.324 GB, free: 2.875 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0004391/0.4632, allocations: 125.7 kB / 1.325 GB, free: 2.75 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.4635, allocations: 231.3 kB / 1.325 GB, free: 2.523 MB / 1.045 GB Notification: Performance of SimCode: time 5.01e-07/0.4635, allocations: 4 kB / 1.325 GB, free: 2.52 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.556/3.02, allocations: 20.09 MB / 1.344 GB, free: 14.72 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/15.69, allocations: 6.562 kB / 1.344 GB, free: 14.71 MB / 1.076 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