Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Outside,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_Outside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside,fileNamePrefix="Buildings_9_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.00538/0.00538, allocations: 101.5 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.001241/0.001241, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.1 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.267/2.267, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 67.89 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6522/0.6534, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside): time 0.1907/0.8442, allocations: 176 MB / 1.259 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01515/0.8593, allocations: 10.85 MB / 1.27 GB, free: 2.84 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.8606, allocations: 31.81 kB / 1.27 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001318/0.8619, allocations: 404.8 kB / 1.27 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00311/0.8651, allocations: 1.048 MB / 1.271 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004338/0.8694, allocations: 1.709 MB / 1.273 GB, free: 15.66 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.002794/0.8722, allocations: 2.295 MB / 1.275 GB, free: 13.35 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002228/0.8745, allocations: 1.443 MB / 1.277 GB, free: 11.86 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003154/0.8776, allocations: 1.249 MB / 1.278 GB, free: 10.63 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.8788, allocations: 0.7952 MB / 1.279 GB, free: 9.832 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0003339/0.8792, allocations: 160 kB / 1.279 GB, free: 9.676 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002699/0.8819, allocations: 1.412 MB / 1.28 GB, free: 8.262 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.00048/0.8824, allocations: 450.7 kB / 1.281 GB, free: 7.82 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0009314/0.8833, allocations: 0.7734 MB / 1.281 GB, free: 7.043 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00355/0.8869, allocations: 2.551 MB / 1.284 GB, free: 4.484 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8869, allocations: 4 kB / 1.284 GB, free: 4.48 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.262e-06/0.8869, allocations: 0 / 1.284 GB, free: 4.48 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.377e-05/0.8869, allocations: 0 / 1.284 GB, free: 4.48 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: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003673/0.8906, allocations: 1.876 MB / 1.286 GB, free: 2.547 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.8907, allocations: 8.031 kB / 1.286 GB, free: 2.539 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000246/0.8909, allocations: 177.4 kB / 1.286 GB, free: 2.355 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00226/0.8932, allocations: 357.8 kB / 1.286 GB, free: 2.004 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.8949, allocations: 0.9798 MB / 1.287 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.321e-05/0.895, allocations: 94.33 kB / 1.287 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/0.8952, allocations: 115.9 kB / 1.287 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002348/0.8976, allocations: 1.298 MB / 1.289 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.8976, allocations: 0 / 1.289 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.8978, allocations: 55.98 kB / 1.289 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.511e-05/0.8978, allocations: 32 kB / 1.289 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002542/0.9003, allocations: 1.449 MB / 1.29 GB, free: 13.86 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.006325/0.9067, allocations: 3.821 MB / 1.294 GB, free: 9.887 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/0.9091, allocations: 1.211 MB / 1.295 GB, free: 8.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008568/0.9099, allocations: 450.1 kB / 1.296 GB, free: 8.219 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007652/0.9107, allocations: 429.5 kB / 1.296 GB, free: 7.723 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.912, allocations: 0.6721 MB / 1.297 GB, free: 7.035 MB / 1.029 GB Notification: Performance of pre-optimization done (n=106): time 2.986e-06/0.912, allocations: 0 / 1.297 GB, free: 7.035 MB / 1.029 GB Notification: Performance of matching and sorting (n=106): time 0.004341/0.9163, allocations: 1.61 MB / 1.298 GB, free: 5.395 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.93e-05/0.9164, allocations: 196.9 kB / 1.298 GB, free: 5.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.9177, allocations: 0.8789 MB / 1.299 GB, free: 4.258 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.9178, allocations: 49.7 kB / 1.299 GB, free: 4.203 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000423/0.9183, allocations: 0.5159 MB / 1.3 GB, free: 3.68 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/0.9186, allocations: 347 kB / 1.3 GB, free: 3.336 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003294/0.9189, allocations: 194.5 kB / 1.3 GB, free: 3.141 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.9191, allocations: 349.9 kB / 1.301 GB, free: 2.793 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007937/0.9199, allocations: 365.8 kB / 1.301 GB, free: 2.434 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009232/0.9208, allocations: 0.5009 MB / 1.301 GB, free: 1.898 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/0.9225, allocations: 0.8407 MB / 1.302 GB, free: 1.043 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.9225, allocations: 4 kB / 1.302 GB, free: 1.039 MB / 1.029 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002722/0.9252, allocations: 1.11 MB / 1.303 GB, free: 15.92 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.9253, allocations: 8 kB / 1.303 GB, free: 15.91 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.9253, allocations: 0 / 1.303 GB, free: 15.91 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006309/0.9259, allocations: 92.86 kB / 1.303 GB, free: 15.82 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.927, allocations: 211.7 kB / 1.304 GB, free: 15.61 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.9292, allocations: 1.65 MB / 1.305 GB, free: 13.81 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.9302, allocations: 133.2 kB / 1.305 GB, free: 13.68 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.9303, allocations: 39.98 kB / 1.305 GB, free: 13.64 MB / 1.045 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.0005999/0.9309, allocations: 330.2 kB / 1.306 GB, free: 13.31 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.9312, allocations: 118.5 kB / 1.306 GB, free: 13.2 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003368/0.9346, allocations: 1.501 MB / 1.307 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.9346, allocations: 12 kB / 1.307 GB, free: 11.65 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.9347, allocations: 0 / 1.307 GB, free: 11.65 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.9347, allocations: 11.86 kB / 1.307 GB, free: 11.64 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.005248/0.9399, allocations: 2.839 MB / 1.31 GB, free: 8.691 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.94, allocations: 4 kB / 1.31 GB, free: 8.688 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009682/0.9409, allocations: 199.7 kB / 1.31 GB, free: 8.492 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004964/0.9414, allocations: 76.97 kB / 1.31 GB, free: 8.414 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.9416, allocations: 31.98 kB / 1.31 GB, free: 8.383 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/0.9436, allocations: 1.685 MB / 1.312 GB, free: 6.555 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.9436, allocations: 4 kB / 1.312 GB, free: 6.551 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003858/0.9474, allocations: 1.862 MB / 1.314 GB, free: 4.652 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006554/0.9481, allocations: 347.2 kB / 1.314 GB, free: 4.293 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002376/0.9484, allocations: 27.98 kB / 1.314 GB, free: 4.266 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.9494, allocations: 75.92 kB / 1.314 GB, free: 4.191 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.9496, allocations: 84.83 kB / 1.314 GB, free: 4.105 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.9497, allocations: 47.97 kB / 1.314 GB, free: 4.059 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0009704/0.9507, allocations: 0.6339 MB / 1.315 GB, free: 3.414 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9507, allocations: 3.938 kB / 1.315 GB, free: 3.41 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001277/0.952, allocations: 443 kB / 1.315 GB, free: 2.977 MB / 1.045 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.005724/0.9577, allocations: 3.014 MB / 1.318 GB, free: 112 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002495/0.9603, allocations: 1.066 MB / 1.319 GB, free: 15.03 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.9603, allocations: 0 / 1.319 GB, free: 15.03 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.9617, allocations: 0.6684 MB / 1.32 GB, free: 14.35 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/0.9646, allocations: 0.512 MB / 1.321 GB, free: 13.86 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.9823, allocations: 8.876 MB / 1.329 GB, free: 4.781 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008453/0.9832, allocations: 1.166 MB / 1.33 GB, free: 3.59 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001343/0.9845, allocations: 369.7 kB / 1.331 GB, free: 3.227 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008258/0.9854, allocations: 0.5227 MB / 1.331 GB, free: 2.703 MB / 1.061 GB Notification: Performance of SimCode: time 5.61e-07/0.9854, allocations: 0 / 1.331 GB, free: 2.703 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06633/1.052, allocations: 32.73 MB / 1.363 GB, free: 2.371 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/14.21, allocations: 7.859 kB / 1.363 GB, free: 2.367 MB / 1.092 GB (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.Outside.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.Outside.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.Outside.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.Outside.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Sources_Examples_Outside.fmu > Buildings_9_Buildings.Fluid.Sources.Examples.Outside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.Outside_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_Outside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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