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.001221/0.001221, 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.001289/0.001289, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.244/1.244, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.399/2.399, allocations: 461.9 MB / 0.7346 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 67.12 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2082, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002224/0.2104, allocations: 1.487 MB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001052/0.2115, allocations: 0.7365 MB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.565e-05/0.2116, allocations: 4 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.737e-05/0.2116, allocations: 3.938 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.594e-05/0.2116, allocations: 19.73 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004441/0.2121, allocations: 123.6 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.252e-05/0.2122, allocations: 79.75 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.215e-05/0.2123, allocations: 12 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.405e-05/0.2124, allocations: 31.92 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.588e-05/0.2124, allocations: 43.81 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.2124, allocations: 8 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.2126, allocations: 95.84 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.235e-05/0.2126, allocations: 15.92 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.36e-05/0.2127, allocations: 35.86 kB / 1.056 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.2129, allocations: 143.9 kB / 1.056 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.2129, allocations: 0 / 1.056 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2129, allocations: 0 / 1.056 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.2129, allocations: 0 / 1.056 GB, free: 5.43 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.0005083/0.2134, allocations: 413 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.2135, allocations: 8.625 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.804e-05/0.2135, allocations: 38.75 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.12e-05/0.2135, allocations: 8.844 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.549e-05/0.2136, allocations: 184.1 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.2137, allocations: 4.375 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.2137, allocations: 4.375 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001607/0.2138, allocations: 73.78 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.2139, allocations: 0 / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.2139, allocations: 0 / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.2139, allocations: 0 / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.214, allocations: 35.97 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005041/0.2145, allocations: 320.7 kB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.2146, allocations: 46.5 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.451e-05/0.2147, allocations: 40.95 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.2147, allocations: 7.984 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001546/0.2149, allocations: 79.45 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.354e-06/0.2149, allocations: 0 / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003306/0.2152, allocations: 137.5 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.2153, allocations: 55.41 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.045e-05/0.2154, allocations: 121.8 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.2154, allocations: 33.69 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.871e-05/0.2154, allocations: 88.05 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.2155, allocations: 15.84 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.928e-05/0.2155, allocations: 29.7 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.475e-05/0.2156, allocations: 326.8 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.06e-05/0.2157, allocations: 19.98 kB / 1.058 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.113e-05/0.2158, allocations: 50.56 kB / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.2159, allocations: 82.41 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.2159, allocations: 0 / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002089/0.2161, allocations: 113.8 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.2162, allocations: 4 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2162, allocations: 4.062 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.2162, allocations: 4 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.495e-05/0.2163, allocations: 19.92 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.2163, allocations: 4.062 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.2164, allocations: 11.91 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.2164, allocations: 4 kB / 1.058 GB, free: 2.832 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.731e-05/0.2165, allocations: 127.2 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.2165, allocations: 7.906 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.102e-05/0.2165, allocations: 12.38 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.2165, allocations: 0 / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2165, allocations: 0 / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.2165, allocations: 4 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003751/0.2169, allocations: 382.3 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2169, allocations: 0 / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.691e-05/0.217, allocations: 7.984 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.217, allocations: 0 / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-06/0.217, allocations: 4 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.217, allocations: 3.938 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.217, allocations: 0 / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.2172, allocations: 215.3 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.722e-05/0.2173, allocations: 77.11 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.2173, allocations: 4 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-05/0.2174, allocations: 3.938 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.2174, allocations: 15.98 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.2174, allocations: 4 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.531e-05/0.2175, allocations: 91.27 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2175, allocations: 0 / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002565/0.2178, allocations: 43.89 kB / 1.059 GB, free: 1.75 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.0006265/0.2184, allocations: 0.7992 MB / 1.06 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002036/0.2186, allocations: 75.89 kB / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.2186, allocations: 0 / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.344e-05/0.2187, allocations: 43.98 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.2189, allocations: 16.47 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.2203, allocations: 1.481 MB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.2205, allocations: 0.6922 MB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.973e-05/0.2205, allocations: 7.938 kB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.901e-05/0.2205, allocations: 23.42 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2206, allocations: 0 / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.105/1.326, allocations: 2.614 MB / 1.065 GB, free: 12 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/9.608, allocations: 4.062 kB / 1.065 GB, free: 11.99 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