Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_9_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.003931/0.003931, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.0009879/0.0009879, allocations: 197 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.117/2.117, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6327/0.6339, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1783/0.8123, allocations: 176 MB / 1.259 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01494/0.8272, allocations: 12.74 MB / 1.272 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008789/0.8281, allocations: 31.81 kB / 1.272 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.8292, allocations: 452.6 kB / 1.272 GB, free: 460 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002141/0.8314, allocations: 0.9865 MB / 1.273 GB, free: 15.46 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003667/0.8351, allocations: 1.887 MB / 1.275 GB, free: 13.58 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00197/0.837, allocations: 2.415 MB / 1.277 GB, free: 11.16 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/0.8387, allocations: 1.634 MB / 1.279 GB, free: 9.477 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002899/0.8416, allocations: 1.433 MB / 1.28 GB, free: 8.07 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007873/0.8424, allocations: 0.8596 MB / 1.281 GB, free: 7.207 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0001997/0.8426, allocations: 172 kB / 1.281 GB, free: 7.039 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.8447, allocations: 1.427 MB / 1.283 GB, free: 5.609 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0003806/0.8451, allocations: 490.5 kB / 1.283 GB, free: 5.129 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0006877/0.8458, allocations: 0.8668 MB / 1.284 GB, free: 4.258 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002749/0.8485, allocations: 2.767 MB / 1.287 GB, free: 1.48 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.8485, allocations: 0 / 1.287 GB, free: 1.48 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.021e-06/0.8485, allocations: 0 / 1.287 GB, free: 1.48 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.062e-05/0.8486, allocations: 4 kB / 1.287 GB, free: 1.477 MB / 1.014 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.003095/0.8517, allocations: 2.068 MB / 1.289 GB, free: 15.34 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.8517, allocations: 12.03 kB / 1.289 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002257/0.8519, allocations: 202.7 kB / 1.289 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002636/0.8546, allocations: 414.5 kB / 1.289 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001518/0.8561, allocations: 1.035 MB / 1.29 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.668e-05/0.8562, allocations: 102.7 kB / 1.291 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.8564, allocations: 132 kB / 1.291 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/0.8588, allocations: 1.52 MB / 1.292 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.8589, allocations: 12 kB / 1.292 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001403/0.859, allocations: 59.94 kB / 1.292 GB, free: 11.74 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.859, allocations: 36 kB / 1.292 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002657/0.8617, allocations: 1.579 MB / 1.294 GB, free: 10.12 MB / 1.029 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.006452/0.8682, allocations: 5.053 MB / 1.299 GB, free: 4.805 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.8707, allocations: 1.525 MB / 1.3 GB, free: 3.207 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008428/0.8716, allocations: 476.6 kB / 1.301 GB, free: 2.742 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007006/0.8723, allocations: 429.3 kB / 1.301 GB, free: 2.25 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.8735, allocations: 0.6994 MB / 1.302 GB, free: 1.531 MB / 1.029 GB Notification: Performance of pre-optimization done (n=107): time 2.414e-06/0.8735, allocations: 0 / 1.302 GB, free: 1.531 MB / 1.029 GB Notification: Performance of matching and sorting (n=107): time 0.004172/0.8777, allocations: 1.677 MB / 1.303 GB, free: 15.83 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.111e-05/0.8778, allocations: 196.9 kB / 1.304 GB, free: 15.59 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.8788, allocations: 0.8844 MB / 1.305 GB, free: 14.69 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 8.974e-05/0.8789, allocations: 45.7 kB / 1.305 GB, free: 14.64 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004038/0.8794, allocations: 0.6064 MB / 1.305 GB, free: 14.02 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002564/0.8796, allocations: 372.9 kB / 1.305 GB, free: 13.66 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.8799, allocations: 198.5 kB / 1.306 GB, free: 13.46 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.88, allocations: 345.9 kB / 1.306 GB, free: 13.11 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007675/0.8808, allocations: 377.8 kB / 1.306 GB, free: 12.75 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009488/0.8818, allocations: 0.5645 MB / 1.307 GB, free: 12.12 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.8835, allocations: 0.9371 MB / 1.308 GB, free: 11.14 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.8835, allocations: 3.938 kB / 1.308 GB, free: 11.14 MB / 1.045 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002573/0.8861, allocations: 1.185 MB / 1.309 GB, free: 9.938 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.8861, allocations: 8 kB / 1.309 GB, free: 9.93 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.8861, allocations: 4 kB / 1.309 GB, free: 9.926 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000585/0.8867, allocations: 88.95 kB / 1.309 GB, free: 9.836 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.8878, allocations: 243.7 kB / 1.309 GB, free: 9.598 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002022/0.8898, allocations: 1.646 MB / 1.311 GB, free: 7.809 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008876/0.8907, allocations: 137.7 kB / 1.311 GB, free: 7.676 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.054e-05/0.8908, allocations: 43.97 kB / 1.311 GB, free: 7.633 MB / 1.045 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.0004625/0.8913, allocations: 350.1 kB / 1.311 GB, free: 7.281 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.8915, allocations: 127.2 kB / 1.312 GB, free: 7.156 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.8947, allocations: 1.433 MB / 1.313 GB, free: 5.711 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.8947, allocations: 12 kB / 1.313 GB, free: 5.699 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.8947, allocations: 4 kB / 1.313 GB, free: 5.695 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.8947, allocations: 7.969 kB / 1.313 GB, free: 5.688 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 postOpt removeSimpleEquations (simulation): time 0.0045/0.8992, allocations: 2.88 MB / 1.316 GB, free: 2.727 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.8992, allocations: 4 kB / 1.316 GB, free: 2.723 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.9002, allocations: 215.7 kB / 1.316 GB, free: 2.512 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004388/0.9007, allocations: 80.72 kB / 1.316 GB, free: 2.43 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.951e-05/0.9008, allocations: 31.97 kB / 1.316 GB, free: 2.398 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/0.9026, allocations: 1.67 MB / 1.318 GB, free: 0.5781 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.9026, allocations: 0 / 1.318 GB, free: 0.5781 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/0.9052, allocations: 1.335 MB / 1.319 GB, free: 15.22 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005262/0.9057, allocations: 367.8 kB / 1.319 GB, free: 14.84 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.9059, allocations: 31.88 kB / 1.319 GB, free: 14.81 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009457/0.9068, allocations: 75.92 kB / 1.32 GB, free: 14.73 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.907, allocations: 84.88 kB / 1.32 GB, free: 14.65 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.861e-05/0.9071, allocations: 55.95 kB / 1.32 GB, free: 14.6 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0007419/0.9079, allocations: 0.6189 MB / 1.32 GB, free: 13.97 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9079, allocations: 0 / 1.32 GB, free: 13.97 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001013/0.9089, allocations: 482.7 kB / 1.321 GB, free: 13.5 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.004196/0.9131, allocations: 2.488 MB / 1.323 GB, free: 11.17 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002118/0.9152, allocations: 1.117 MB / 1.324 GB, free: 10.04 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.9152, allocations: 0 / 1.324 GB, free: 10.04 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.9164, allocations: 0.6758 MB / 1.325 GB, free: 9.352 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002092/0.9185, allocations: 0.5289 MB / 1.325 GB, free: 8.844 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.9328, allocations: 9.055 MB / 1.334 GB, free: 15.59 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007218/0.9336, allocations: 1.206 MB / 1.335 GB, free: 14.35 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.00112/0.9347, allocations: 389.8 kB / 1.336 GB, free: 13.96 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007615/0.9354, allocations: 0.5656 MB / 1.336 GB, free: 13.4 MB / 1.076 GB Notification: Performance of SimCode: time 1.793e-06/0.9355, allocations: 0 / 1.336 GB, free: 13.4 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05616/0.9916, allocations: 33.43 MB / 1.369 GB, free: 12.43 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.84, allocations: 2.922 kB / 1.369 GB, free: 12.43 MB / 1.107 GB (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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]