Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_GroundTemperature_Examples_CorrectedNFactors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors,fileNamePrefix="Buildings_latest_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.00126/0.00126, 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.001335/0.001335, allocations: 194 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.223/1.223, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.456/2.456, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 62.58 kB / 0.9082 GB, free: 34.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2438, allocations: 159.2 MB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors): time 0.002457/0.2463, allocations: 1.585 MB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2475, allocations: 0.9268 MB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.638e-05/0.2475, allocations: 0 / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.2478, allocations: 59.66 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.2481, allocations: 143.3 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 3.108e-05/0.2482, allocations: 11.98 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.2485, allocations: 366.2 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.356e-05/0.2486, allocations: 48.72 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.2487, allocations: 139.4 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.2489, allocations: 143.3 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/0.2489, allocations: 16 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002986/0.2519, allocations: 0.559 MB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.091e-05/0.252, allocations: 55.7 kB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.2522, allocations: 131.3 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.265, allocations: 13.23 MB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2651, allocations: 0 / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.854e-06/0.2651, allocations: 0 / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.2651, allocations: 4 kB / 1.081 GB, free: 13.11 MB / 0.8419 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.001162/0.2662, allocations: 0.6458 MB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2663, allocations: 8.031 kB / 1.081 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.367e-05/0.2663, allocations: 42.73 kB / 1.081 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.662e-05/0.2664, allocations: 32.56 kB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.2668, allocations: 370.3 kB / 1.082 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.2668, allocations: 4.375 kB / 1.082 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.2668, allocations: 4.375 kB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.267, allocations: 101.1 kB / 1.082 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.267, allocations: 0 / 1.082 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.267, allocations: 4 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.267, allocations: 7.938 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.8e-05/0.2671, allocations: 67.86 kB / 1.082 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003043/0.2674, allocations: 344 kB / 1.082 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.2675, allocations: 110.3 kB / 1.082 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.2676, allocations: 63.39 kB / 1.082 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.2677, allocations: 4 kB / 1.082 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.2677, allocations: 42.5 kB / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.2677, allocations: 0 / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0003038/0.268, allocations: 185.1 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.2681, allocations: 128.5 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004743/0.2686, allocations: 0.5053 MB / 1.083 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2686, allocations: 25.7 kB / 1.083 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.531e-05/0.2687, allocations: 160.8 kB / 1.083 GB, free: 10 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.2687, allocations: 15.83 kB / 1.083 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.275e-05/0.2688, allocations: 53.59 kB / 1.083 GB, free: 9.93 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.972e-05/0.2689, allocations: 346.8 kB / 1.084 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.269, allocations: 99.92 kB / 1.084 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.2691, allocations: 164.4 kB / 1.084 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.2694, allocations: 235.2 kB / 1.084 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2694, allocations: 0 / 1.084 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003334/0.2697, allocations: 301 kB / 1.085 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.2698, allocations: 4 kB / 1.085 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.2698, allocations: 4 kB / 1.085 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.2698, allocations: 0 / 1.085 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.2699, allocations: 15.98 kB / 1.085 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2699, allocations: 4 kB / 1.085 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.2701, allocations: 23.83 kB / 1.085 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.2701, allocations: 15.92 kB / 1.085 GB, free: 8.691 MB / 0.8419 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.0001302/0.2702, allocations: 174.2 kB / 1.085 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.2703, allocations: 35.56 kB / 1.085 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002722/0.2706, allocations: 183.9 kB / 1.085 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.2706, allocations: 8.125 kB / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2706, allocations: 0 / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2706, allocations: 3.984 kB / 1.085 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.2708, allocations: 289.4 kB / 1.085 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2708, allocations: 0 / 1.085 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.286e-05/0.2709, allocations: 19.92 kB / 1.085 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2709, allocations: 4 kB / 1.085 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.2709, allocations: 0 / 1.085 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2709, allocations: 4 kB / 1.085 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2709, allocations: 0 / 1.085 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.2711, allocations: 195.1 kB / 1.085 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.2713, allocations: 132.6 kB / 1.086 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.242e-05/0.2713, allocations: 4 kB / 1.086 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.2715, allocations: 11.98 kB / 1.086 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.01e-05/0.2715, allocations: 11.94 kB / 1.086 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.2715, allocations: 0 / 1.086 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003668/0.2719, allocations: 383 kB / 1.086 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2719, allocations: 0 / 1.086 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003904/0.2723, allocations: 99.98 kB / 1.086 GB, free: 7.051 MB / 0.8419 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.004489/0.2768, allocations: 3.442 MB / 1.089 GB, free: 3.566 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002683/0.277, allocations: 175.8 kB / 1.09 GB, free: 3.395 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.277, allocations: 0 / 1.09 GB, free: 3.395 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 6.464e-05/0.2771, allocations: 51.89 kB / 1.09 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.2774, allocations: 53.94 kB / 1.09 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.2808, allocations: 3.483 MB / 1.093 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.2811, allocations: 0.8181 MB / 1.094 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001086/0.2812, allocations: 50.28 kB / 1.094 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.2813, allocations: 86.34 kB / 1.094 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.2813, allocations: 0 / 1.094 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.3064, allocations: 10.66 MB / 1.104 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.968/7.274, allocations: 7.047 kB / 1.104 GB, free: 4.207 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_BoundaryConditions_GroundTemperature_Examples_CorrectedNFactors.fmu > Buildings_latest_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.GroundTemperature.Examples.CorrectedNFactors_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_GroundTemperature_Examples_CorrectedNFactors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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