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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 219.5 kB / 22.25 MB, free: 4.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.438/3.438, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 72.72 kB / 1.186 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4018, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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) as default value. Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.04738/0.4492, allocations: 38.57 MB / 1.401 GB, free: 7.375 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.01702/0.4662, allocations: 10.42 MB / 1.411 GB, free: 12.93 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001706/0.4679, allocations: 71.44 kB / 1.411 GB, free: 12.86 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.4692, allocations: 425.1 kB / 1.412 GB, free: 12.44 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.003524/0.4727, allocations: 1.217 MB / 1.413 GB, free: 11.21 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.001965/0.4747, allocations: 0.7483 MB / 1.414 GB, free: 10.47 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.002966/0.4776, allocations: 2.112 MB / 1.416 GB, free: 8.352 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.4786, allocations: 0.5208 MB / 1.416 GB, free: 7.82 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002517/0.4812, allocations: 1.014 MB / 1.417 GB, free: 6.805 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.4823, allocations: 0.5599 MB / 1.418 GB, free: 6.242 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.4825, allocations: 60 kB / 1.418 GB, free: 6.184 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.4839, allocations: 0.5107 MB / 1.418 GB, free: 5.672 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.4841, allocations: 187.3 kB / 1.418 GB, free: 5.488 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0004265/0.4845, allocations: 338.5 kB / 1.419 GB, free: 5.156 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.001878/0.4864, allocations: 1.257 MB / 1.42 GB, free: 3.895 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4864, allocations: 0 / 1.42 GB, free: 3.895 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4864, allocations: 4 kB / 1.42 GB, free: 3.891 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.319e-05/0.4864, allocations: 0 / 1.42 GB, free: 3.891 MB / 1.107 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.001899/0.4883, allocations: 0.9985 MB / 1.421 GB, free: 2.859 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.4884, allocations: 8.031 kB / 1.421 GB, free: 2.852 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.4885, allocations: 86.7 kB / 1.421 GB, free: 2.758 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.4887, allocations: 92.41 kB / 1.421 GB, free: 2.668 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.4901, allocations: 0.6441 MB / 1.422 GB, free: 2 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.604e-05/0.4901, allocations: 41.12 kB / 1.422 GB, free: 1.961 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-05/0.4902, allocations: 48 kB / 1.422 GB, free: 1.914 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.4912, allocations: 0.6339 MB / 1.422 GB, free: 1.227 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.4913, allocations: 4 kB / 1.422 GB, free: 1.223 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.624e-05/0.4913, allocations: 24 kB / 1.423 GB, free: 1.199 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.4914, allocations: 15.94 kB / 1.423 GB, free: 1.184 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007165/0.4921, allocations: 375.7 kB / 1.423 GB, free: 0.8164 MB / 1.107 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.003126/0.4952, allocations: 2.086 MB / 1.425 GB, free: 14.65 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006521/0.4958, allocations: 234.4 kB / 1.425 GB, free: 14.41 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.4961, allocations: 121.8 kB / 1.425 GB, free: 14.29 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00185/0.4979, allocations: 0.7495 MB / 1.426 GB, free: 13.52 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.498, allocations: 34.55 kB / 1.426 GB, free: 13.48 MB / 1.123 GB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.498, allocations: 0 / 1.426 GB, free: 13.48 MB / 1.123 GB Notification: Performance of matching and sorting (n=20): time 0.0007985/0.4988, allocations: 322.8 kB / 1.426 GB, free: 13.16 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.4988, allocations: 63.33 kB / 1.426 GB, free: 13.09 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009241/0.4998, allocations: 0.6488 MB / 1.427 GB, free: 12.43 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.4998, allocations: 25.7 kB / 1.427 GB, free: 12.4 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003552/0.5001, allocations: 360 kB / 1.427 GB, free: 12.04 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 8.838e-05/0.5002, allocations: 79.33 kB / 1.427 GB, free: 11.96 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.5004, allocations: 77.64 kB / 1.428 GB, free: 11.88 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0002023/0.5006, allocations: 374.8 kB / 1.428 GB, free: 11.51 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.5007, allocations: 87.94 kB / 1.428 GB, free: 11.42 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.5011, allocations: 340.5 kB / 1.428 GB, free: 11 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005501/0.5017, allocations: 344.2 kB / 1.429 GB, free: 10.6 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.5017, allocations: 7.938 kB / 1.429 GB, free: 10.59 MB / 1.123 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007147/0.5024, allocations: 405.2 kB / 1.429 GB, free: 10.19 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.5024, allocations: 8 kB / 1.429 GB, free: 10.18 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.5024, allocations: 4 kB / 1.429 GB, free: 10.18 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.554e-05/0.5024, allocations: 8 kB / 1.429 GB, free: 10.17 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.5027, allocations: 79.83 kB / 1.429 GB, free: 10.09 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.5027, allocations: 8 kB / 1.429 GB, free: 10.09 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.5031, allocations: 51.56 kB / 1.429 GB, free: 10.04 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.5032, allocations: 19.98 kB / 1.429 GB, free: 10.02 MB / 1.123 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.0002943/0.5035, allocations: 213.7 kB / 1.429 GB, free: 9.797 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.5036, allocations: 75.61 kB / 1.429 GB, free: 9.723 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006605/0.5042, allocations: 334.2 kB / 1.43 GB, free: 9.391 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.5043, allocations: 4.047 kB / 1.43 GB, free: 9.387 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.5043, allocations: 7.922 kB / 1.43 GB, free: 9.379 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006065/0.5049, allocations: 490.6 kB / 1.43 GB, free: 8.832 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.5064, allocations: 0.8848 MB / 1.431 GB, free: 7.887 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.5064, allocations: 0 / 1.431 GB, free: 7.887 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.5066, allocations: 43.91 kB / 1.431 GB, free: 7.844 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.338e-05/0.5066, allocations: 8.125 kB / 1.431 GB, free: 7.836 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.5066, allocations: 8 kB / 1.431 GB, free: 7.828 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.5066, allocations: 0 / 1.431 GB, free: 7.828 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.5067, allocations: 4 kB / 1.431 GB, free: 7.824 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008979/0.5075, allocations: 0.5501 MB / 1.432 GB, free: 7.246 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.5078, allocations: 111.4 kB / 1.432 GB, free: 7.137 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.532e-05/0.5079, allocations: 8 kB / 1.432 GB, free: 7.129 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003008/0.5082, allocations: 8 kB / 1.432 GB, free: 7.121 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.5083, allocations: 11.97 kB / 1.432 GB, free: 7.109 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.954e-05/0.5083, allocations: 23.98 kB / 1.432 GB, free: 7.086 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0006563/0.5089, allocations: 467.1 kB / 1.432 GB, free: 6.633 MB / 1.123 GB Notification: Performance of sort global known variables: time 1e-07/0.5089, allocations: 0 / 1.432 GB, free: 6.633 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.000786/0.5097, allocations: 215.6 kB / 1.433 GB, free: 6.422 MB / 1.123 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.001678/0.5114, allocations: 1.27 MB / 1.434 GB, free: 5.109 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0005521/0.512, allocations: 248.8 kB / 1.434 GB, free: 4.867 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.512, allocations: 64 / 1.434 GB, free: 4.867 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.5122, allocations: 115.8 kB / 1.434 GB, free: 4.754 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/0.5141, allocations: 444.3 kB / 1.435 GB, free: 4.336 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00768/0.5218, allocations: 4.96 MB / 1.439 GB, free: 15.15 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.5222, allocations: 316.4 kB / 1.44 GB, free: 14.81 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.0005491/0.5228, allocations: 129.7 kB / 1.44 GB, free: 14.68 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003787/0.5231, allocations: 235.3 kB / 1.44 GB, free: 14.45 MB / 1.139 GB Notification: Performance of SimCode: time 8.41e-07/0.5231, allocations: 0 / 1.44 GB, free: 14.45 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06228/0.5854, allocations: 22.14 MB / 1.462 GB, free: 8.797 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.35, allocations: 9.875 kB / 1.462 GB, free: 8.789 MB / 1.154 GB " [Timeout remaining time 288] (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 --stepSize=0.2 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Validation_Tanks.fmu > Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.567898124922067]