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.001518/0.001518, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001525/0.001525, allocations: 193.8 kB / 16.25 MB, free: 6.637 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.378/1.378, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.799/2.799, allocations: 482.4 MB / 0.7544 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 60.47 kB / 0.9234 GB, free: 29.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3254, allocations: 162.2 MB / 1.082 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.04713/0.3726, allocations: 41.36 MB / 1.122 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0176/0.3902, allocations: 11.07 MB / 1.133 GB, free: 8.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002097/0.3924, allocations: 47.69 kB / 1.133 GB, free: 8.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.3936, allocations: 358 kB / 1.133 GB, free: 8.531 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.002921/0.3966, allocations: 1.077 MB / 1.135 GB, free: 7.449 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001778/0.3983, allocations: 0.665 MB / 1.135 GB, free: 6.789 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002654/0.401, allocations: 2.077 MB / 1.137 GB, free: 4.707 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009838/0.402, allocations: 0.6844 MB / 1.138 GB, free: 4.008 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00297/0.405, allocations: 0.964 MB / 1.139 GB, free: 3.043 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000955/0.406, allocations: 0.5834 MB / 1.139 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.4061, allocations: 64 kB / 1.139 GB, free: 2.395 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001849/0.408, allocations: 0.6276 MB / 1.14 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.4082, allocations: 183.4 kB / 1.14 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0005473/0.4088, allocations: 398.1 kB / 1.141 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002124/0.4109, allocations: 1.254 MB / 1.142 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.4109, allocations: 0 / 1.142 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.603e-06/0.411, allocations: 0 / 1.142 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.174e-05/0.411, allocations: 0 / 1.142 GB, free: 15.93 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.002343/0.4133, allocations: 1.049 MB / 1.143 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.4134, allocations: 16.03 kB / 1.143 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.4136, allocations: 90.7 kB / 1.143 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003264/0.4139, allocations: 84 kB / 1.143 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.4154, allocations: 0.6806 MB / 1.144 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.184e-05/0.4155, allocations: 41.12 kB / 1.144 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.4156, allocations: 48 kB / 1.144 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.417, allocations: 0.5586 MB / 1.144 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.417, allocations: 7.938 kB / 1.144 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.118e-05/0.4171, allocations: 20 kB / 1.144 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.254e-05/0.4171, allocations: 12 kB / 1.144 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.4182, allocations: 379.7 kB / 1.145 GB, free: 12.84 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.004179/0.4224, allocations: 2.663 MB / 1.147 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007935/0.4232, allocations: 242.6 kB / 1.148 GB, free: 9.746 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000309/0.4235, allocations: 120.8 kB / 1.148 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003133/0.4267, allocations: 1.815 MB / 1.149 GB, free: 7.543 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/0.4267, allocations: 38.55 kB / 1.149 GB, free: 7.496 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 2.625e-06/0.4267, allocations: 4 kB / 1.149 GB, free: 7.492 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20): time 0.0009586/0.4277, allocations: 316.7 kB / 1.15 GB, free: 7.176 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.4278, allocations: 59.34 kB / 1.15 GB, free: 7.105 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.00117/0.4289, allocations: 0.6332 MB / 1.15 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.926e-05/0.429, allocations: 29.7 kB / 1.15 GB, free: 6.426 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004059/0.4294, allocations: 351.3 kB / 1.151 GB, free: 6.078 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.4295, allocations: 74.98 kB / 1.151 GB, free: 6.004 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.4297, allocations: 77.59 kB / 1.151 GB, free: 5.922 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002428/0.43, allocations: 374.8 kB / 1.151 GB, free: 5.547 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.4302, allocations: 87.95 kB / 1.151 GB, free: 5.461 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004085/0.4306, allocations: 245.5 kB / 1.152 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006639/0.4313, allocations: 339 kB / 1.152 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.4313, allocations: 7.938 kB / 1.152 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001012/0.4323, allocations: 398.4 kB / 1.152 GB, free: 4.359 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.4324, allocations: 9.859 kB / 1.152 GB, free: 4.352 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.4324, allocations: 16.06 kB / 1.152 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.4324, allocations: 4 kB / 1.152 GB, free: 4.332 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.4329, allocations: 79.84 kB / 1.152 GB, free: 4.254 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.4329, allocations: 4 kB / 1.152 GB, free: 4.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.4334, allocations: 59.36 kB / 1.153 GB, free: 4.191 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-05/0.4335, allocations: 23.98 kB / 1.153 GB, free: 4.168 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.000347/0.4338, allocations: 214.2 kB / 1.153 GB, free: 3.949 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.434, allocations: 75.08 kB / 1.153 GB, free: 3.875 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007692/0.4347, allocations: 337 kB / 1.153 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4348, allocations: 0 / 1.153 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4348, allocations: 4 kB / 1.153 GB, free: 3.531 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006555/0.4355, allocations: 487.9 kB / 1.154 GB, free: 2.988 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.4373, allocations: 0.959 MB / 1.155 GB, free: 1.961 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.4374, allocations: 4 kB / 1.155 GB, free: 1.957 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.4376, allocations: 47.86 kB / 1.155 GB, free: 1.91 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.4376, allocations: 0 / 1.155 GB, free: 1.91 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.4377, allocations: 11.98 kB / 1.155 GB, free: 1.898 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4377, allocations: 0 / 1.155 GB, free: 1.898 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4377, allocations: 4 kB / 1.155 GB, free: 1.895 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009686/0.4387, allocations: 0.5422 MB / 1.155 GB, free: 1.324 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002956/0.439, allocations: 180.2 kB / 1.155 GB, free: 1.129 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.914e-05/0.4391, allocations: 0 / 1.155 GB, free: 1.129 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.4395, allocations: 24.05 kB / 1.155 GB, free: 1.105 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.4395, allocations: 15.98 kB / 1.155 GB, free: 1.09 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.848e-05/0.4396, allocations: 11.98 kB / 1.155 GB, free: 1.078 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0007107/0.4403, allocations: 463 kB / 1.156 GB, free: 0.6328 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.91e-07/0.4403, allocations: 0 / 1.156 GB, free: 0.6328 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0008781/0.4412, allocations: 207.7 kB / 1.156 GB, free: 440 kB / 0.9044 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.001742/0.4429, allocations: 1.274 MB / 1.157 GB, free: 15.12 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0005588/0.4435, allocations: 273.3 kB / 1.157 GB, free: 14.85 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4435, allocations: 0 / 1.157 GB, free: 14.85 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.4437, allocations: 121.1 kB / 1.158 GB, free: 14.73 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/0.4457, allocations: 451.9 kB / 1.158 GB, free: 14.31 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007765/0.4535, allocations: 5.296 MB / 1.163 GB, free: 8.801 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006853/0.4542, allocations: 0.9171 MB / 1.164 GB, free: 7.855 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0005946/0.4548, allocations: 129.7 kB / 1.164 GB, free: 7.727 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003191/0.4552, allocations: 235.3 kB / 1.164 GB, free: 7.496 MB / 0.92 GB Notification: Performance of SimCode: time 1.322e-06/0.4552, allocations: 0 / 1.164 GB, free: 7.496 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6681/1.123, allocations: 19.64 MB / 1.184 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004495/1.124, allocations: 249.7 kB / 1.184 GB, free: 3.91 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.906/4.03, allocations: 0 / 1.184 GB, free: 3.91 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