Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.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.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_GroundTemperature_Examples_CorrectedNFactors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_GroundTemperature_Examples_CorrectedNFactors",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.004931/0.004931, allocations: 103.5 kB / 15.74 MB, free: 6.035 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.00111/0.00111, allocations: 194.7 kB / 16.68 MB, free: 5.953 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.216/1.216, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.076/2.076, allocations: 390.3 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 67.89 kB / 0.9504 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7373/0.7385, allocations: 140.4 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors): time 0.002342/0.7409, allocations: 1.6 MB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.742, allocations: 0.9099 MB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.756e-05/0.7421, allocations: 2.312 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002302/0.7423, allocations: 67.98 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004064/0.7427, allocations: 146.1 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 3.067e-05/0.7428, allocations: 11.08 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.7432, allocations: 357.9 kB / 1.09 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.459e-05/0.7432, allocations: 47.12 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.7434, allocations: 144.5 kB / 1.091 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.7436, allocations: 140.8 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.25e-05/0.7437, allocations: 20.03 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0031/0.7468, allocations: 0.5618 MB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.511e-05/0.7469, allocations: 52.33 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.747, allocations: 134.5 kB / 1.092 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01709/0.7641, allocations: 13.23 MB / 1.104 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.7642, allocations: 0 / 1.104 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7642, allocations: 0 / 1.104 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.954e-06/0.7642, allocations: 1.125 kB / 1.104 GB, free: 14.54 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.001443/0.7656, allocations: 0.656 MB / 1.105 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.7657, allocations: 9.969 kB / 1.105 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.7657, allocations: 31.92 kB / 1.105 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.133e-05/0.7658, allocations: 36.38 kB / 1.105 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.7663, allocations: 374.6 kB / 1.105 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.7663, allocations: 2.188 kB / 1.106 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.7664, allocations: 8.531 kB / 1.106 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.7665, allocations: 100.3 kB / 1.106 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.7666, allocations: 1.125 kB / 1.106 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.7666, allocations: 0 / 1.106 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.7666, allocations: 1.781 kB / 1.106 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.7667, allocations: 74.73 kB / 1.106 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003816/0.7671, allocations: 341.4 kB / 1.106 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.7672, allocations: 110.6 kB / 1.106 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.394e-05/0.7673, allocations: 62.67 kB / 1.106 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.7674, allocations: 0.9688 kB / 1.106 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.7674, allocations: 40.88 kB / 1.106 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.7674, allocations: 1.062 kB / 1.106 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of matching and sorting (n=4): time 0.0003539/0.7677, allocations: 189.8 kB / 1.106 GB, free: 13 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.248e-05/0.7678, allocations: 131.2 kB / 1.107 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000745/0.7686, allocations: 0.5052 MB / 1.107 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.7686, allocations: 27.08 kB / 1.107 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.7688, allocations: 160.9 kB / 1.107 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.7688, allocations: 12.44 kB / 1.107 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-05/0.7689, allocations: 56.92 kB / 1.107 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.769, allocations: 341.6 kB / 1.108 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.7692, allocations: 96.44 kB / 1.108 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.7694, allocations: 158.9 kB / 1.108 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.7697, allocations: 243.7 kB / 1.108 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.7697, allocations: 0.875 kB / 1.108 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004007/0.7701, allocations: 295.4 kB / 1.108 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.7702, allocations: 5.562 kB / 1.108 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.7702, allocations: 0.6562 kB / 1.108 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.7702, allocations: 2.625 kB / 1.108 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.7703, allocations: 20.33 kB / 1.108 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.7703, allocations: 1.312 kB / 1.108 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.7705, allocations: 20.89 kB / 1.108 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.7705, allocations: 5.469 kB / 1.108 GB, free: 11.72 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001563/0.7707, allocations: 189.7 kB / 1.109 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.982e-05/0.7707, allocations: 33.78 kB / 1.109 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003204/0.7711, allocations: 185.6 kB / 1.109 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.7711, allocations: 2.797 kB / 1.109 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.7711, allocations: 1.531 kB / 1.109 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.7711, allocations: 1.406 kB / 1.109 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002833/0.7714, allocations: 289.3 kB / 1.109 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7714, allocations: 1.344 kB / 1.109 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.943e-05/0.7715, allocations: 21.97 kB / 1.109 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.7715, allocations: 1.859 kB / 1.109 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.7715, allocations: 1.312 kB / 1.109 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.7715, allocations: 2.109 kB / 1.109 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.7715, allocations: 1.219 kB / 1.109 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/0.7718, allocations: 193.7 kB / 1.109 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.7719, allocations: 137.4 kB / 1.109 GB, free: 10.97 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.319e-05/0.772, allocations: 6.953 kB / 1.109 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.7721, allocations: 9.391 kB / 1.109 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.576e-05/0.7721, allocations: 10.48 kB / 1.109 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-06/0.7722, allocations: 2.562 kB / 1.109 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004312/0.7726, allocations: 381.5 kB / 1.11 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7726, allocations: 5.031 kB / 1.11 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005648/0.7732, allocations: 103.3 kB / 1.11 GB, free: 10.78 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004995/0.7782, allocations: 3.435 MB / 1.113 GB, free: 9.801 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.7785, allocations: 172.3 kB / 1.113 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7785, allocations: 1.469 kB / 1.113 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.986e-05/0.7786, allocations: 46.67 kB / 1.113 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.7789, allocations: 51.02 kB / 1.114 GB, free: 9.723 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004192/0.7831, allocations: 3.486 MB / 1.117 GB, free: 7.527 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.7835, allocations: 0.8101 MB / 1.118 GB, free: 6.77 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001167/0.7836, allocations: 47.91 kB / 1.118 GB, free: 6.754 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.7837, allocations: 79.97 kB / 1.118 GB, free: 6.688 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.7838, allocations: 0 / 1.118 GB, free: 6.688 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.8153, allocations: 10.71 MB / 1.128 GB, free: 1.594 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.609, allocations: 6.75 kB / 1.128 GB, free: 1.59 MB / 0.8731 GB (rm -f Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors_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_BoundaryConditions_GroundTemperature_Examples_CorrectedNFactors.fmu > Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_GroundTemperature_Examples_CorrectedNFactors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=31536000.000000 File[7]=75686.400000 " Variables in the reference:time,TSoi[1].T,TSoi[2].T,TSoi[3].T,TSoi[4].T Variables in the result:time,TSoi[1].T,TSoi[2].T,TSoi[3].T,TSoi[4].T,TSoi[1].cliCon.TSurAmp