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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00167/0.00167, allocations: 108 kB / 15.6 MB, free: 132 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.001898/0.001898, allocations: 193.2 kB / 16.53 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.675/2.675, allocations: 469.4 MB / 0.742 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001245, allocations: 66.69 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2384, allocations: 159.1 MB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.168/0.4064, allocations: 176.8 MB / 1.236 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01505/0.4214, allocations: 12.82 MB / 1.249 GB, free: 264 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008904/0.4224, allocations: 31.81 kB / 1.249 GB, free: 232 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.4585/0.8809, allocations: 464 kB / 1.249 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003024/0.8839, allocations: 1.029 MB / 1.25 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004199/0.8881, allocations: 1.868 MB / 1.252 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002848/0.891, allocations: 2.514 MB / 1.255 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002046/0.893, allocations: 1.61 MB / 1.256 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.896, allocations: 1.403 MB / 1.258 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008859/0.8969, allocations: 0.8801 MB / 1.258 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.00021/0.8972, allocations: 173.8 kB / 1.259 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002191/0.8994, allocations: 1.397 MB / 1.26 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003863/0.8998, allocations: 497 kB / 1.26 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000756/0.9005, allocations: 0.8809 MB / 1.261 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002822/0.9033, allocations: 2.747 MB / 1.264 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.9034, allocations: 3.188 kB / 1.264 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.202e-06/0.9034, allocations: 4.062 kB / 1.264 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.922e-05/0.9034, allocations: 0 / 1.264 GB, free: 4.449 MB / 0.9981 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.003179/0.9066, allocations: 2.027 MB / 1.266 GB, free: 19.46 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.9066, allocations: 10.31 kB / 1.266 GB, free: 19.46 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002368/0.9069, allocations: 202.1 kB / 1.266 GB, free: 19.41 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002575/0.9094, allocations: 408.7 kB / 1.266 GB, free: 19.32 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001306/0.9108, allocations: 0.9896 MB / 1.267 GB, free: 18.97 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.997e-05/0.9108, allocations: 104.8 kB / 1.268 GB, free: 18.97 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.911, allocations: 135.6 kB / 1.268 GB, free: 18.97 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/0.9136, allocations: 1.525 MB / 1.269 GB, free: 18.74 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.9136, allocations: 1.125 kB / 1.269 GB, free: 18.74 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.9138, allocations: 61.61 kB / 1.269 GB, free: 18.74 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.706e-05/0.9138, allocations: 33.34 kB / 1.269 GB, free: 18.74 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002782/0.9166, allocations: 1.583 MB / 1.271 GB, free: 18.73 MB / 1.014 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.007125/0.9237, allocations: 5.345 MB / 1.276 GB, free: 16.21 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.9263, allocations: 1.526 MB / 1.278 GB, free: 15.8 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00082/0.9271, allocations: 482.2 kB / 1.278 GB, free: 15.79 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007299/0.9279, allocations: 426.8 kB / 1.278 GB, free: 15.41 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.9291, allocations: 0.6902 MB / 1.279 GB, free: 15.34 MB / 1.014 GB Notification: Performance of pre-optimization done (n=107): time 2.605e-06/0.9291, allocations: 2.438 kB / 1.279 GB, free: 15.34 MB / 1.014 GB Notification: Performance of matching and sorting (n=107): time 0.004207/0.9333, allocations: 1.666 MB / 1.281 GB, free: 15.14 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.104e-05/0.9334, allocations: 198.2 kB / 1.281 GB, free: 14.92 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.9344, allocations: 0.8907 MB / 1.282 GB, free: 14.77 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.242e-05/0.9345, allocations: 50.36 kB / 1.282 GB, free: 14.73 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003301/0.9349, allocations: 0.6021 MB / 1.282 GB, free: 14.48 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.9351, allocations: 343.2 kB / 1.283 GB, free: 14.26 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002996/0.9354, allocations: 200.7 kB / 1.283 GB, free: 14.24 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.9355, allocations: 344.4 kB / 1.283 GB, free: 13.94 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007365/0.9362, allocations: 377.3 kB / 1.284 GB, free: 13.93 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008771/0.9371, allocations: 0.5639 MB / 1.284 GB, free: 13.76 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.9388, allocations: 0.9281 MB / 1.285 GB, free: 13.64 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.9388, allocations: 2.094 kB / 1.285 GB, free: 13.64 MB / 1.014 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002572/0.9413, allocations: 1.185 MB / 1.286 GB, free: 13.51 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.9414, allocations: 6.594 kB / 1.286 GB, free: 13.51 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.9414, allocations: 4.375 kB / 1.286 GB, free: 13.51 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005879/0.942, allocations: 88.39 kB / 1.286 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.9431, allocations: 247.7 kB / 1.287 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.945, allocations: 1.657 MB / 1.288 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009519/0.946, allocations: 124.5 kB / 1.288 GB, free: 12.06 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.542e-05/0.9461, allocations: 50.12 kB / 1.288 GB, free: 12.06 MB / 1.014 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.0004695/0.9466, allocations: 346.6 kB / 1.289 GB, free: 11.94 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/0.9468, allocations: 127.2 kB / 1.289 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003078/0.9499, allocations: 1.434 MB / 1.29 GB, free: 11.76 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.9499, allocations: 11.53 kB / 1.29 GB, free: 11.76 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.9499, allocations: 0 / 1.29 GB, free: 11.76 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.95, allocations: 6.609 kB / 1.29 GB, free: 11.76 MB / 1.014 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.004354/0.9543, allocations: 2.897 MB / 1.293 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.9543, allocations: 4.859 kB / 1.293 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009842/0.9553, allocations: 220.5 kB / 1.293 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000439/0.9558, allocations: 75.41 kB / 1.293 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.187e-05/0.9559, allocations: 29.95 kB / 1.293 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001764/0.9576, allocations: 1.675 MB / 1.295 GB, free: 9.848 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.9576, allocations: 5.156 kB / 1.295 GB, free: 9.844 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.9602, allocations: 1.319 MB / 1.296 GB, free: 9.617 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004553/0.9607, allocations: 360.7 kB / 1.297 GB, free: 9.441 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.9609, allocations: 21.53 kB / 1.297 GB, free: 9.441 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009618/0.9618, allocations: 81.05 kB / 1.297 GB, free: 9.441 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.962, allocations: 86.62 kB / 1.297 GB, free: 9.438 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.9621, allocations: 52.67 kB / 1.297 GB, free: 9.438 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0007477/0.9629, allocations: 0.6195 MB / 1.297 GB, free: 9.328 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.31e-07/0.9629, allocations: 0 / 1.297 GB, free: 9.328 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001204/0.9641, allocations: 0.4889 MB / 1.298 GB, free: 9.246 MB / 1.014 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.004183/0.9683, allocations: 2.488 MB / 1.3 GB, free: 8.352 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003233/0.9715, allocations: 1.431 MB / 1.302 GB, free: 8.207 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.9715, allocations: 5.844 kB / 1.302 GB, free: 8.207 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.9727, allocations: 0.6737 MB / 1.302 GB, free: 8.098 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/0.9748, allocations: 0.534 MB / 1.303 GB, free: 8.035 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.9878, allocations: 9.426 MB / 1.312 GB, free: 4.773 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006823/0.9885, allocations: 1.211 MB / 1.313 GB, free: 4.047 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001403/0.9899, allocations: 389.7 kB / 1.314 GB, free: 3.93 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006889/0.9906, allocations: 0.5701 MB / 1.314 GB, free: 3.922 MB / 1.014 GB Notification: Performance of SimCode: time 4.71e-07/0.9906, allocations: 3.938 kB / 1.314 GB, free: 3.918 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0562/1.047, allocations: 33.69 MB / 1.347 GB, free: 9.238 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/12.3, allocations: 23.16 kB / 1.347 GB, free: 9.227 MB / 1.029 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]