Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_11_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.006665/0.006665, allocations: 99.16 kB / 15.73 MB, free: 6.008 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.001774/0.001774, allocations: 198.3 kB / 16.68 MB, free: 5.934 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.517/2.517, allocations: 469.8 MB / 0.7425 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 63.89 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5837/0.5853, allocations: 159.1 MB / 1.22 GB, free: 2.098 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002311/0.5877, allocations: 1.487 MB / 1.222 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.5888, allocations: 0.7255 MB / 1.222 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.966e-05/0.5889, allocations: 7.828 kB / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.5889, allocations: 3.938 kB / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.297e-05/0.5889, allocations: 11.86 kB / 1.222 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.5894, allocations: 123.6 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.5895, allocations: 75.78 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 7.063e-05/0.5896, allocations: 11.94 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.493e-05/0.5897, allocations: 43.91 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.464e-05/0.5897, allocations: 39.84 kB / 1.223 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.5897, allocations: 4 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.5899, allocations: 91.84 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.791e-05/0.59, allocations: 27.89 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.297e-05/0.59, allocations: 31.86 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002008/0.5902, allocations: 139.3 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.5902, allocations: 7.938 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5902, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.5902, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 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.0005353/0.5908, allocations: 416.7 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.5908, allocations: 12.03 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.165e-05/0.5909, allocations: 42.67 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.5909, allocations: 8.891 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.591, allocations: 176.3 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.591, allocations: 4.375 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.5911, allocations: 8.375 kB / 1.224 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001575/0.5912, allocations: 65.78 kB / 1.224 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.5912, allocations: 4 kB / 1.224 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.5912, allocations: 0 / 1.224 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.5913, allocations: 4 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001221/0.5914, allocations: 39.91 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005163/0.5919, allocations: 316.7 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.592, allocations: 50.56 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.719e-05/0.5921, allocations: 28.97 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.5922, allocations: 4 kB / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/0.5923, allocations: 79.31 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.5923, allocations: 0 / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.000351/0.5927, allocations: 141.7 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.5927, allocations: 55.41 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.945e-05/0.5928, allocations: 125.8 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.5929, allocations: 25.7 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.5929, allocations: 88.14 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.5929, allocations: 19.89 kB / 1.225 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.78e-05/0.593, allocations: 29.7 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.5931, allocations: 318.8 kB / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.597e-05/0.5932, allocations: 31.92 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.328e-05/0.5933, allocations: 46.55 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.5934, allocations: 70.86 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5935, allocations: 7.938 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002282/0.5937, allocations: 117.5 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.5937, allocations: 7.984 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.5937, allocations: 4 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.807e-06/0.5937, allocations: 3.938 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.739e-05/0.5938, allocations: 8 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.5938, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.064e-05/0.5939, allocations: 15.92 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.5939, allocations: 8.062 kB / 1.225 GB, free: 12.67 MB / 0.9512 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 8.323e-05/0.594, allocations: 117.8 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.594, allocations: 7.953 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.569e-05/0.594, allocations: 16.36 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.5941, allocations: 0 / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.746e-06/0.5941, allocations: 0 / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.5941, allocations: 0 / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004321/0.5945, allocations: 394.3 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.5945, allocations: 0 / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.541e-05/0.5946, allocations: 4 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.5946, allocations: 0 / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.5946, allocations: 15.97 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.5946, allocations: 3.938 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.5946, allocations: 0 / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.5949, allocations: 203.5 kB / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-05/0.5949, allocations: 85.06 kB / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.5949, allocations: 0 / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.595, allocations: 15.92 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.5951, allocations: 4 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.397e-06/0.5951, allocations: 3.984 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.058e-05/0.5952, allocations: 95.86 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.256e-06/0.5952, allocations: 0 / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002588/0.5954, allocations: 47.81 kB / 1.226 GB, free: 11.57 MB / 0.9512 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.0007261/0.5962, allocations: 0.8006 MB / 1.227 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002104/0.5964, allocations: 80.2 kB / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.5964, allocations: 0 / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.96e-05/0.5965, allocations: 36.12 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.5967, allocations: 16.08 kB / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.5982, allocations: 1.493 MB / 1.228 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.5984, allocations: 0.6885 MB / 1.229 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.954e-05/0.5985, allocations: 4 kB / 1.229 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.209e-05/0.5985, allocations: 23.42 kB / 1.229 GB, free: 8.305 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/0.5985, allocations: 4 kB / 1.229 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.869/3.468, allocations: 2.653 MB / 1.232 GB, free: 5.793 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.52/23.99, allocations: 1.312 kB / 1.232 GB, free: 5.793 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat --tempDir=temp_Buildings_11_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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