Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.Outside.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Outside,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_Outside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_Outside",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.001074/0.001074, 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.001063/0.001063, allocations: 193.8 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.651/2.651, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.88 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2314, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside): time 0.1586/0.3901, allocations: 176.5 MB / 1.236 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01266/0.4028, allocations: 10.9 MB / 1.247 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005912/0.4034, allocations: 35.81 kB / 1.247 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008974/0.4043, allocations: 408.7 kB / 1.247 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002279/0.4066, allocations: 1.094 MB / 1.248 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.4528/0.8595, allocations: 1.692 MB / 1.25 GB, free: 5.512 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002499/0.862, allocations: 2.37 MB / 1.252 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.8636, allocations: 1.407 MB / 1.254 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002506/0.8661, allocations: 1.251 MB / 1.255 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007974/0.8669, allocations: 0.8076 MB / 1.256 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001891/0.8671, allocations: 155.8 kB / 1.256 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00203/0.8692, allocations: 1.388 MB / 1.257 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002958/0.8695, allocations: 446.4 kB / 1.257 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006226/0.8701, allocations: 0.7879 MB / 1.258 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002661/0.8728, allocations: 2.531 MB / 1.261 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.8728, allocations: 1.062 kB / 1.261 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.8728, allocations: 1.969 kB / 1.261 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.913e-05/0.8728, allocations: 0 / 1.261 GB, free: 5.254 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003032/0.8759, allocations: 1.899 MB / 1.263 GB, free: 20.3 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.8759, allocations: 11.31 kB / 1.263 GB, free: 20.3 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001994/0.8761, allocations: 177.1 kB / 1.263 GB, free: 20.26 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002126/0.8782, allocations: 354.9 kB / 1.263 GB, free: 20.18 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.8795, allocations: 0.9473 MB / 1.264 GB, free: 19.83 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.241e-05/0.8796, allocations: 91.91 kB / 1.264 GB, free: 19.83 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.8798, allocations: 115.9 kB / 1.264 GB, free: 19.83 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.8818, allocations: 1.292 MB / 1.265 GB, free: 19.65 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.8818, allocations: 7.5 kB / 1.265 GB, free: 19.65 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.8819, allocations: 48.62 kB / 1.266 GB, free: 19.65 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.8819, allocations: 31 kB / 1.266 GB, free: 19.65 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002486/0.8844, allocations: 1.449 MB / 1.267 GB, free: 19.64 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.00584/0.8903, allocations: 4.078 MB / 1.271 GB, free: 18.13 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.8925, allocations: 1.212 MB / 1.272 GB, free: 18 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008833/0.8934, allocations: 450.8 kB / 1.273 GB, free: 18 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007958/0.8942, allocations: 422.8 kB / 1.273 GB, free: 17.62 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.8956, allocations: 0.6629 MB / 1.274 GB, free: 17.55 MB / 1.014 GB Notification: Performance of pre-optimization done (n=106): time 3.036e-06/0.8956, allocations: 0.5938 kB / 1.274 GB, free: 17.55 MB / 1.014 GB Notification: Performance of matching and sorting (n=106): time 0.004053/0.8996, allocations: 1.607 MB / 1.275 GB, free: 17.35 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.842e-05/0.8997, allocations: 200.3 kB / 1.275 GB, free: 17.12 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.9008, allocations: 0.8805 MB / 1.276 GB, free: 16.97 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.047e-05/0.9009, allocations: 45.97 kB / 1.276 GB, free: 16.94 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.9012, allocations: 0.5218 MB / 1.277 GB, free: 16.73 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.9015, allocations: 345.8 kB / 1.277 GB, free: 16.51 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002953/0.9018, allocations: 195.6 kB / 1.277 GB, free: 16.49 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.9019, allocations: 342.8 kB / 1.278 GB, free: 16.19 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007208/0.9026, allocations: 367.5 kB / 1.278 GB, free: 16.19 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000828/0.9034, allocations: 0.4952 MB / 1.278 GB, free: 16.08 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/0.905, allocations: 0.8461 MB / 1.279 GB, free: 16.02 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.905, allocations: 0.9375 kB / 1.279 GB, free: 16.02 MB / 1.014 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002494/0.9075, allocations: 1.119 MB / 1.28 GB, free: 15.9 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.9075, allocations: 9.969 kB / 1.28 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9075, allocations: 3.344 kB / 1.28 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006136/0.9082, allocations: 88.11 kB / 1.28 GB, free: 15.88 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009794/0.9092, allocations: 222.6 kB / 1.281 GB, free: 15.88 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/0.9111, allocations: 1.645 MB / 1.282 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008844/0.912, allocations: 122.2 kB / 1.282 GB, free: 14.46 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.778e-05/0.9121, allocations: 48.81 kB / 1.282 GB, free: 14.45 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (120): * Single equations (assignments): 119 * 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.0004478/0.9126, allocations: 324.6 kB / 1.283 GB, free: 14.33 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.9128, allocations: 120.6 kB / 1.283 GB, free: 14.27 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003013/0.9158, allocations: 1.512 MB / 1.284 GB, free: 14.12 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.9158, allocations: 11.59 kB / 1.284 GB, free: 14.12 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.9158, allocations: 1.312 kB / 1.284 GB, free: 14.12 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.9159, allocations: 9.266 kB / 1.284 GB, free: 14.12 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 postOpt removeSimpleEquations (simulation): time 0.004401/0.9203, allocations: 2.84 MB / 1.287 GB, free: 13.54 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.9203, allocations: 1.156 kB / 1.287 GB, free: 13.54 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008952/0.9212, allocations: 201 kB / 1.287 GB, free: 13.54 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004495/0.9216, allocations: 80.94 kB / 1.287 GB, free: 13.54 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.402e-05/0.9217, allocations: 35.44 kB / 1.287 GB, free: 13.53 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.9235, allocations: 1.683 MB / 1.289 GB, free: 12.14 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.9235, allocations: 2.219 kB / 1.289 GB, free: 12.14 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003316/0.9268, allocations: 1.861 MB / 1.291 GB, free: 11.86 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004324/0.9273, allocations: 343.8 kB / 1.291 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/0.9275, allocations: 25.75 kB / 1.291 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009191/0.9284, allocations: 79.2 kB / 1.291 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.9286, allocations: 86.62 kB / 1.291 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.054e-05/0.9287, allocations: 51.39 kB / 1.291 GB, free: 11.68 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0007694/0.9294, allocations: 0.6259 MB / 1.292 GB, free: 11.57 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9294, allocations: 0 / 1.292 GB, free: 11.57 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001154/0.9306, allocations: 454.2 kB / 1.293 GB, free: 11.51 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (senTem.T,senRelHum.phi,senMasFra.X) * 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 (114): * Single equations (assignments): 108 * 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.004971/0.9356, allocations: 3.028 MB / 1.295 GB, free: 10.57 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002916/0.9385, allocations: 1.34 MB / 1.297 GB, free: 10.42 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.9385, allocations: 2.156 kB / 1.297 GB, free: 10.42 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.9397, allocations: 0.6613 MB / 1.297 GB, free: 10.3 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.9418, allocations: 0.5236 MB / 1.298 GB, free: 10.23 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/0.9546, allocations: 9.294 MB / 1.307 GB, free: 7.066 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006128/0.9552, allocations: 1.165 MB / 1.308 GB, free: 6.344 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001306/0.9565, allocations: 377.5 kB / 1.309 GB, free: 6.234 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006184/0.9571, allocations: 0.5296 MB / 1.309 GB, free: 6.223 MB / 1.014 GB Notification: Performance of SimCode: time 4.51e-07/0.9571, allocations: 0 / 1.309 GB, free: 6.223 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0575/1.015, allocations: 32.85 MB / 1.341 GB, free: 12.98 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/12.12, allocations: 3.438 kB / 1.341 GB, free: 12.98 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.Outside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.Outside.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_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_latest_Buildings_Fluid_Sources_Examples_Outside.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_Outside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside.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,senMasFra.X,senRelHum.phi Variables in the result:time,senMasFra.X,senRelHum.phi,senTem.T