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 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.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.001692/0.001693, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001373/0.001373, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.164/1.164, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.009/3.009, allocations: 461.9 MB / 0.7344 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 62.95 kB / 0.8987 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2274, allocations: 157.4 MB / 1.052 GB, free: 8.727 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.00225/0.2296, allocations: 1.54 MB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009916/0.2306, allocations: 0.7284 MB / 1.055 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.206e-05/0.2307, allocations: 7.875 kB / 1.055 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.718e-05/0.2307, allocations: 0 / 1.055 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.029e-05/0.2308, allocations: 11.94 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.2312, allocations: 103.8 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.879e-05/0.2313, allocations: 75.77 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.187e-05/0.2314, allocations: 15.98 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.849e-05/0.2315, allocations: 31.91 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.323e-05/0.2315, allocations: 35.84 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.2315, allocations: 15.98 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.2317, allocations: 91.86 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.2317, allocations: 23.91 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.865e-05/0.2318, allocations: 31.86 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.232, allocations: 143.9 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.232, allocations: 0 / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.232, allocations: 0 / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.232, allocations: 0 / 1.055 GB, free: 5.859 MB / 0.8106 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.000514/0.2325, allocations: 413 kB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.2326, allocations: 12.62 kB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.163e-05/0.2326, allocations: 38.75 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.2326, allocations: 4.844 kB / 1.056 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.827e-05/0.2327, allocations: 188.1 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.2328, allocations: 4.375 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.2328, allocations: 4.375 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.2329, allocations: 73.78 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.2329, allocations: 0 / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.233, allocations: 0 / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.233, allocations: 4 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.2331, allocations: 43.91 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005122/0.2336, allocations: 312.7 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.2337, allocations: 50.56 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.483e-05/0.2338, allocations: 36.95 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.2338, allocations: 0 / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001545/0.234, allocations: 79.36 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.234, allocations: 0 / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003365/0.2344, allocations: 141.5 kB / 1.057 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.2344, allocations: 63.41 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.484e-05/0.2345, allocations: 121.8 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.2345, allocations: 29.7 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.555e-05/0.2346, allocations: 88.05 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.2346, allocations: 15.84 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-05/0.2346, allocations: 29.7 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.197e-05/0.2347, allocations: 326.8 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.851e-05/0.2348, allocations: 23.98 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.148e-05/0.2349, allocations: 50.55 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.235, allocations: 70.5 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2351, allocations: 0 / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002193/0.2353, allocations: 121.5 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.2353, allocations: 4 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.2353, allocations: 0 / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.686e-06/0.2353, allocations: 0 / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.887e-05/0.2354, allocations: 23.91 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.2354, allocations: 0 / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.365e-05/0.2355, allocations: 15.84 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.2355, allocations: 7.984 kB / 1.057 GB, free: 3.254 MB / 0.8106 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 7.473e-05/0.2356, allocations: 125 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.2356, allocations: 7.906 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.082e-05/0.2356, allocations: 8.375 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2356, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2356, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2357, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003938/0.2361, allocations: 386.3 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2361, allocations: 4 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.888e-05/0.2361, allocations: 11.92 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2361, allocations: 0 / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.2361, allocations: 4 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.2361, allocations: 3.938 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2361, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.2364, allocations: 211.3 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.2364, allocations: 81.11 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.2365, allocations: 4 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.814e-05/0.2366, allocations: 11.94 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.282e-05/0.2366, allocations: 7.984 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.2366, allocations: 0 / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.267e-05/0.2367, allocations: 95.27 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2367, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002594/0.2369, allocations: 43.89 kB / 1.058 GB, free: 2.172 MB / 0.8106 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.000642/0.2376, allocations: 0.7901 MB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002085/0.2378, allocations: 83.88 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.572e-06/0.2378, allocations: 3.938 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.574e-05/0.2379, allocations: 35.92 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.2381, allocations: 15.92 kB / 1.059 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.2395, allocations: 1.496 MB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.2397, allocations: 0.6883 MB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.414e-05/0.2398, allocations: 11.98 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.834e-05/0.2398, allocations: 23.42 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2398, allocations: 0 / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.026/2.266, allocations: 2.493 MB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/2.266, allocations: 269.2 kB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/4.141, allocations: 0 / 1.064 GB, free: 12.22 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.p,hea.samplePeriod,hea.seed,occ.startTime,occ.startValue,occ.y,time