Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_11_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.004337/0.004337, allocations: 98.11 kB / 15.73 MB, free: 6.062 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.001261/0.001261, allocations: 196.4 kB / 16.67 MB, free: 5.973 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.757/2.757, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 71.88 kB / 1.065 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6544/0.6564, allocations: 159.1 MB / 1.22 GB, free: 2.008 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1994/0.8558, allocations: 176.8 MB / 1.393 GB, free: 0.5547 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.01718/0.873, allocations: 12.83 MB / 1.405 GB, free: 3.688 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008125/0.8738, allocations: 27.88 kB / 1.405 GB, free: 3.66 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.875, allocations: 476.3 kB / 1.406 GB, free: 3.191 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.002416/0.8775, allocations: 1.018 MB / 1.407 GB, free: 2.172 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.004076/0.8816, allocations: 1.875 MB / 1.409 GB, free: 308 kB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.002706/0.8843, allocations: 2.539 MB / 1.411 GB, free: 13.75 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002058/0.8864, allocations: 1.605 MB / 1.413 GB, free: 12.09 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003514/0.8899, allocations: 1.415 MB / 1.414 GB, free: 10.7 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.891, allocations: 0.8753 MB / 1.415 GB, free: 9.82 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0002485/0.8912, allocations: 172 kB / 1.415 GB, free: 9.652 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002517/0.8938, allocations: 1.435 MB / 1.416 GB, free: 8.215 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0004781/0.8943, allocations: 494.5 kB / 1.417 GB, free: 7.73 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0008955/0.8952, allocations: 0.8786 MB / 1.418 GB, free: 6.848 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003463/0.8986, allocations: 2.815 MB / 1.421 GB, free: 4.023 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.8986, allocations: 0 / 1.421 GB, free: 4.023 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8987, allocations: 0 / 1.421 GB, free: 4.023 MB / 1.139 GB Notification: Performance of Transformations before backend: time 1.804e-05/0.8987, allocations: 0 / 1.421 GB, free: 4.023 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.003507/0.9022, allocations: 2.084 MB / 1.423 GB, free: 1.875 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.9022, allocations: 8.625 kB / 1.423 GB, free: 1.867 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002579/0.9025, allocations: 214.5 kB / 1.423 GB, free: 1.648 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002707/0.9052, allocations: 418.5 kB / 1.423 GB, free: 1.238 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.9069, allocations: 1.032 MB / 1.424 GB, free: 164 kB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.907, allocations: 106.7 kB / 1.424 GB, free: 56 kB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.9072, allocations: 136 kB / 1.424 GB, free: 15.92 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002755/0.9099, allocations: 1.517 MB / 1.426 GB, free: 14.32 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.91, allocations: 0 / 1.426 GB, free: 14.32 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001542/0.9101, allocations: 75.97 kB / 1.426 GB, free: 14.25 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.893e-05/0.9102, allocations: 32 kB / 1.426 GB, free: 14.22 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.9132, allocations: 1.575 MB / 1.428 GB, free: 12.64 MB / 1.154 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.007431/0.9206, allocations: 5.312 MB / 1.433 GB, free: 7.012 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002913/0.9235, allocations: 1.51 MB / 1.434 GB, free: 5.43 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009383/0.9245, allocations: 484.1 kB / 1.435 GB, free: 4.953 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007788/0.9253, allocations: 429.3 kB / 1.435 GB, free: 4.461 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.9266, allocations: 0.6995 MB / 1.436 GB, free: 3.742 MB / 1.154 GB Notification: Performance of pre-optimization done (n=107): time 2.414e-06/0.9266, allocations: 0 / 1.436 GB, free: 3.742 MB / 1.154 GB Notification: Performance of matching and sorting (n=107): time 0.004562/0.9312, allocations: 1.669 MB / 1.437 GB, free: 2.047 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.9313, allocations: 192.9 kB / 1.438 GB, free: 1.816 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.9325, allocations: 0.896 MB / 1.438 GB, free: 0.8984 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 8.852e-05/0.9326, allocations: 49.7 kB / 1.439 GB, free: 0.8438 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.000518/0.9332, allocations: 0.6025 MB / 1.439 GB, free: 240 kB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003281/0.9335, allocations: 372.8 kB / 1.439 GB, free: 15.87 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003479/0.9339, allocations: 202.5 kB / 1.44 GB, free: 15.66 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001711/0.934, allocations: 349.9 kB / 1.44 GB, free: 15.31 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000841/0.9349, allocations: 373.8 kB / 1.44 GB, free: 14.95 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.936, allocations: 0.5555 MB / 1.441 GB, free: 14.33 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.9379, allocations: 0.9371 MB / 1.442 GB, free: 13.35 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.9379, allocations: 0 / 1.442 GB, free: 13.35 MB / 1.17 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002846/0.9407, allocations: 1.192 MB / 1.443 GB, free: 12.15 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.9408, allocations: 8 kB / 1.443 GB, free: 12.14 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.9408, allocations: 0 / 1.443 GB, free: 12.14 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006112/0.9414, allocations: 88.94 kB / 1.443 GB, free: 12.05 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.9425, allocations: 243.7 kB / 1.443 GB, free: 11.81 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002299/0.9449, allocations: 1.651 MB / 1.445 GB, free: 10.01 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009161/0.9458, allocations: 139.1 kB / 1.445 GB, free: 9.875 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-05/0.9459, allocations: 43.97 kB / 1.445 GB, free: 9.832 MB / 1.17 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.00053/0.9464, allocations: 345.5 kB / 1.445 GB, free: 9.484 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.9467, allocations: 131.2 kB / 1.446 GB, free: 9.355 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003442/0.9501, allocations: 1.425 MB / 1.447 GB, free: 7.922 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.9501, allocations: 12 kB / 1.447 GB, free: 7.91 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.9502, allocations: 0 / 1.447 GB, free: 7.91 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.9502, allocations: 8.031 kB / 1.447 GB, free: 7.902 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.005008/0.9552, allocations: 2.887 MB / 1.45 GB, free: 4.93 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.9552, allocations: 3.984 kB / 1.45 GB, free: 4.926 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.9563, allocations: 219.7 kB / 1.45 GB, free: 4.711 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004641/0.9567, allocations: 76.73 kB / 1.45 GB, free: 4.633 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.133e-05/0.9568, allocations: 31.97 kB / 1.45 GB, free: 4.602 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/0.9589, allocations: 1.67 MB / 1.452 GB, free: 2.785 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.9589, allocations: 4.031 kB / 1.452 GB, free: 2.781 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.9618, allocations: 1.331 MB / 1.453 GB, free: 1.434 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005101/0.9624, allocations: 363.8 kB / 1.453 GB, free: 1.059 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.9625, allocations: 31.92 kB / 1.453 GB, free: 1.027 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.9638, allocations: 79.45 kB / 1.453 GB, free: 0.957 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.964, allocations: 84.88 kB / 1.454 GB, free: 0.8711 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.9641, allocations: 59.97 kB / 1.454 GB, free: 0.8125 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0008646/0.965, allocations: 0.6227 MB / 1.454 GB, free: 184 kB / 1.17 GB Notification: Performance of sort global known variables: time 1.6e-07/0.965, allocations: 0 / 1.454 GB, free: 184 kB / 1.17 GB Notification: Performance of remove unused functions: time 0.001161/0.9661, allocations: 494.8 kB / 1.455 GB, free: 15.69 MB / 1.186 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.005298/0.9715, allocations: 2.496 MB / 1.457 GB, free: 13.36 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.002369/0.9738, allocations: 1.117 MB / 1.458 GB, free: 12.23 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.9739, allocations: 11.84 kB / 1.458 GB, free: 12.21 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.9752, allocations: 0.6758 MB / 1.459 GB, free: 11.53 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.9775, allocations: 0.5286 MB / 1.459 GB, free: 11.03 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/0.9927, allocations: 8.919 MB / 1.468 GB, free: 1.895 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009188/0.9937, allocations: 1.209 MB / 1.469 GB, free: 0.6562 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001248/0.9949, allocations: 385.9 kB / 1.47 GB, free: 284 kB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009009/0.9958, allocations: 0.5774 MB / 1.47 GB, free: 15.7 MB / 1.201 GB Notification: Performance of SimCode: time 4.41e-07/0.9959, allocations: 0 / 1.47 GB, free: 15.7 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07336/1.069, allocations: 33.99 MB / 1.503 GB, free: 14.18 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.78, allocations: 13.98 kB / 1.503 GB, free: 14.16 MB / 1.232 GB (rm -f Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 Buildings_11_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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]