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.004794/0.004794, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001145/0.001146, allocations: 185.5 kB / 16.67 MB, free: 5.98 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.362/2.362, allocations: 390.3 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 68.3 kB / 0.9504 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2203, allocations: 140.4 MB / 1.087 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1706/0.3909, allocations: 176 MB / 1.259 GB, free: 1.398 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.5296/0.9205, allocations: 12.73 MB / 1.272 GB, free: 3.176 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.9216, allocations: 30.84 kB / 1.272 GB, free: 3.176 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.9229, allocations: 441.1 kB / 1.272 GB, free: 3.172 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.002743/0.9256, allocations: 0.9724 MB / 1.273 GB, free: 3.141 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004821/0.9305, allocations: 1.865 MB / 1.275 GB, free: 3.082 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003317/0.9338, allocations: 2.407 MB / 1.277 GB, free: 3.078 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002916/0.9368, allocations: 1.632 MB / 1.279 GB, free: 2.867 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004321/0.9411, allocations: 1.403 MB / 1.28 GB, free: 2.84 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001635/0.9428, allocations: 0.8655 MB / 1.281 GB, free: 2.84 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0005322/0.9433, allocations: 173.3 kB / 1.281 GB, free: 2.84 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003279/0.9466, allocations: 1.421 MB / 1.283 GB, free: 2.816 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0006969/0.9473, allocations: 499.5 kB / 1.283 GB, free: 2.812 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001353/0.9487, allocations: 0.8465 MB / 1.284 GB, free: 2.812 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004412/0.9531, allocations: 2.766 MB / 1.287 GB, free: 2.512 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.9532, allocations: 4.094 kB / 1.287 GB, free: 2.512 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.954e-06/0.9532, allocations: 0 / 1.287 GB, free: 2.512 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.451e-05/0.9532, allocations: 1.906 kB / 1.287 GB, free: 2.512 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.004034/0.9573, allocations: 2.007 MB / 1.289 GB, free: 1.508 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.9573, allocations: 10.25 kB / 1.289 GB, free: 1.508 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002785/0.9576, allocations: 202.1 kB / 1.289 GB, free: 1.465 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00289/0.9605, allocations: 409.6 kB / 1.289 GB, free: 1.375 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.9624, allocations: 1.024 MB / 1.29 GB, free: 1.02 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.663e-05/0.9625, allocations: 112 kB / 1.29 GB, free: 1.012 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/0.9627, allocations: 130.5 kB / 1.291 GB, free: 1.012 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00277/0.9655, allocations: 1.526 MB / 1.292 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.9655, allocations: 0 / 1.292 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.9657, allocations: 66.33 kB / 1.292 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.9657, allocations: 34.25 kB / 1.292 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.9687, allocations: 1.581 MB / 1.294 GB, free: 0.7656 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.007244/0.9759, allocations: 5.019 MB / 1.299 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/0.9786, allocations: 1.518 MB / 1.3 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008868/0.9795, allocations: 491.9 kB / 1.301 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007592/0.9803, allocations: 430 kB / 1.301 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00125/0.9815, allocations: 0.6989 MB / 1.302 GB, free: 13.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=107): time 2.885e-06/0.9815, allocations: 2.219 kB / 1.302 GB, free: 13.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=107): time 0.004575/0.9861, allocations: 1.658 MB / 1.303 GB, free: 13.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.9863, allocations: 204.9 kB / 1.303 GB, free: 13.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.9875, allocations: 0.8897 MB / 1.304 GB, free: 13.08 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001624/0.9877, allocations: 51.23 kB / 1.304 GB, free: 13.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004389/0.9881, allocations: 0.5975 MB / 1.305 GB, free: 12.8 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/0.9885, allocations: 349.8 kB / 1.305 GB, free: 12.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003096/0.9888, allocations: 200.3 kB / 1.305 GB, free: 12.56 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.9889, allocations: 346.2 kB / 1.306 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007976/0.9897, allocations: 377.1 kB / 1.306 GB, free: 12.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009659/0.9907, allocations: 0.5608 MB / 1.307 GB, free: 12.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.9925, allocations: 0.9336 MB / 1.308 GB, free: 11.95 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.9925, allocations: 4.219 kB / 1.308 GB, free: 11.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002883/0.9954, allocations: 1.178 MB / 1.309 GB, free: 11.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.9954, allocations: 7.875 kB / 1.309 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.9954, allocations: 7.344 kB / 1.309 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006164/0.9961, allocations: 88.73 kB / 1.309 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.9972, allocations: 244.7 kB / 1.309 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/0.9994, allocations: 1.643 MB / 1.311 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/1.001, allocations: 124.3 kB / 1.311 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/1.001, allocations: 55.91 kB / 1.311 GB, free: 10.38 MB / 1.029 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.0007214/1.002, allocations: 348.4 kB / 1.311 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/1.002, allocations: 123.2 kB / 1.311 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003535/1.005, allocations: 1.426 MB / 1.313 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/1.005, allocations: 15.06 kB / 1.313 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/1.005, allocations: 2.25 kB / 1.313 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/1.005, allocations: 5.578 kB / 1.313 GB, free: 10.08 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 postOpt removeSimpleEquations (simulation): time 0.005332/1.011, allocations: 2.885 MB / 1.316 GB, free: 9.574 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.862e-06/1.011, allocations: 1.344 kB / 1.316 GB, free: 9.574 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/1.012, allocations: 216.6 kB / 1.316 GB, free: 9.574 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004742/1.012, allocations: 74.84 kB / 1.316 GB, free: 9.566 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/1.013, allocations: 30.73 kB / 1.316 GB, free: 9.566 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001962/1.014, allocations: 1.677 MB / 1.317 GB, free: 8.184 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/1.014, allocations: 1.906 kB / 1.317 GB, free: 8.184 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/1.018, allocations: 1.324 MB / 1.319 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000748/1.018, allocations: 356.6 kB / 1.319 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/1.019, allocations: 22.81 kB / 1.319 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/1.02, allocations: 86.97 kB / 1.319 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/1.02, allocations: 88.39 kB / 1.319 GB, free: 7.777 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/1.02, allocations: 50.22 kB / 1.319 GB, free: 7.777 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000873/1.021, allocations: 0.6263 MB / 1.32 GB, free: 7.664 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.7e-07/1.021, allocations: 0.8125 kB / 1.32 GB, free: 7.664 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001516/1.022, allocations: 475.1 kB / 1.32 GB, free: 7.582 MB / 1.029 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.00469/1.027, allocations: 2.485 MB / 1.323 GB, free: 6.66 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002432/1.03, allocations: 1.115 MB / 1.324 GB, free: 6.535 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/1.03, allocations: 2.75 kB / 1.324 GB, free: 6.535 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001308/1.031, allocations: 0.6757 MB / 1.325 GB, free: 6.418 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/1.034, allocations: 0.5251 MB / 1.325 GB, free: 6.344 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/1.051, allocations: 9.001 MB / 1.334 GB, free: 2.352 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008703/1.052, allocations: 1.209 MB / 1.335 GB, free: 1.609 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001531/1.053, allocations: 384.2 kB / 1.335 GB, free: 1.496 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/1.054, allocations: 0.5737 MB / 1.336 GB, free: 1.078 MB / 1.029 GB Notification: Performance of SimCode: time 7.42e-07/1.054, allocations: 0 / 1.336 GB, free: 1.078 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06466/1.119, allocations: 33.42 MB / 1.369 GB, free: 2.422 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.76, allocations: 7.781 kB / 1.369 GB, free: 2.414 MB / 1.045 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]