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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.00743/0.00743, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001908/0.001908, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.556/2.556, allocations: 469.4 MB / 0.7422 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.91 kB / 1.064 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6401/0.6414, allocations: 159.1 MB / 1.22 GB, free: 2.453 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1723/0.8137, allocations: 176.8 MB / 1.392 GB, free: 0.9922 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.0155/0.8293, allocations: 12.81 MB / 1.405 GB, free: 4.141 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009453/0.8303, allocations: 31.81 kB / 1.405 GB, free: 4.109 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.8314, allocations: 480.4 kB / 1.405 GB, free: 3.637 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.8338, allocations: 1.053 MB / 1.406 GB, free: 2.582 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.003922/0.8378, allocations: 1.893 MB / 1.408 GB, free: 0.6953 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.00232/0.8401, allocations: 2.543 MB / 1.411 GB, free: 14.14 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.8419, allocations: 1.613 MB / 1.412 GB, free: 12.47 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003073/0.845, allocations: 1.455 MB / 1.414 GB, free: 11.04 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009016/0.8459, allocations: 0.8856 MB / 1.415 GB, free: 10.15 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.8461, allocations: 172 kB / 1.415 GB, free: 9.984 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002264/0.8484, allocations: 1.419 MB / 1.416 GB, free: 8.562 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0004059/0.8488, allocations: 0.4946 MB / 1.417 GB, free: 8.066 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0007457/0.8496, allocations: 0.8747 MB / 1.417 GB, free: 7.188 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003083/0.8527, allocations: 2.811 MB / 1.42 GB, free: 4.367 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.8527, allocations: 4 kB / 1.42 GB, free: 4.363 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.222e-06/0.8527, allocations: 0 / 1.42 GB, free: 4.363 MB / 1.139 GB Notification: Performance of Transformations before backend: time 2.033e-05/0.8527, allocations: 0 / 1.42 GB, free: 4.363 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.003252/0.856, allocations: 2.084 MB / 1.422 GB, free: 2.215 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.856, allocations: 16.02 kB / 1.422 GB, free: 2.199 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/0.8563, allocations: 206.7 kB / 1.422 GB, free: 1.988 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00264/0.8589, allocations: 406.6 kB / 1.423 GB, free: 1.59 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001571/0.8605, allocations: 1.047 MB / 1.424 GB, free: 0.4961 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.195e-05/0.8606, allocations: 102.7 kB / 1.424 GB, free: 404 kB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/0.8608, allocations: 128 kB / 1.424 GB, free: 276 kB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.8633, allocations: 1.526 MB / 1.426 GB, free: 14.66 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.793e-05/0.8633, allocations: 3.938 kB / 1.426 GB, free: 14.66 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.8635, allocations: 60 kB / 1.426 GB, free: 14.6 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.538e-05/0.8635, allocations: 35.94 kB / 1.426 GB, free: 14.57 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.8662, allocations: 1.587 MB / 1.427 GB, free: 12.97 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.006857/0.8731, allocations: 5.307 MB / 1.432 GB, free: 7.355 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/0.8757, allocations: 1.517 MB / 1.434 GB, free: 5.766 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008415/0.8766, allocations: 483.6 kB / 1.434 GB, free: 5.289 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007413/0.8773, allocations: 425.3 kB / 1.435 GB, free: 4.801 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/0.8785, allocations: 0.6918 MB / 1.435 GB, free: 4.09 MB / 1.154 GB Notification: Performance of pre-optimization done (n=107): time 2.615e-06/0.8785, allocations: 0 / 1.435 GB, free: 4.09 MB / 1.154 GB Notification: Performance of matching and sorting (n=107): time 0.00434/0.8829, allocations: 1.669 MB / 1.437 GB, free: 2.395 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.703e-05/0.883, allocations: 196.9 kB / 1.437 GB, free: 2.16 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.8841, allocations: 0.8922 MB / 1.438 GB, free: 1.246 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 8.876e-05/0.8842, allocations: 49.7 kB / 1.438 GB, free: 1.191 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/0.8847, allocations: 0.6025 MB / 1.439 GB, free: 0.582 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.885, allocations: 376.8 kB / 1.439 GB, free: 216 kB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/0.8853, allocations: 198.5 kB / 1.439 GB, free: 8 kB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.8854, allocations: 342 kB / 1.44 GB, free: 15.66 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007828/0.8862, allocations: 381.8 kB / 1.44 GB, free: 15.29 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009506/0.8872, allocations: 0.5593 MB / 1.441 GB, free: 14.67 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.8889, allocations: 0.9332 MB / 1.441 GB, free: 13.7 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.8889, allocations: 3.984 kB / 1.441 GB, free: 13.69 MB / 1.17 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002637/0.8916, allocations: 1.188 MB / 1.443 GB, free: 12.49 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.8916, allocations: 8 kB / 1.443 GB, free: 12.48 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.8916, allocations: 4.406 kB / 1.443 GB, free: 12.48 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00059/0.8922, allocations: 92.75 kB / 1.443 GB, free: 12.39 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.8933, allocations: 247.7 kB / 1.443 GB, free: 12.14 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.8954, allocations: 1.644 MB / 1.445 GB, free: 10.35 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009658/0.8964, allocations: 135.1 kB / 1.445 GB, free: 10.22 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.403e-05/0.8965, allocations: 47.97 kB / 1.445 GB, free: 10.17 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.000529/0.897, allocations: 345.2 kB / 1.445 GB, free: 9.828 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/0.8972, allocations: 135.2 kB / 1.445 GB, free: 9.695 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003166/0.9004, allocations: 1.437 MB / 1.447 GB, free: 8.25 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.9004, allocations: 12 kB / 1.447 GB, free: 8.238 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.9004, allocations: 0 / 1.447 GB, free: 8.238 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.9005, allocations: 7.969 kB / 1.447 GB, free: 8.23 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.004693/0.9051, allocations: 2.892 MB / 1.449 GB, free: 5.258 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.9052, allocations: 0 / 1.449 GB, free: 5.258 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.9062, allocations: 215.8 kB / 1.45 GB, free: 5.047 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004514/0.9067, allocations: 80.66 kB / 1.45 GB, free: 4.965 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.347e-05/0.9068, allocations: 35.97 kB / 1.45 GB, free: 4.93 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/0.9086, allocations: 1.67 MB / 1.451 GB, free: 3.113 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.9086, allocations: 3.984 kB / 1.451 GB, free: 3.109 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.9113, allocations: 1.327 MB / 1.453 GB, free: 1.766 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005386/0.9118, allocations: 367.8 kB / 1.453 GB, free: 1.387 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.912, allocations: 23.94 kB / 1.453 GB, free: 1.363 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009699/0.913, allocations: 79.92 kB / 1.453 GB, free: 1.285 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.9131, allocations: 84.88 kB / 1.453 GB, free: 1.199 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.9133, allocations: 48.03 kB / 1.453 GB, free: 1.152 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0007858/0.9141, allocations: 0.6189 MB / 1.454 GB, free: 0.5234 MB / 1.17 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9141, allocations: 0 / 1.454 GB, free: 0.5234 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.00112/0.9152, allocations: 0.4909 MB / 1.454 GB, free: 32 kB / 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.004345/0.9195, allocations: 2.495 MB / 1.457 GB, free: 13.7 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.002219/0.9218, allocations: 1.113 MB / 1.458 GB, free: 12.57 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.9218, allocations: 3.906 kB / 1.458 GB, free: 12.57 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.923, allocations: 0.6876 MB / 1.459 GB, free: 11.87 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.9252, allocations: 0.5289 MB / 1.459 GB, free: 11.36 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/0.939, allocations: 8.926 MB / 1.468 GB, free: 2.223 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007286/0.9398, allocations: 1.205 MB / 1.469 GB, free: 0.9883 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001258/0.9411, allocations: 385.9 kB / 1.469 GB, free: 0.6094 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000784/0.9418, allocations: 0.5695 MB / 1.47 GB, free: 40 kB / 1.186 GB Notification: Performance of SimCode: time 5.91e-07/0.9419, allocations: 0 / 1.47 GB, free: 40 kB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06292/1.005, allocations: 33.99 MB / 1.503 GB, free: 14.51 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/14.26, allocations: 6.562 kB / 1.503 GB, free: 14.5 MB / 1.232 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 50 --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]