Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_latest_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.005138/0.005138, allocations: 98.55 kB / 15.73 MB, free: 6.047 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.00152/0.00152, allocations: 194.5 kB / 16.68 MB, free: 5.969 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.907/2.907, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 67.88 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2766, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002564/0.2792, allocations: 1.482 MB / 1.243 GB, free: 8.746 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00122/0.2805, allocations: 0.7245 MB / 1.244 GB, free: 8.016 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.396e-05/0.2805, allocations: 0 / 1.244 GB, free: 8.016 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.778e-05/0.2805, allocations: 11.86 kB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.967e-05/0.2806, allocations: 7.875 kB / 1.244 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.2811, allocations: 131.6 kB / 1.244 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.2812, allocations: 71.78 kB / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.253e-05/0.2813, allocations: 19.95 kB / 1.244 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.698e-05/0.2814, allocations: 31.92 kB / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.128e-05/0.2815, allocations: 43.81 kB / 1.244 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.796e-05/0.2815, allocations: 4 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.2817, allocations: 99.84 kB / 1.244 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.92e-05/0.2817, allocations: 23.92 kB / 1.244 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.382e-05/0.2818, allocations: 31.86 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.282, allocations: 135.5 kB / 1.244 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.282, allocations: 0 / 1.244 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2821, allocations: 3.938 kB / 1.244 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2821, allocations: 4 kB / 1.244 GB, free: 7.406 MB / 0.9981 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.000624/0.2827, allocations: 420.7 kB / 1.245 GB, free: 6.941 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2827, allocations: 12.03 kB / 1.245 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.293e-05/0.2828, allocations: 34.75 kB / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.2828, allocations: 12.89 kB / 1.245 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.283, allocations: 176.3 kB / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.283, allocations: 4.375 kB / 1.245 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.283, allocations: 12.3 kB / 1.245 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.2832, allocations: 69.78 kB / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.2832, allocations: 0 / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.2832, allocations: 0 / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2832, allocations: 4 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.2834, allocations: 43.91 kB / 1.245 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005888/0.284, allocations: 312.7 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.2841, allocations: 42.56 kB / 1.245 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.751e-05/0.2842, allocations: 32.97 kB / 1.245 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.2843, allocations: 4 kB / 1.245 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.2844, allocations: 91.36 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.2845, allocations: 0 / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004049/0.2849, allocations: 137.6 kB / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.2849, allocations: 51.41 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.285, allocations: 121.8 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.2851, allocations: 29.7 kB / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/0.2851, allocations: 96.08 kB / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.2852, allocations: 15.91 kB / 1.246 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.2852, allocations: 29.7 kB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2854, allocations: 322.8 kB / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.781e-05/0.2855, allocations: 27.92 kB / 1.246 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.2856, allocations: 50.55 kB / 1.246 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001808/0.2858, allocations: 74.53 kB / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2858, allocations: 0 / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002584/0.286, allocations: 113.5 kB / 1.246 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.2861, allocations: 14.03 kB / 1.246 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2861, allocations: 4 kB / 1.246 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.2861, allocations: 0 / 1.246 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.24e-05/0.2862, allocations: 15.92 kB / 1.246 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.2862, allocations: 0 / 1.246 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.553e-05/0.2863, allocations: 7.938 kB / 1.246 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.2863, allocations: 8 kB / 1.246 GB, free: 4.809 MB / 0.9981 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 9.749e-05/0.2864, allocations: 117.8 kB / 1.247 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.2864, allocations: 15.94 kB / 1.247 GB, free: 4.668 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.647e-05/0.2864, allocations: 12.38 kB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2865, allocations: 0 / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2865, allocations: 0 / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2865, allocations: 0 / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005022/0.287, allocations: 382.4 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.287, allocations: 0 / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-05/0.287, allocations: 11.94 kB / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.2871, allocations: 3.984 kB / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.2871, allocations: 4 kB / 1.247 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2871, allocations: 7.938 kB / 1.247 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2871, allocations: 0 / 1.247 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.2874, allocations: 203.5 kB / 1.247 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-05/0.2875, allocations: 89.05 kB / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.2875, allocations: 0 / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-05/0.2876, allocations: 7.938 kB / 1.247 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.101e-05/0.2876, allocations: 11.98 kB / 1.247 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.2876, allocations: 4 kB / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.44e-05/0.2877, allocations: 91.27 kB / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2877, allocations: 0 / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002904/0.288, allocations: 39.88 kB / 1.247 GB, free: 3.723 MB / 0.9981 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.0008419/0.2889, allocations: 0.8148 MB / 1.248 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002488/0.2891, allocations: 79.88 kB / 1.248 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2891, allocations: 3.938 kB / 1.248 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.2892, allocations: 36.11 kB / 1.248 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.2895, allocations: 11.94 kB / 1.248 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.2912, allocations: 1.489 MB / 1.25 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.2915, allocations: 0.6924 MB / 1.25 GB, free: 476 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.827e-05/0.2916, allocations: 11.97 kB / 1.25 GB, free: 464 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.2916, allocations: 11.44 kB / 1.25 GB, free: 452 kB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.2916, allocations: 0 / 1.25 GB, free: 452 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4764/0.768, allocations: 2.647 MB / 1.253 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/8.481, allocations: 10.34 kB / 1.253 GB, free: 14.48 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.occ from file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! Error: Could not read variable hea.on in file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.on from file Buildings_latest_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