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.007531/0.007531, allocations: 96.11 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.001817/0.001817, allocations: 201.1 kB / 16.68 MB, free: 5.969 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 4.352 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.475/2.475, allocations: 437 MB / 0.7105 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 59.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2379, allocations: 151.6 MB / 1.166 GB, free: 7.305 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.6722/0.9101, allocations: 176.8 MB / 1.339 GB, free: 12.62 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01725/0.9274, allocations: 12.81 MB / 1.351 GB, free: 3.461 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.9287, allocations: 31.69 kB / 1.351 GB, free: 3.449 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.9302, allocations: 484.7 kB / 1.352 GB, free: 3.145 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.003246/0.9335, allocations: 1.049 MB / 1.353 GB, free: 2.52 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004758/0.9383, allocations: 1.885 MB / 1.355 GB, free: 1.535 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003276/0.9416, allocations: 2.547 MB / 1.357 GB, free: 284 kB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.944, allocations: 1.601 MB / 1.359 GB, free: 15.49 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004283/0.9483, allocations: 1.458 MB / 1.36 GB, free: 14.84 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.9498, allocations: 0.8789 MB / 1.361 GB, free: 14.4 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0004637/0.9503, allocations: 171.9 kB / 1.361 GB, free: 14.4 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003125/0.9534, allocations: 1.424 MB / 1.363 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0006655/0.9541, allocations: 495.9 kB / 1.363 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.001471/0.9556, allocations: 0.8841 MB / 1.364 GB, free: 13.08 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.004444/0.96, allocations: 2.815 MB / 1.367 GB, free: 11.48 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.9601, allocations: 0 / 1.367 GB, free: 11.48 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.292e-06/0.9601, allocations: 1.062 kB / 1.367 GB, free: 11.48 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.788e-05/0.9602, allocations: 0 / 1.367 GB, free: 11.48 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.004716/0.9649, allocations: 2.091 MB / 1.369 GB, free: 9.883 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.9649, allocations: 11.97 kB / 1.369 GB, free: 9.883 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000246/0.9652, allocations: 201.2 kB / 1.369 GB, free: 9.723 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002783/0.968, allocations: 416.6 kB / 1.369 GB, free: 9.531 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001739/0.9697, allocations: 1.036 MB / 1.37 GB, free: 8.715 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.861e-05/0.9698, allocations: 103.4 kB / 1.37 GB, free: 8.668 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.97, allocations: 133.2 kB / 1.371 GB, free: 8.625 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/0.9726, allocations: 1.525 MB / 1.372 GB, free: 7.648 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.9726, allocations: 0 / 1.372 GB, free: 7.648 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.9728, allocations: 62.91 kB / 1.372 GB, free: 7.602 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.449e-05/0.9728, allocations: 33.09 kB / 1.372 GB, free: 7.602 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/0.9755, allocations: 1.592 MB / 1.374 GB, free: 6.832 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.006889/0.9824, allocations: 5.306 MB / 1.379 GB, free: 2.344 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002502/0.9849, allocations: 1.522 MB / 1.38 GB, free: 1.348 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008224/0.9857, allocations: 478.2 kB / 1.381 GB, free: 1.109 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007159/0.9864, allocations: 429.6 kB / 1.381 GB, free: 0.6836 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.9877, allocations: 0.7 MB / 1.382 GB, free: 252 kB / 1.045 GB Notification: Performance of pre-optimization done (n=107): time 2.925e-06/0.9877, allocations: 0 / 1.382 GB, free: 252 kB / 1.045 GB Notification: Performance of matching and sorting (n=107): time 0.004212/0.9919, allocations: 1.663 MB / 1.384 GB, free: 15.36 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.259e-05/0.992, allocations: 201 kB / 1.384 GB, free: 15.13 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.9931, allocations: 0.8899 MB / 1.385 GB, free: 14.62 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.157e-05/0.9932, allocations: 48.61 kB / 1.385 GB, free: 14.58 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004549/0.9937, allocations: 0.608 MB / 1.385 GB, free: 14.04 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002815/0.994, allocations: 374.3 kB / 1.386 GB, free: 13.72 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.9943, allocations: 197.3 kB / 1.386 GB, free: 13.6 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.9944, allocations: 347.9 kB / 1.386 GB, free: 13.27 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007814/0.9952, allocations: 378.5 kB / 1.386 GB, free: 13.08 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009259/0.9961, allocations: 0.5615 MB / 1.387 GB, free: 12.68 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.9978, allocations: 0.9342 MB / 1.388 GB, free: 12.12 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.9978, allocations: 0 / 1.388 GB, free: 12.12 MB / 1.061 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002585/1, allocations: 1.186 MB / 1.389 GB, free: 11.52 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/1, allocations: 9.719 kB / 1.389 GB, free: 11.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/1, allocations: 4.344 kB / 1.389 GB, free: 11.52 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005784/1.001, allocations: 88.61 kB / 1.389 GB, free: 11.47 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/1.002, allocations: 243.4 kB / 1.389 GB, free: 11.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/1.004, allocations: 1.658 MB / 1.391 GB, free: 9.789 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/1.005, allocations: 129 kB / 1.391 GB, free: 9.703 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/1.005, allocations: 46.86 kB / 1.391 GB, free: 9.688 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.0005169/1.006, allocations: 336.4 kB / 1.392 GB, free: 9.438 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/1.006, allocations: 127.3 kB / 1.392 GB, free: 9.371 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/1.009, allocations: 1.441 MB / 1.393 GB, free: 8.559 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/1.009, allocations: 12.69 kB / 1.393 GB, free: 8.559 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/1.009, allocations: 4 kB / 1.393 GB, free: 8.555 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/1.009, allocations: 7.969 kB / 1.393 GB, free: 8.547 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.004663/1.014, allocations: 2.887 MB / 1.396 GB, free: 6.605 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.014, allocations: 0 / 1.396 GB, free: 6.605 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009738/1.015, allocations: 220 kB / 1.396 GB, free: 6.555 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004329/1.015, allocations: 73.28 kB / 1.396 GB, free: 6.516 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.073e-05/1.015, allocations: 40.62 kB / 1.396 GB, free: 6.488 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/1.017, allocations: 1.669 MB / 1.398 GB, free: 4.867 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.017, allocations: 2.812 kB / 1.398 GB, free: 4.867 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/1.02, allocations: 1.326 MB / 1.399 GB, free: 4.137 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005954/1.02, allocations: 370.3 kB / 1.399 GB, free: 3.824 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/1.021, allocations: 27.34 kB / 1.4 GB, free: 3.805 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009911/1.022, allocations: 86.41 kB / 1.4 GB, free: 3.762 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/1.022, allocations: 84.95 kB / 1.4 GB, free: 3.719 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/1.022, allocations: 50.42 kB / 1.4 GB, free: 3.699 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0007867/1.023, allocations: 0.6203 MB / 1.4 GB, free: 3.34 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.21e-07/1.023, allocations: 0 / 1.4 GB, free: 3.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001189/1.024, allocations: 0.4909 MB / 1.401 GB, free: 3.199 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.004446/1.028, allocations: 2.487 MB / 1.403 GB, free: 0.9883 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002228/1.031, allocations: 1.112 MB / 1.404 GB, free: 15.86 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.031, allocations: 0 / 1.404 GB, free: 15.86 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001243/1.032, allocations: 0.6803 MB / 1.405 GB, free: 15.17 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/1.034, allocations: 0.5461 MB / 1.406 GB, free: 14.65 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/1.049, allocations: 8.93 MB / 1.414 GB, free: 5.508 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007723/1.049, allocations: 1.209 MB / 1.415 GB, free: 4.27 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001314/1.051, allocations: 385.9 kB / 1.416 GB, free: 3.891 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008271/1.052, allocations: 0.5812 MB / 1.416 GB, free: 3.312 MB / 1.076 GB Notification: Performance of SimCode: time 4.71e-07/1.052, allocations: 0 / 1.416 GB, free: 3.312 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05911/1.111, allocations: 33.99 MB / 1.45 GB, free: 1.738 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/14.08, allocations: 3.094 kB / 1.45 GB, free: 1.738 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]