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.007179/0.007179, allocations: 103.8 kB / 15.73 MB, free: 6.039 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.001863/0.001863, allocations: 194.1 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.446/2.446, allocations: 437.1 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 67.89 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2367, allocations: 151.6 MB / 1.166 GB, free: 7.281 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.6496/0.8864, allocations: 176.8 MB / 1.339 GB, free: 12.63 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0161/0.9025, allocations: 12.82 MB / 1.351 GB, free: 3.465 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.9037, allocations: 31.72 kB / 1.351 GB, free: 3.453 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.9051, allocations: 469 kB / 1.352 GB, free: 3.16 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.002953/0.9081, allocations: 1.031 MB / 1.353 GB, free: 2.543 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004373/0.9125, allocations: 1.874 MB / 1.355 GB, free: 1.562 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.002942/0.9154, allocations: 2.543 MB / 1.357 GB, free: 316 kB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/0.9177, allocations: 1.593 MB / 1.359 GB, free: 15.52 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003654/0.9214, allocations: 1.421 MB / 1.36 GB, free: 14.89 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.9228, allocations: 0.8789 MB / 1.361 GB, free: 14.45 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0004249/0.9232, allocations: 171.6 kB / 1.361 GB, free: 14.45 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002695/0.9259, allocations: 1.428 MB / 1.362 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0006254/0.9266, allocations: 491.2 kB / 1.363 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.928, allocations: 0.8765 MB / 1.364 GB, free: 13.14 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.00386/0.9319, allocations: 2.802 MB / 1.367 GB, free: 11.56 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.9319, allocations: 1.281 kB / 1.367 GB, free: 11.56 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.082e-06/0.9319, allocations: 0 / 1.367 GB, free: 11.56 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.835e-05/0.932, allocations: 0 / 1.367 GB, free: 11.56 MB / 1.045 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.003823/0.9358, allocations: 2.033 MB / 1.369 GB, free: 10.02 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.9358, allocations: 9 kB / 1.369 GB, free: 10.02 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000222/0.9361, allocations: 208.1 kB / 1.369 GB, free: 9.859 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002638/0.9387, allocations: 409.8 kB / 1.369 GB, free: 9.672 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.9405, allocations: 1.024 MB / 1.37 GB, free: 8.867 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.255e-05/0.9405, allocations: 98.09 kB / 1.37 GB, free: 8.824 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001775/0.9407, allocations: 142.3 kB / 1.37 GB, free: 8.773 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002561/0.9433, allocations: 1.515 MB / 1.372 GB, free: 7.805 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.9433, allocations: 5.312 kB / 1.372 GB, free: 7.801 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001489/0.9435, allocations: 67.11 kB / 1.372 GB, free: 7.75 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.9435, allocations: 33 kB / 1.372 GB, free: 7.75 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00261/0.9461, allocations: 1.582 MB / 1.373 GB, free: 6.988 MB / 1.045 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.006746/0.9529, allocations: 5.305 MB / 1.379 GB, free: 2.496 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002505/0.9554, allocations: 1.521 MB / 1.38 GB, free: 1.5 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008254/0.9562, allocations: 483 kB / 1.381 GB, free: 1.258 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007207/0.957, allocations: 429.1 kB / 1.381 GB, free: 0.832 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.9582, allocations: 0.684 MB / 1.382 GB, free: 420 kB / 1.045 GB Notification: Performance of pre-optimization done (n=107): time 2.966e-06/0.9582, allocations: 0 / 1.382 GB, free: 420 kB / 1.045 GB Notification: Performance of matching and sorting (n=107): time 0.004253/0.9624, allocations: 1.667 MB / 1.383 GB, free: 15.52 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.81e-05/0.9626, allocations: 197.2 kB / 1.384 GB, free: 15.3 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.9636, allocations: 0.8912 MB / 1.384 GB, free: 14.79 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.243e-05/0.9637, allocations: 49.3 kB / 1.384 GB, free: 14.75 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004616/0.9642, allocations: 0.6007 MB / 1.385 GB, free: 14.21 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002735/0.9645, allocations: 352.3 kB / 1.385 GB, free: 13.91 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003104/0.9648, allocations: 199.8 kB / 1.386 GB, free: 13.79 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.9649, allocations: 341.4 kB / 1.386 GB, free: 13.46 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007869/0.9657, allocations: 378.2 kB / 1.386 GB, free: 13.27 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009453/0.9667, allocations: 0.564 MB / 1.387 GB, free: 12.87 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/0.9685, allocations: 0.9306 MB / 1.388 GB, free: 12.31 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.9685, allocations: 2.875 kB / 1.388 GB, free: 12.31 MB / 1.061 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002675/0.9711, allocations: 1.188 MB / 1.389 GB, free: 11.71 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.9712, allocations: 11.36 kB / 1.389 GB, free: 11.7 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.9712, allocations: 2.719 kB / 1.389 GB, free: 11.7 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006195/0.9718, allocations: 84.66 kB / 1.389 GB, free: 11.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.9729, allocations: 247.3 kB / 1.389 GB, free: 11.6 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/0.975, allocations: 1.647 MB / 1.391 GB, free: 9.988 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.9761, allocations: 141.3 kB / 1.391 GB, free: 9.895 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.159e-05/0.9762, allocations: 42.45 kB / 1.391 GB, free: 9.883 MB / 1.061 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.000601/0.9768, allocations: 336.7 kB / 1.391 GB, free: 9.633 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.9771, allocations: 127.1 kB / 1.391 GB, free: 9.566 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003205/0.9803, allocations: 1.429 MB / 1.393 GB, free: 8.766 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.9803, allocations: 16.25 kB / 1.393 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.9804, allocations: 0 / 1.393 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.9804, allocations: 3.984 kB / 1.393 GB, free: 8.758 MB / 1.061 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.004928/0.9853, allocations: 2.88 MB / 1.396 GB, free: 6.824 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.9853, allocations: 0 / 1.396 GB, free: 6.824 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.9863, allocations: 231.6 kB / 1.396 GB, free: 6.762 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004671/0.9868, allocations: 68.73 kB / 1.396 GB, free: 6.73 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.689e-05/0.9869, allocations: 35.59 kB / 1.396 GB, free: 6.703 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001962/0.9889, allocations: 1.675 MB / 1.398 GB, free: 5.078 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.9889, allocations: 2.406 kB / 1.398 GB, free: 5.078 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002854/0.9918, allocations: 1.325 MB / 1.399 GB, free: 4.348 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007936/0.9926, allocations: 353.6 kB / 1.399 GB, free: 4.051 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.9929, allocations: 27.66 kB / 1.399 GB, free: 4.031 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.994, allocations: 85.56 kB / 1.399 GB, free: 3.984 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.9942, allocations: 84.59 kB / 1.399 GB, free: 3.941 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.9943, allocations: 49.44 kB / 1.399 GB, free: 3.926 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0009088/0.9952, allocations: 0.6152 MB / 1.4 GB, free: 3.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9953, allocations: 0 / 1.4 GB, free: 3.57 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0014/0.9967, allocations: 0.49 MB / 1.401 GB, free: 3.43 MB / 1.061 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.004705/1.001, allocations: 2.482 MB / 1.403 GB, free: 1.23 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002375/1.004, allocations: 1.117 MB / 1.404 GB, free: 104 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/1.004, allocations: 0 / 1.404 GB, free: 104 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001276/1.005, allocations: 0.6681 MB / 1.405 GB, free: 15.42 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/1.007, allocations: 0.5446 MB / 1.405 GB, free: 14.91 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/1.023, allocations: 8.887 MB / 1.414 GB, free: 5.812 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008465/1.024, allocations: 1.209 MB / 1.415 GB, free: 4.574 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001398/1.026, allocations: 389.8 kB / 1.415 GB, free: 4.191 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008188/1.026, allocations: 0.5734 MB / 1.416 GB, free: 3.621 MB / 1.076 GB Notification: Performance of SimCode: time 6.31e-07/1.026, allocations: 0 / 1.416 GB, free: 3.621 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06471/1.091, allocations: 34 MB / 1.449 GB, free: 2.047 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/14.44, allocations: 4 kB / 1.449 GB, free: 2.043 MB / 1.107 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]