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.001522/0.001522, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001707/0.001707, allocations: 219 kB / 23.04 MB, free: 5.074 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.573/1.573, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.532/3.532, allocations: 0.5003 GB / 0.8061 GB, free: 26.96 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Validation.Tanks,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Validation_Tanks",fmuType="cs",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.002309/0.002309, allocations: 65.09 kB / 1.171 GB, free: 19.6 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4635/0.4658, allocations: 179 MB / 1.345 GB, free: 468 kB / 1.029 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.05101/0.5168, allocations: 42.59 MB / 1.387 GB, free: 5.711 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.01958/0.5364, allocations: 11.27 MB / 1.398 GB, free: 10.41 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00269/0.5391, allocations: 71.38 kB / 1.398 GB, free: 10.34 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002515/0.5416, allocations: 441.1 kB / 1.398 GB, free: 9.902 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.007027/0.5486, allocations: 1.23 MB / 1.4 GB, free: 8.668 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003673/0.5523, allocations: 0.7909 MB / 1.4 GB, free: 7.883 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.005406/0.5577, allocations: 2.12 MB / 1.402 GB, free: 5.75 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001481/0.5592, allocations: 0.5209 MB / 1.403 GB, free: 5.215 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004181/0.5633, allocations: 1.018 MB / 1.404 GB, free: 4.195 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00163/0.565, allocations: 0.5795 MB / 1.405 GB, free: 3.613 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.000167/0.5651, allocations: 60 kB / 1.405 GB, free: 3.555 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002619/0.5678, allocations: 0.6823 MB / 1.405 GB, free: 2.871 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0002949/0.5681, allocations: 187.2 kB / 1.405 GB, free: 2.688 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0006622/0.5687, allocations: 402.2 kB / 1.406 GB, free: 2.293 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.002791/0.5715, allocations: 1.285 MB / 1.407 GB, free: 1.004 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.5715, allocations: 0 / 1.407 GB, free: 1.004 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.914e-06/0.5715, allocations: 0 / 1.407 GB, free: 1.004 MB / 1.092 GB Notification: Performance of Transformations before backend: time 1.332e-05/0.5715, allocations: 4 kB / 1.407 GB, free: 1 MB / 1.092 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.00218/0.5737, allocations: 1.006 MB / 1.408 GB, free: 15.96 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.5738, allocations: 12.02 kB / 1.408 GB, free: 15.95 MB / 1.107 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.818e-05/0.5738, allocations: 13.19 kB / 1.408 GB, free: 15.93 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.5739, allocations: 90.7 kB / 1.408 GB, free: 15.83 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002453/0.5742, allocations: 88.42 kB / 1.408 GB, free: 15.75 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.5754, allocations: 0.6362 MB / 1.409 GB, free: 15.09 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.5755, allocations: 44.94 kB / 1.409 GB, free: 15.05 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.183e-05/0.5756, allocations: 55.94 kB / 1.409 GB, free: 14.99 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.5766, allocations: 0.5585 MB / 1.409 GB, free: 14.4 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.5766, allocations: 0 / 1.409 GB, free: 14.4 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.466e-05/0.5767, allocations: 24 kB / 1.41 GB, free: 14.38 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.5767, allocations: 16 kB / 1.41 GB, free: 14.36 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006959/0.5774, allocations: 383.7 kB / 1.41 GB, free: 13.99 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.003418/0.5808, allocations: 2.607 MB / 1.412 GB, free: 11.21 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006153/0.5814, allocations: 226.6 kB / 1.413 GB, free: 10.98 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.5816, allocations: 108.8 kB / 1.413 GB, free: 10.87 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001803/0.5834, allocations: 0.8235 MB / 1.414 GB, free: 10.03 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.5835, allocations: 30.56 kB / 1.414 GB, free: 9.988 MB / 1.107 GB Notification: Performance of pre-optimization done (n=20): time 2.053e-06/0.5835, allocations: 4 kB / 1.414 GB, free: 9.984 MB / 1.107 GB Notification: Performance of matching and sorting (n=20): time 0.000721/0.5842, allocations: 326.4 kB / 1.414 GB, free: 9.66 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.5842, allocations: 55.41 kB / 1.414 GB, free: 9.594 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008365/0.5851, allocations: 0.6372 MB / 1.415 GB, free: 8.949 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.5851, allocations: 29.7 kB / 1.415 GB, free: 8.914 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003239/0.5854, allocations: 359.9 kB / 1.415 GB, free: 8.559 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 8.051e-05/0.5855, allocations: 75.38 kB / 1.415 GB, free: 8.484 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.5856, allocations: 77.64 kB / 1.415 GB, free: 8.402 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0002132/0.5859, allocations: 378.8 kB / 1.415 GB, free: 8.023 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.5861, allocations: 87.89 kB / 1.416 GB, free: 7.938 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/0.5864, allocations: 233.8 kB / 1.416 GB, free: 7.645 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005029/0.5869, allocations: 347.1 kB / 1.416 GB, free: 7.242 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.5869, allocations: 4 kB / 1.416 GB, free: 7.238 MB / 1.107 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006979/0.5876, allocations: 403.5 kB / 1.416 GB, free: 6.84 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.5876, allocations: 17.61 kB / 1.417 GB, free: 6.824 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.5876, allocations: 4 kB / 1.417 GB, free: 6.82 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.5876, allocations: 11.98 kB / 1.417 GB, free: 6.809 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.5879, allocations: 75.89 kB / 1.417 GB, free: 6.734 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.911e-05/0.5879, allocations: 11.94 kB / 1.417 GB, free: 6.723 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.5883, allocations: 55.55 kB / 1.417 GB, free: 6.668 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.101e-05/0.5883, allocations: 24 kB / 1.417 GB, free: 6.645 MB / 1.107 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.0002879/0.5886, allocations: 205.8 kB / 1.417 GB, free: 6.434 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.5887, allocations: 71.52 kB / 1.417 GB, free: 6.363 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006624/0.5894, allocations: 347.7 kB / 1.417 GB, free: 6.016 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.5894, allocations: 4 kB / 1.417 GB, free: 6.012 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.5894, allocations: 0 / 1.417 GB, free: 6.012 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000538/0.5899, allocations: 490.6 kB / 1.418 GB, free: 5.465 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.5914, allocations: 0.9388 MB / 1.419 GB, free: 4.465 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5914, allocations: 7.969 kB / 1.419 GB, free: 4.457 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.5916, allocations: 39.97 kB / 1.419 GB, free: 4.418 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.5916, allocations: 4 kB / 1.419 GB, free: 4.414 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.5916, allocations: 11.98 kB / 1.419 GB, free: 4.402 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5916, allocations: 0 / 1.419 GB, free: 4.402 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5916, allocations: 0 / 1.419 GB, free: 4.402 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008439/0.5925, allocations: 0.5611 MB / 1.419 GB, free: 3.812 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.5927, allocations: 95.47 kB / 1.419 GB, free: 3.719 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.353e-05/0.5928, allocations: 8 kB / 1.419 GB, free: 3.711 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002763/0.5931, allocations: 15.94 kB / 1.419 GB, free: 3.695 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.543e-05/0.5931, allocations: 15.97 kB / 1.419 GB, free: 3.68 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.5931, allocations: 15.98 kB / 1.419 GB, free: 3.664 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0005963/0.5937, allocations: 471 kB / 1.42 GB, free: 3.211 MB / 1.107 GB Notification: Performance of sort global known variables: time 9e-08/0.5937, allocations: 4 kB / 1.42 GB, free: 3.207 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.0007937/0.5945, allocations: 215.5 kB / 1.42 GB, free: 2.996 MB / 1.107 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.001572/0.5961, allocations: 1.271 MB / 1.421 GB, free: 1.684 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.0005579/0.5967, allocations: 250.5 kB / 1.422 GB, free: 1.441 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5967, allocations: 0 / 1.422 GB, free: 1.441 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.5969, allocations: 112.1 kB / 1.422 GB, free: 1.332 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001991/0.5989, allocations: 436.5 kB / 1.422 GB, free: 0.9102 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007366/0.6062, allocations: 4.958 MB / 1.427 GB, free: 11.73 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.6069, allocations: 0.9057 MB / 1.428 GB, free: 10.79 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.0006115/0.6075, allocations: 129.7 kB / 1.428 GB, free: 10.66 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003455/0.6078, allocations: 235.3 kB / 1.428 GB, free: 10.44 MB / 1.123 GB Notification: Performance of SimCode: time 1.072e-06/0.6078, allocations: 0 / 1.428 GB, free: 10.44 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05701/0.6648, allocations: 20.5 MB / 1.448 GB, free: 6.242 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.99, allocations: 6.812 kB / 1.448 GB, free: 6.238 MB / 1.139 GB " [Timeout remaining time 287] (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: 20.66740935499547]