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.001341/0.001341, 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.001296/0.001296, allocations: 193.9 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.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.27/2.27, allocations: 390.2 MB / 0.6647 GB, free: 376 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.91 kB / 0.8126 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5027/0.504, allocations: 140.4 MB / 0.9497 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1648/0.6689, allocations: 176 MB / 1.122 GB, free: 1.109 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01509/0.684, allocations: 12.73 MB / 1.134 GB, free: 4.336 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009515/0.685, allocations: 31.81 kB / 1.134 GB, free: 4.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.6861, allocations: 448.6 kB / 1.135 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.002453/0.6886, allocations: 0.963 MB / 1.135 GB, free: 2.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003869/0.6925, allocations: 1.865 MB / 1.137 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002309/0.6948, allocations: 2.392 MB / 1.14 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.6968, allocations: 1.637 MB / 1.141 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.6998, allocations: 1.39 MB / 1.143 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008412/0.7006, allocations: 0.8674 MB / 1.143 GB, free: 10.72 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002309/0.7009, allocations: 172 kB / 1.144 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002153/0.703, allocations: 1.392 MB / 1.145 GB, free: 9.16 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003801/0.7034, allocations: 498.5 kB / 1.145 GB, free: 8.672 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0006946/0.7041, allocations: 0.8513 MB / 1.146 GB, free: 7.816 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002621/0.7067, allocations: 2.703 MB / 1.149 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.7068, allocations: 3.984 kB / 1.149 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.142e-06/0.7068, allocations: 0 / 1.149 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.925e-05/0.7068, allocations: 0 / 1.149 GB, free: 5.102 MB / 0.9044 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.003059/0.7099, allocations: 2.02 MB / 1.151 GB, free: 3.02 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.7099, allocations: 8.031 kB / 1.151 GB, free: 3.012 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002188/0.7101, allocations: 202.7 kB / 1.151 GB, free: 2.805 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002625/0.7128, allocations: 409.5 kB / 1.151 GB, free: 2.402 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.7141, allocations: 0.9917 MB / 1.152 GB, free: 1.367 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.349e-05/0.7142, allocations: 102.7 kB / 1.153 GB, free: 1.266 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.7144, allocations: 132 kB / 1.153 GB, free: 1.137 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.7167, allocations: 1.52 MB / 1.154 GB, free: 15.54 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.519e-05/0.7168, allocations: 0 / 1.154 GB, free: 15.54 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/0.7169, allocations: 60 kB / 1.154 GB, free: 15.48 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.7169, allocations: 32 kB / 1.154 GB, free: 15.45 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002646/0.7196, allocations: 1.591 MB / 1.156 GB, free: 13.85 MB / 0.92 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.006351/0.726, allocations: 5.083 MB / 1.161 GB, free: 8.504 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.7285, allocations: 1.526 MB / 1.162 GB, free: 6.898 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008391/0.7294, allocations: 481 kB / 1.163 GB, free: 6.43 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007301/0.7301, allocations: 425.3 kB / 1.163 GB, free: 5.941 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.7313, allocations: 0.6918 MB / 1.164 GB, free: 5.227 MB / 0.92 GB Notification: Performance of pre-optimization done (n=107): time 2.785e-06/0.7313, allocations: 0 / 1.164 GB, free: 5.227 MB / 0.92 GB Notification: Performance of matching and sorting (n=107): time 0.004218/0.7355, allocations: 1.664 MB / 1.165 GB, free: 3.539 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.665e-05/0.7356, allocations: 196.9 kB / 1.166 GB, free: 3.301 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.7367, allocations: 0.8922 MB / 1.166 GB, free: 2.387 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.415e-05/0.7368, allocations: 49.7 kB / 1.167 GB, free: 2.332 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/0.7372, allocations: 0.5974 MB / 1.167 GB, free: 1.727 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.7374, allocations: 350.9 kB / 1.167 GB, free: 1.379 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000302/0.7377, allocations: 194.5 kB / 1.168 GB, free: 1.184 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.7379, allocations: 345.9 kB / 1.168 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007599/0.7386, allocations: 377.8 kB / 1.168 GB, free: 484 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009213/0.7396, allocations: 0.5554 MB / 1.169 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.7412, allocations: 0.9371 MB / 1.17 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.7413, allocations: 0 / 1.17 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002591/0.7439, allocations: 1.192 MB / 1.171 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.7439, allocations: 5.719 kB / 1.171 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.7439, allocations: 4.406 kB / 1.171 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006015/0.7445, allocations: 88.77 kB / 1.171 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.7456, allocations: 247.7 kB / 1.171 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002476/0.7481, allocations: 1.646 MB / 1.173 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009138/0.749, allocations: 134.8 kB / 1.173 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.11e-05/0.7492, allocations: 43.97 kB / 1.173 GB, free: 11.36 MB / 0.9356 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.0004915/0.7497, allocations: 346.1 kB / 1.173 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.7499, allocations: 118.6 kB / 1.173 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003184/0.7531, allocations: 1.437 MB / 1.175 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.7531, allocations: 12 kB / 1.175 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.7531, allocations: 0 / 1.175 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.7531, allocations: 7.969 kB / 1.175 GB, free: 9.43 MB / 0.9356 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.004434/0.7576, allocations: 2.886 MB / 1.178 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.7576, allocations: 3.938 kB / 1.178 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.7586, allocations: 215.8 kB / 1.178 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000453/0.7591, allocations: 80.72 kB / 1.178 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.127e-05/0.7592, allocations: 31.97 kB / 1.178 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/0.761, allocations: 1.67 MB / 1.18 GB, free: 4.312 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.761, allocations: 0 / 1.18 GB, free: 4.312 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002608/0.7636, allocations: 1.332 MB / 1.181 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004492/0.764, allocations: 355.2 kB / 1.181 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.7642, allocations: 27.94 kB / 1.181 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009495/0.7652, allocations: 77.34 kB / 1.181 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.7654, allocations: 84.88 kB / 1.181 GB, free: 2.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.7655, allocations: 47.97 kB / 1.182 GB, free: 2.363 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0007542/0.7662, allocations: 0.6228 MB / 1.182 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7662, allocations: 0 / 1.182 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001029/0.7673, allocations: 478.7 kB / 1.183 GB, free: 1.262 MB / 0.9356 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.004257/0.7715, allocations: 2.497 MB / 1.185 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.003285/0.7748, allocations: 1.433 MB / 1.186 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.7748, allocations: 0 / 1.186 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.7761, allocations: 0.6797 MB / 1.187 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/0.7782, allocations: 0.5136 MB / 1.188 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/0.7928, allocations: 9.539 MB / 1.197 GB, free: 2.383 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000713/0.7935, allocations: 1.209 MB / 1.198 GB, free: 1.145 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001324/0.7948, allocations: 389.7 kB / 1.198 GB, free: 0.7617 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007428/0.7956, allocations: 0.5734 MB / 1.199 GB, free: 192 kB / 0.9512 GB Notification: Performance of SimCode: time 2.81e-07/0.7956, allocations: 0 / 1.199 GB, free: 192 kB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0569/0.8525, allocations: 33.11 MB / 1.231 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/12.08, allocations: 17.55 kB / 1.231 GB, free: 15.49 MB / 0.9981 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]