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.001667/0.001667, allocations: 108 kB / 15.61 MB, free: 152 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.001859/0.001859, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.249/2.249, allocations: 390.2 MB / 0.6647 GB, free: 292 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.91 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4882/0.4895, allocations: 140.4 MB / 0.9497 GB, free: 9.438 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside): time 0.1684/0.658, allocations: 176 MB / 1.122 GB, free: 1.305 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01325/0.6713, allocations: 10.84 MB / 1.132 GB, free: 6.426 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008491/0.6721, allocations: 35.81 kB / 1.132 GB, free: 6.391 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.6732, allocations: 400.9 kB / 1.133 GB, free: 5.996 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.002612/0.6758, allocations: 1.055 MB / 1.134 GB, free: 4.941 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003618/0.6795, allocations: 1.687 MB / 1.135 GB, free: 3.258 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002204/0.6817, allocations: 2.292 MB / 1.138 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.6834, allocations: 1.435 MB / 1.139 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.686, allocations: 1.246 MB / 1.14 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009337/0.6869, allocations: 0.7974 MB / 1.141 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000266/0.6872, allocations: 156 kB / 1.141 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002105/0.6893, allocations: 1.384 MB / 1.142 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003894/0.6897, allocations: 458.5 kB / 1.143 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007071/0.6904, allocations: 0.7657 MB / 1.144 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002679/0.6931, allocations: 2.516 MB / 1.146 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.6931, allocations: 0 / 1.146 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of FrontEnd: time 9.52e-07/0.6931, allocations: 4 kB / 1.146 GB, free: 8.16 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.4e-05/0.6932, allocations: 0 / 1.146 GB, free: 8.16 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: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003127/0.6963, allocations: 1.872 MB / 1.148 GB, free: 6.23 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.6963, allocations: 8.031 kB / 1.148 GB, free: 6.223 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002006/0.6965, allocations: 177.4 kB / 1.148 GB, free: 6.039 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002113/0.6987, allocations: 349.9 kB / 1.148 GB, free: 5.695 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.7, allocations: 0.9524 MB / 1.149 GB, free: 4.695 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.003e-05/0.7001, allocations: 90.31 kB / 1.149 GB, free: 4.605 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.7002, allocations: 112 kB / 1.15 GB, free: 4.496 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/0.7023, allocations: 1.294 MB / 1.151 GB, free: 3.137 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.7023, allocations: 7.938 kB / 1.151 GB, free: 3.129 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.7025, allocations: 52 kB / 1.151 GB, free: 3.078 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.7025, allocations: 28 kB / 1.151 GB, free: 3.051 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.7048, allocations: 1.453 MB / 1.152 GB, free: 1.59 MB / 0.9044 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.005485/0.7103, allocations: 3.86 MB / 1.156 GB, free: 13.57 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.7125, allocations: 1.216 MB / 1.157 GB, free: 12.34 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007553/0.7132, allocations: 449.3 kB / 1.158 GB, free: 11.9 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006849/0.7139, allocations: 425.3 kB / 1.158 GB, free: 11.41 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.715, allocations: 0.6606 MB / 1.159 GB, free: 10.73 MB / 0.92 GB Notification: Performance of pre-optimization done (n=106): time 3.607e-06/0.715, allocations: 3.984 kB / 1.159 GB, free: 10.73 MB / 0.92 GB Notification: Performance of matching and sorting (n=106): time 0.003896/0.7189, allocations: 1.606 MB / 1.16 GB, free: 9.09 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.254e-05/0.719, allocations: 200.9 kB / 1.161 GB, free: 8.852 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.72, allocations: 0.8749 MB / 1.161 GB, free: 7.953 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.927e-05/0.7201, allocations: 49.7 kB / 1.161 GB, free: 7.898 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/0.7205, allocations: 0.5122 MB / 1.162 GB, free: 7.379 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002508/0.7208, allocations: 358.9 kB / 1.162 GB, free: 7.023 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.7211, allocations: 194.5 kB / 1.162 GB, free: 6.828 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.7212, allocations: 345.9 kB / 1.163 GB, free: 6.484 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007073/0.7219, allocations: 361.8 kB / 1.163 GB, free: 6.129 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008353/0.7227, allocations: 0.4932 MB / 1.164 GB, free: 5.602 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.7243, allocations: 0.8523 MB / 1.164 GB, free: 4.734 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.7243, allocations: 0 / 1.164 GB, free: 4.734 MB / 0.92 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002447/0.7268, allocations: 1.118 MB / 1.166 GB, free: 3.605 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.7268, allocations: 9.719 kB / 1.166 GB, free: 3.598 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.7268, allocations: 3.984 kB / 1.166 GB, free: 3.594 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005901/0.7274, allocations: 84.78 kB / 1.166 GB, free: 3.508 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009833/0.7284, allocations: 227.6 kB / 1.166 GB, free: 3.285 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.7303, allocations: 1.642 MB / 1.167 GB, free: 1.496 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008353/0.7312, allocations: 118.9 kB / 1.168 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.309e-05/0.7313, allocations: 40.05 kB / 1.168 GB, free: 1.34 MB / 0.92 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.0004305/0.7317, allocations: 333.6 kB / 1.168 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.7319, allocations: 118.5 kB / 1.168 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.735, allocations: 1.505 MB / 1.169 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.7351, allocations: 12 kB / 1.169 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.7351, allocations: 0 / 1.169 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.7351, allocations: 7.984 kB / 1.169 GB, free: 15.34 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.004527/0.7396, allocations: 2.838 MB / 1.172 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.7396, allocations: 4 kB / 1.172 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009321/0.7406, allocations: 199.7 kB / 1.172 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004631/0.741, allocations: 76.97 kB / 1.173 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.234e-05/0.7411, allocations: 35.97 kB / 1.173 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001839/0.743, allocations: 1.674 MB / 1.174 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.743, allocations: 7.938 kB / 1.174 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003445/0.7465, allocations: 1.86 MB / 1.176 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004588/0.7469, allocations: 355.2 kB / 1.176 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.7471, allocations: 28.06 kB / 1.176 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008992/0.748, allocations: 71.92 kB / 1.176 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.7482, allocations: 92.81 kB / 1.177 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.79e-05/0.7483, allocations: 47.97 kB / 1.177 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0007802/0.7491, allocations: 0.63 MB / 1.177 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7491, allocations: 0 / 1.177 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0009928/0.7501, allocations: 447 kB / 1.178 GB, free: 6.676 MB / 0.9356 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.005038/0.7551, allocations: 3.016 MB / 1.181 GB, free: 3.801 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002963/0.7581, allocations: 1.339 MB / 1.182 GB, free: 2.445 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.7581, allocations: 0 / 1.182 GB, free: 2.445 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.7593, allocations: 0.6607 MB / 1.183 GB, free: 1.773 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/0.7614, allocations: 0.5143 MB / 1.183 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/0.7758, allocations: 9.414 MB / 1.192 GB, free: 7.508 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006673/0.7765, allocations: 1.158 MB / 1.193 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001204/0.7777, allocations: 369.7 kB / 1.194 GB, free: 5.957 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000697/0.7784, allocations: 0.5305 MB / 1.194 GB, free: 5.426 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.7784, allocations: 0 / 1.194 GB, free: 5.426 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05786/0.8363, allocations: 32.43 MB / 1.226 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/12.11, allocations: 17.8 kB / 1.226 GB, free: 5.371 MB / 0.9825 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