Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",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.004943/0.004944, allocations: 97.23 kB / 15.73 MB, free: 6.484 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.001498/0.001498, allocations: 192.1 kB / 16.67 MB, free: 6.391 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.906/2.906, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 59.91 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.28, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.6981/0.9782, allocations: 176.8 MB / 1.414 GB, free: 0.875 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.01711/0.9953, allocations: 12.81 MB / 1.427 GB, free: 6.52 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007835/0.9961, allocations: 35.47 kB / 1.427 GB, free: 6.504 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.9973, allocations: 476.5 kB / 1.427 GB, free: 6.098 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.002366/0.9997, allocations: 1.021 MB / 1.428 GB, free: 5.301 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.004011/1.004, allocations: 1.875 MB / 1.43 GB, free: 3.898 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.002458/1.006, allocations: 2.525 MB / 1.432 GB, free: 2.383 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00182/1.008, allocations: 1.598 MB / 1.434 GB, free: 1.328 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003573/1.012, allocations: 1.553 MB / 1.435 GB, free: 428 kB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009882/1.013, allocations: 0.8734 MB / 1.436 GB, free: 15.83 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0002307/1.013, allocations: 174.8 kB / 1.437 GB, free: 15.83 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002488/1.015, allocations: 1.419 MB / 1.438 GB, free: 14.55 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0004829/1.016, allocations: 0.4907 MB / 1.438 GB, free: 14.06 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0008768/1.017, allocations: 0.8669 MB / 1.439 GB, free: 13.19 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003363/1.02, allocations: 2.814 MB / 1.442 GB, free: 10.37 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/1.02, allocations: 0 / 1.442 GB, free: 10.37 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.152e-06/1.02, allocations: 0 / 1.442 GB, free: 10.37 MB / 1.139 GB Notification: Performance of Transformations before backend: time 1.546e-05/1.02, allocations: 0 / 1.442 GB, free: 10.37 MB / 1.139 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.003444/1.024, allocations: 2.091 MB / 1.444 GB, free: 8.211 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/1.024, allocations: 12.03 kB / 1.444 GB, free: 8.199 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000256/1.024, allocations: 206.7 kB / 1.444 GB, free: 7.988 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002651/1.027, allocations: 410.6 kB / 1.445 GB, free: 7.586 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001611/1.028, allocations: 1.035 MB / 1.446 GB, free: 6.504 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.202e-05/1.028, allocations: 110.6 kB / 1.446 GB, free: 6.395 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/1.028, allocations: 128 kB / 1.446 GB, free: 6.27 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/1.031, allocations: 1.525 MB / 1.447 GB, free: 4.668 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/1.031, allocations: 4 kB / 1.447 GB, free: 4.664 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/1.031, allocations: 59.94 kB / 1.447 GB, free: 4.605 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/1.031, allocations: 39.98 kB / 1.447 GB, free: 4.566 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002982/1.034, allocations: 1.583 MB / 1.449 GB, free: 2.977 MB / 1.139 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.00744/1.042, allocations: 5.412 MB / 1.454 GB, free: 13.22 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002865/1.045, allocations: 1.515 MB / 1.456 GB, free: 11.62 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009393/1.046, allocations: 482.4 kB / 1.456 GB, free: 11.15 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007806/1.046, allocations: 429.2 kB / 1.457 GB, free: 10.66 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001341/1.048, allocations: 0.6957 MB / 1.457 GB, free: 9.941 MB / 1.154 GB Notification: Performance of pre-optimization done (n=107): time 2.445e-06/1.048, allocations: 0 / 1.457 GB, free: 9.941 MB / 1.154 GB Notification: Performance of matching and sorting (n=107): time 0.004567/1.052, allocations: 1.669 MB / 1.459 GB, free: 8.25 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/1.053, allocations: 200.9 kB / 1.459 GB, free: 8.008 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/1.054, allocations: 0.8922 MB / 1.46 GB, free: 7.094 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 9.101e-05/1.054, allocations: 41.7 kB / 1.46 GB, free: 7.047 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005222/1.054, allocations: 0.6103 MB / 1.461 GB, free: 6.43 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/1.055, allocations: 368.8 kB / 1.461 GB, free: 6.066 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003394/1.055, allocations: 206.5 kB / 1.461 GB, free: 5.859 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001615/1.055, allocations: 341.9 kB / 1.462 GB, free: 5.52 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008466/1.056, allocations: 373.8 kB / 1.462 GB, free: 5.156 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/1.057, allocations: 0.5671 MB / 1.462 GB, free: 4.52 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/1.059, allocations: 0.9332 MB / 1.463 GB, free: 3.547 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/1.059, allocations: 0 / 1.463 GB, free: 3.547 MB / 1.154 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002842/1.062, allocations: 1.196 MB / 1.464 GB, free: 2.34 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/1.062, allocations: 4 kB / 1.464 GB, free: 2.336 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/1.062, allocations: 4 kB / 1.465 GB, free: 2.332 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006248/1.063, allocations: 89.17 kB / 1.465 GB, free: 2.242 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/1.064, allocations: 243.7 kB / 1.465 GB, free: 2.004 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/1.066, allocations: 1.652 MB / 1.466 GB, free: 216 kB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009119/1.067, allocations: 135.2 kB / 1.467 GB, free: 80 kB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.121e-05/1.067, allocations: 43.97 kB / 1.467 GB, free: 36 kB / 1.154 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005457/1.068, allocations: 345.5 kB / 1.467 GB, free: 15.69 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002356/1.068, allocations: 127.2 kB / 1.467 GB, free: 15.56 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003465/1.071, allocations: 1.433 MB / 1.468 GB, free: 14.12 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/1.071, allocations: 15.98 kB / 1.468 GB, free: 14.1 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/1.071, allocations: 4 kB / 1.468 GB, free: 14.1 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/1.071, allocations: 3.984 kB / 1.468 GB, free: 14.09 MB / 1.17 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 postOpt removeSimpleEquations (simulation): time 0.005021/1.076, allocations: 2.884 MB / 1.471 GB, free: 11.12 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.076, allocations: 0 / 1.471 GB, free: 11.12 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/1.077, allocations: 219.7 kB / 1.472 GB, free: 10.91 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004547/1.078, allocations: 76.78 kB / 1.472 GB, free: 10.83 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.471e-05/1.078, allocations: 35.91 kB / 1.472 GB, free: 10.79 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002099/1.08, allocations: 1.67 MB / 1.473 GB, free: 8.98 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.08, allocations: 0 / 1.473 GB, free: 8.98 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00287/1.083, allocations: 1.334 MB / 1.475 GB, free: 7.629 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005154/1.084, allocations: 367.8 kB / 1.475 GB, free: 7.25 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/1.084, allocations: 24 kB / 1.475 GB, free: 7.227 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009676/1.085, allocations: 83.91 kB / 1.475 GB, free: 7.145 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/1.085, allocations: 84.89 kB / 1.475 GB, free: 7.062 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/1.085, allocations: 51.95 kB / 1.475 GB, free: 7.012 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0008711/1.086, allocations: 0.615 MB / 1.476 GB, free: 6.387 MB / 1.17 GB Notification: Performance of sort global known variables: time 2.01e-07/1.086, allocations: 0 / 1.476 GB, free: 6.387 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.001122/1.087, allocations: 0.4948 MB / 1.476 GB, free: 5.891 MB / 1.17 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005316/1.092, allocations: 2.494 MB / 1.479 GB, free: 3.562 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.002363/1.095, allocations: 1.113 MB / 1.48 GB, free: 2.438 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.095, allocations: 4 kB / 1.48 GB, free: 2.434 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.001357/1.096, allocations: 0.6797 MB / 1.48 GB, free: 1.738 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/1.098, allocations: 0.5288 MB / 1.481 GB, free: 1.23 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/1.114, allocations: 8.924 MB / 1.49 GB, free: 8.102 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009259/1.115, allocations: 1.209 MB / 1.491 GB, free: 6.863 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001205/1.116, allocations: 393.8 kB / 1.491 GB, free: 6.477 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008752/1.117, allocations: 0.5734 MB / 1.492 GB, free: 5.906 MB / 1.186 GB Notification: Performance of SimCode: time 3.61e-07/1.117, allocations: 0 / 1.492 GB, free: 5.906 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07217/1.189, allocations: 33.99 MB / 1.525 GB, free: 4.363 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.76, allocations: 15.67 kB / 1.525 GB, free: 4.348 MB / 1.217 GB (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 Buildings_latest_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[503]=31536000.000000 File[7]=75686.400000 " Variables in the reference:time,senTem.T,senRelHum.phi,senMasFra.X Variables in the result:time,bou.ports[1].h_outflow,senMasFra.X,senRelHum.phi,senTem.T,senTem.port_a.Xi_outflow[1]