Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_10_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.001322/0.001322, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.538/2.538, allocations: 437.1 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 60.14 kB / 0.8693 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5073/0.5086, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1699/0.6786, allocations: 176.8 MB / 1.19 GB, free: 0.9961 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01559/0.6942, allocations: 12.81 MB / 1.203 GB, free: 4.145 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.6952, allocations: 31.81 kB / 1.203 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.6965, allocations: 472.3 kB / 1.203 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002634/0.6991, allocations: 1.037 MB / 1.204 GB, free: 2.609 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0039/0.703, allocations: 1.859 MB / 1.206 GB, free: 0.7578 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00253/0.7056, allocations: 2.528 MB / 1.208 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001726/0.7073, allocations: 1.598 MB / 1.21 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002829/0.7102, allocations: 1.414 MB / 1.211 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008524/0.711, allocations: 0.8831 MB / 1.212 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002267/0.7113, allocations: 175.9 kB / 1.212 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002148/0.7134, allocations: 1.396 MB / 1.214 GB, free: 8.719 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003791/0.7138, allocations: 494.5 kB / 1.214 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0007081/0.7145, allocations: 0.8825 MB / 1.215 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002637/0.7172, allocations: 2.746 MB / 1.218 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.7172, allocations: 0 / 1.218 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.222e-06/0.7172, allocations: 4 kB / 1.218 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.652e-05/0.7172, allocations: 0 / 1.218 GB, free: 4.59 MB / 0.9669 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.003058/0.7203, allocations: 2.028 MB / 1.22 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.7203, allocations: 12.03 kB / 1.22 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002226/0.7206, allocations: 202.7 kB / 1.22 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002605/0.7232, allocations: 405.5 kB / 1.22 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.7245, allocations: 0.9956 MB / 1.221 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.326e-05/0.7246, allocations: 106.7 kB / 1.221 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.7248, allocations: 140 kB / 1.221 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/0.7272, allocations: 1.514 MB / 1.223 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/0.7272, allocations: 3.938 kB / 1.223 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.7273, allocations: 60 kB / 1.223 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.36e-05/0.7274, allocations: 36 kB / 1.223 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/0.73, allocations: 1.583 MB / 1.225 GB, free: 13.32 MB / 0.9825 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.006499/0.7365, allocations: 5.349 MB / 1.23 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.7391, allocations: 1.525 MB / 1.231 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008539/0.74, allocations: 483.6 kB / 1.232 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007103/0.7407, allocations: 417.3 kB / 1.232 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/0.7419, allocations: 0.6934 MB / 1.233 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=107): time 2.324e-06/0.7419, allocations: 3.938 kB / 1.233 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of matching and sorting (n=107): time 0.004236/0.7461, allocations: 1.668 MB / 1.234 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.7462, allocations: 196.9 kB / 1.235 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.7473, allocations: 0.8921 MB / 1.236 GB, free: 1.539 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.236e-05/0.7474, allocations: 49.7 kB / 1.236 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004119/0.7478, allocations: 0.5935 MB / 1.236 GB, free: 0.8828 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002544/0.7481, allocations: 354.9 kB / 1.237 GB, free: 0.5312 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.7484, allocations: 202.4 kB / 1.237 GB, free: 336 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.7485, allocations: 341.9 kB / 1.237 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000774/0.7493, allocations: 373.8 kB / 1.237 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009277/0.7502, allocations: 0.5632 MB / 1.238 GB, free: 15 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001709/0.7519, allocations: 0.9332 MB / 1.239 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.752, allocations: 0 / 1.239 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002625/0.7546, allocations: 1.184 MB / 1.24 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.7546, allocations: 7.984 kB / 1.24 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.7546, allocations: 4 kB / 1.24 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006099/0.7552, allocations: 85.19 kB / 1.24 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.7564, allocations: 251.5 kB / 1.24 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002093/0.7585, allocations: 1.654 MB / 1.242 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009226/0.7594, allocations: 132.1 kB / 1.242 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.972e-05/0.7595, allocations: 43.98 kB / 1.242 GB, free: 10.52 MB / 0.9981 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.000474/0.76, allocations: 348.5 kB / 1.242 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.7602, allocations: 130.5 kB / 1.243 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/0.7634, allocations: 1.433 MB / 1.244 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-06/0.7635, allocations: 12 kB / 1.244 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.7635, allocations: 0 / 1.244 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.7635, allocations: 3.984 kB / 1.244 GB, free: 8.57 MB / 0.9981 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.004484/0.768, allocations: 2.874 MB / 1.247 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.768, allocations: 0 / 1.247 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.769, allocations: 223.7 kB / 1.247 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004637/0.7695, allocations: 80.73 kB / 1.247 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.065e-05/0.7696, allocations: 31.97 kB / 1.247 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.7714, allocations: 1.675 MB / 1.249 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7714, allocations: 0 / 1.249 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.774, allocations: 1.324 MB / 1.25 GB, free: 2.117 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004542/0.7745, allocations: 363.1 kB / 1.25 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.7747, allocations: 27.94 kB / 1.25 GB, free: 1.715 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009584/0.7756, allocations: 75.91 kB / 1.25 GB, free: 1.641 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.7758, allocations: 84.89 kB / 1.251 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.956e-05/0.7759, allocations: 51.95 kB / 1.251 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007471/0.7767, allocations: 0.6189 MB / 1.251 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.383e-06/0.7767, allocations: 0 / 1.251 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001062/0.7778, allocations: 498.8 kB / 1.252 GB, free: 396 kB / 0.9981 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.4026/1.18, allocations: 2.477 MB / 1.254 GB, free: 231.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00353/1.184, allocations: 1.436 MB / 1.256 GB, free: 231.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/1.184, allocations: 1.656 kB / 1.256 GB, free: 231.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001258/1.185, allocations: 0.6794 MB / 1.256 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/1.187, allocations: 0.5278 MB / 1.257 GB, free: 230.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/1.202, allocations: 9.428 MB / 1.266 GB, free: 225.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007087/1.203, allocations: 1.211 MB / 1.267 GB, free: 224.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001481/1.204, allocations: 379.1 kB / 1.267 GB, free: 224.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007027/1.205, allocations: 0.5724 MB / 1.268 GB, free: 224.5 MB / 0.9981 GB Notification: Performance of SimCode: time 5.51e-07/1.205, allocations: 0 / 1.268 GB, free: 224.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05277/1.258, allocations: 33.69 MB / 1.301 GB, free: 202.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/12.6, allocations: 11.72 kB / 1.301 GB, free: 202.3 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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]