Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",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.001562/0.001563, 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.001873/0.001874, allocations: 196 kB / 16.54 MB, free: 6.672 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.638/2.638, allocations: 437 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 63.89 kB / 0.8693 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.699/0.7005, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002761/0.7033, allocations: 1.479 MB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00125/0.7046, allocations: 0.7401 MB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.012e-05/0.7047, allocations: 0 / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.219e-05/0.7047, allocations: 3.938 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.386e-05/0.7048, allocations: 11.88 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006001/0.7054, allocations: 119.6 kB / 1.02 GB, free: 96 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.7055, allocations: 75.77 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.29e-05/0.7056, allocations: 19.98 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.686e-05/0.7057, allocations: 31.98 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.159e-05/0.7058, allocations: 47.81 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.7058, allocations: 8 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.706, allocations: 91.78 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.718e-05/0.706, allocations: 15.92 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.153e-05/0.7061, allocations: 31.86 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.7063, allocations: 145.9 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.7064, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.452e-06/0.7064, allocations: 4 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.7064, allocations: 0 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006088/0.707, allocations: 422.5 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.707, allocations: 8.031 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.7071, allocations: 38.75 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.7071, allocations: 8.781 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.7073, allocations: 168.4 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.7073, allocations: 8.359 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.7073, allocations: 8.375 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.7075, allocations: 77.72 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.7075, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.7075, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.7075, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.7077, allocations: 35.97 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006613/0.7083, allocations: 320.6 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.7085, allocations: 50.5 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.429e-05/0.7086, allocations: 32.97 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.7086, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.7088, allocations: 87.38 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.7088, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003839/0.7092, allocations: 137.5 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.7093, allocations: 63.34 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.7094, allocations: 113.8 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.7094, allocations: 29.7 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.7095, allocations: 88.12 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.7096, allocations: 19.81 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.656e-05/0.7096, allocations: 29.7 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002114/0.7099, allocations: 326.8 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.71, allocations: 23.98 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.7102, allocations: 46.56 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/0.7105, allocations: 78.48 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.7105, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004091/0.7109, allocations: 117.8 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.711, allocations: 4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.711, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.711, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.7112, allocations: 16.05 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.7112, allocations: 8.062 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.7113, allocations: 15.84 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.7113, allocations: 4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (hea.occ,hea.curSeed,$PRE.hea.curSeed,hea.p,$PRE.hea.p,hea.on,$PRE.hea.on,hea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 0.0001462/0.7115, allocations: 129.3 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.755e-05/0.7115, allocations: 4 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.7116, allocations: 8.375 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.7116, allocations: 3.938 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.7116, allocations: 4 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.7116, allocations: 4 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006504/0.7123, allocations: 382.4 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.7123, allocations: 3.938 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.809e-05/0.7124, allocations: 11.92 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.7124, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.7124, allocations: 4 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.7124, allocations: 3.938 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.7124, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004104/0.7128, allocations: 203.5 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.7129, allocations: 85 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.713, allocations: 4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.7131, allocations: 7.938 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.672e-05/0.7132, allocations: 7.984 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.7132, allocations: 4 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.22e-05/0.7133, allocations: 95.27 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.21e-07/0.7133, allocations: 0 / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005192/0.7139, allocations: 39.94 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001154/0.715, allocations: 0.7994 MB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003634/0.7154, allocations: 79.81 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.7154, allocations: 0 / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001592/0.7156, allocations: 35.98 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004034/0.716, allocations: 8.484 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.718, allocations: 1.499 MB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.7183, allocations: 0.6885 MB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.756e-05/0.7183, allocations: 4 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.7184, allocations: 23.42 kB / 1.026 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of SimCode: time 2.264e-06/0.7184, allocations: 0 / 1.026 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.7382, allocations: 2.612 MB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.228/7.966, allocations: 16.02 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable hea.occ in file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.occ from file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! Error: Could not read variable hea.on in file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.on from file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! " Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:time,hea.TOut,hea.p,TOut.amplitude,TOut.f,TOut.offset