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.007775/0.007776, allocations: 98.52 kB / 15.73 MB, free: 6.062 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.001873/0.001874, allocations: 196.4 kB / 16.67 MB, free: 5.973 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.605/2.605, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.83 kB / 1.018 GB, free: 9.922 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6721/0.6741, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002632/0.6767, allocations: 1.484 MB / 1.168 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.6781, allocations: 0.7245 MB / 1.168 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.908e-05/0.6782, allocations: 0 / 1.168 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.636e-05/0.6782, allocations: 11.92 kB / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.084e-05/0.6783, allocations: 11.86 kB / 1.168 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005326/0.6788, allocations: 119.6 kB / 1.168 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.679, allocations: 79.7 kB / 1.168 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.815e-05/0.6791, allocations: 11.98 kB / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.997e-05/0.6792, allocations: 31.92 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.749e-05/0.6792, allocations: 51.81 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.6793, allocations: 4 kB / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002003/0.6795, allocations: 95.84 kB / 1.169 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.795e-05/0.6795, allocations: 15.92 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.106e-05/0.6796, allocations: 35.84 kB / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.6798, allocations: 139.3 kB / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.6798, allocations: 0 / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.253e-06/0.6798, allocations: 0 / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.6798, allocations: 0 / 1.169 GB, free: 0.9648 MB / 0.8887 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.0006695/0.6805, allocations: 424.7 kB / 1.169 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.6806, allocations: 16.86 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.6806, allocations: 42.67 kB / 1.169 GB, free: 440 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.6807, allocations: 8.891 kB / 1.169 GB, free: 432 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.6808, allocations: 168.3 kB / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.6808, allocations: 384 / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.6809, allocations: 8.375 kB / 1.17 GB, free: 216 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.6811, allocations: 69.78 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.6811, allocations: 0 / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.6811, allocations: 11.92 kB / 1.17 GB, free: 128 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.6811, allocations: 0 / 1.17 GB, free: 128 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.6812, allocations: 35.98 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006202/0.6819, allocations: 328.6 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.682, allocations: 46.56 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.941e-05/0.6821, allocations: 32.97 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.6822, allocations: 0 / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.6824, allocations: 83.31 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.6824, allocations: 0 / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004164/0.6828, allocations: 133.6 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.6829, allocations: 63.39 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.683, allocations: 117.8 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.683, allocations: 25.7 kB / 1.17 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.6831, allocations: 100.1 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.6831, allocations: 11.91 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.835e-05/0.6832, allocations: 33.7 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.6834, allocations: 318.8 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.708e-05/0.6835, allocations: 27.98 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.6836, allocations: 54.86 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.6838, allocations: 70.55 kB / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.6838, allocations: 0 / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002594/0.684, allocations: 117.5 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.684, allocations: 4 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.6841, allocations: 0 / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.6841, allocations: 4 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.378e-05/0.6842, allocations: 15.88 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.6842, allocations: 4.375 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.068e-05/0.6843, allocations: 11.94 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.6843, allocations: 4 kB / 1.171 GB, free: 14.36 MB / 0.9044 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.0001073/0.6844, allocations: 121.8 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.983e-05/0.6844, allocations: 7.953 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.764e-05/0.6845, allocations: 12.36 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.6845, allocations: 4 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.6845, allocations: 0 / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.6845, allocations: 3.938 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005024/0.685, allocations: 386.3 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.685, allocations: 4 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.926e-05/0.6851, allocations: 4 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.6851, allocations: 0 / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.6851, allocations: 7.984 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.6851, allocations: 7.938 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6851, allocations: 0 / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003019/0.6854, allocations: 203.4 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-05/0.6855, allocations: 89.06 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.6855, allocations: 3.984 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.454e-05/0.6856, allocations: 11.94 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.6856, allocations: 3.984 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.6857, allocations: 8 kB / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.449e-05/0.6857, allocations: 91.27 kB / 1.172 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.6857, allocations: 0 / 1.172 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002961/0.686, allocations: 39.88 kB / 1.172 GB, free: 13.27 MB / 0.9044 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.0009011/0.6869, allocations: 0.8074 MB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002487/0.6872, allocations: 71.97 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.6872, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.6873, allocations: 39.91 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.6876, allocations: 13.98 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.6894, allocations: 1.506 MB / 1.174 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.6897, allocations: 0.6846 MB / 1.175 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.77e-05/0.6898, allocations: 11.97 kB / 1.175 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.441e-05/0.6898, allocations: 15.44 kB / 1.175 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.6898, allocations: 0 / 1.175 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.7134, allocations: 2.652 MB / 1.178 GB, free: 7.48 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.839/8.552, allocations: 11.95 kB / 1.178 GB, free: 7.473 MB / 0.9044 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