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.001766/0.001766, allocations: 106.4 kB / 16.45 MB, free: 6.453 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.002156/0.002156, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.445/1.445, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.175/3.175, allocations: 0.505 GB / 0.8066 GB, free: 23.09 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.00217/0.00217, allocations: 68.31 kB / 1.172 GB, free: 17.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3453, allocations: 180.2 MB / 1.348 GB, free: 10.14 MB / 1.045 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.04656/0.3919, allocations: 42.18 MB / 1.389 GB, free: 15.8 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.01653/0.4084, allocations: 11.22 MB / 1.4 GB, free: 4.559 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00137/0.4098, allocations: 75.38 kB / 1.4 GB, free: 4.484 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.4109, allocations: 433.1 kB / 1.4 GB, free: 4.059 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.003177/0.4141, allocations: 1.225 MB / 1.402 GB, free: 2.828 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.416, allocations: 0.73 MB / 1.402 GB, free: 2.102 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.002852/0.4188, allocations: 2.077 MB / 1.404 GB, free: 16 kB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.4199, allocations: 0.5554 MB / 1.405 GB, free: 15.45 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002405/0.4223, allocations: 0.9979 MB / 1.406 GB, free: 14.45 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008781/0.4231, allocations: 0.5834 MB / 1.406 GB, free: 13.86 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.4232, allocations: 60 kB / 1.406 GB, free: 13.8 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.4247, allocations: 0.6589 MB / 1.407 GB, free: 13.14 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0002244/0.4249, allocations: 191.2 kB / 1.407 GB, free: 12.96 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0004398/0.4254, allocations: 394.1 kB / 1.408 GB, free: 12.57 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.001949/0.4273, allocations: 1.289 MB / 1.409 GB, free: 11.28 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4273, allocations: 0 / 1.409 GB, free: 11.28 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4273, allocations: 0 / 1.409 GB, free: 11.28 MB / 1.107 GB Notification: Performance of Transformations before backend: time 9.999e-06/0.4273, allocations: 0 / 1.409 GB, free: 11.28 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.001755/0.4291, allocations: 1.082 MB / 1.41 GB, free: 10.14 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.4291, allocations: 15.97 kB / 1.41 GB, free: 10.13 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001153/0.4293, allocations: 102.6 kB / 1.41 GB, free: 10.02 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000223/0.4295, allocations: 88.42 kB / 1.41 GB, free: 9.934 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.4306, allocations: 0.6968 MB / 1.411 GB, free: 9.199 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.4306, allocations: 41.12 kB / 1.411 GB, free: 9.16 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.26e-05/0.4307, allocations: 55.98 kB / 1.411 GB, free: 9.105 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009057/0.4316, allocations: 0.5625 MB / 1.411 GB, free: 8.508 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.4316, allocations: 3.938 kB / 1.411 GB, free: 8.504 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.181e-05/0.4317, allocations: 24 kB / 1.412 GB, free: 8.48 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.4317, allocations: 16 kB / 1.412 GB, free: 8.465 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/0.4324, allocations: 375.7 kB / 1.412 GB, free: 8.098 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.003062/0.4354, allocations: 2.664 MB / 1.414 GB, free: 5.25 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005714/0.436, allocations: 234.6 kB / 1.415 GB, free: 5.012 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.4362, allocations: 120.7 kB / 1.415 GB, free: 4.891 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002348/0.4385, allocations: 1.803 MB / 1.417 GB, free: 2.82 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.4386, allocations: 34.56 kB / 1.417 GB, free: 2.777 MB / 1.107 GB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.4386, allocations: 3.938 kB / 1.417 GB, free: 2.773 MB / 1.107 GB Notification: Performance of matching and sorting (n=20): time 0.0006636/0.4392, allocations: 322.5 kB / 1.417 GB, free: 2.453 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.4393, allocations: 59.34 kB / 1.417 GB, free: 2.383 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007796/0.4401, allocations: 0.641 MB / 1.418 GB, free: 1.73 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.4401, allocations: 29.7 kB / 1.418 GB, free: 1.695 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.4404, allocations: 356 kB / 1.418 GB, free: 1.344 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 7.659e-05/0.4405, allocations: 83.31 kB / 1.418 GB, free: 1.262 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.4406, allocations: 81.64 kB / 1.418 GB, free: 1.176 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0002033/0.4408, allocations: 370.8 kB / 1.418 GB, free: 0.8047 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.441, allocations: 87.95 kB / 1.419 GB, free: 0.7188 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.4413, allocations: 229.9 kB / 1.419 GB, free: 440 kB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005039/0.4418, allocations: 344.5 kB / 1.419 GB, free: 32 kB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.4418, allocations: 3.938 kB / 1.419 GB, free: 28 kB / 1.107 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000689/0.4425, allocations: 405.1 kB / 1.42 GB, free: 15.62 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.4425, allocations: 8 kB / 1.42 GB, free: 15.62 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.4425, allocations: 7.938 kB / 1.42 GB, free: 15.61 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.4425, allocations: 8 kB / 1.42 GB, free: 15.6 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.4428, allocations: 75.89 kB / 1.42 GB, free: 15.53 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.4428, allocations: 15.88 kB / 1.42 GB, free: 15.51 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003202/0.4431, allocations: 47.62 kB / 1.42 GB, free: 15.46 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.4432, allocations: 23.98 kB / 1.42 GB, free: 15.44 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.0002504/0.4434, allocations: 213.9 kB / 1.42 GB, free: 15.22 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.4435, allocations: 75.5 kB / 1.42 GB, free: 15.15 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006126/0.4441, allocations: 335.8 kB / 1.42 GB, free: 14.81 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.4441, allocations: 4 kB / 1.42 GB, free: 14.81 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4442, allocations: 0 / 1.42 GB, free: 14.81 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005458/0.4447, allocations: 486.6 kB / 1.421 GB, free: 14.27 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001401/0.4461, allocations: 0.975 MB / 1.422 GB, free: 13.22 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4461, allocations: 0 / 1.422 GB, free: 13.22 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002122/0.4463, allocations: 43.91 kB / 1.422 GB, free: 13.18 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/0.4463, allocations: 4 kB / 1.422 GB, free: 13.18 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.4463, allocations: 11.98 kB / 1.422 GB, free: 13.16 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4463, allocations: 0 / 1.422 GB, free: 13.16 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4464, allocations: 4 kB / 1.422 GB, free: 13.16 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008035/0.4472, allocations: 0.5432 MB / 1.422 GB, free: 12.59 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002364/0.4474, allocations: 172.6 kB / 1.422 GB, free: 12.4 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.541e-05/0.4475, allocations: 11.98 kB / 1.422 GB, free: 12.39 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.4478, allocations: 11.95 kB / 1.422 GB, free: 12.38 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.4478, allocations: 20.05 kB / 1.423 GB, free: 12.36 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.4478, allocations: 11.98 kB / 1.423 GB, free: 12.35 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0006059/0.4484, allocations: 471 kB / 1.423 GB, free: 11.89 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4484, allocations: 0 / 1.423 GB, free: 11.89 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.000728/0.4492, allocations: 211.6 kB / 1.423 GB, free: 11.68 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.001561/0.4507, allocations: 1.266 MB / 1.424 GB, free: 10.38 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0005318/0.4513, allocations: 250.9 kB / 1.425 GB, free: 10.13 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4513, allocations: 4.125 kB / 1.425 GB, free: 10.13 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.4515, allocations: 109.2 kB / 1.425 GB, free: 10.02 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.4535, allocations: 436.5 kB / 1.425 GB, free: 9.613 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007017/0.4605, allocations: 4.968 MB / 1.43 GB, free: 4.414 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005524/0.461, allocations: 0.9018 MB / 1.431 GB, free: 3.484 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.0004797/0.4615, allocations: 133.7 kB / 1.431 GB, free: 3.352 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003207/0.4618, allocations: 235.3 kB / 1.431 GB, free: 3.125 MB / 1.123 GB Notification: Performance of SimCode: time 1.082e-06/0.4618, allocations: 0 / 1.431 GB, free: 3.125 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05878/0.5206, allocations: 20.1 MB / 1.451 GB, free: 15.29 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.733/9.254, allocations: 11.34 kB / 1.451 GB, free: 15.29 MB / 1.154 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv --start-time 0 --stop-time 500 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 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.csv","/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] "Error: Could not read variable tan.V in file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv. Warning: Get data of variable tan.V from file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv failed! Error: Could not read variable sou.T in file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv. Warning: Get data of variable sou.T from file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv failed! Error: Could not read variable tan.sta_b.T in file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv. Warning: Get data of variable tan.sta_b.T from file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv failed! Error: Could not read variable noTan.sta_b.T in file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv. Warning: Get data of variable noTan.sta_b.T from file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.055091235786676]