Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",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.001787/0.001787, 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.00223/0.00223, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.265/1.265, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.658/2.658, allocations: 461.9 MB / 0.7344 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 62.56 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2178, allocations: 157.4 MB / 1.052 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002155/0.22, allocations: 1.54 MB / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009656/0.221, allocations: 0.7289 MB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.324e-05/0.221, allocations: 4 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.69e-05/0.2211, allocations: 7.875 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.34e-05/0.2211, allocations: 11.91 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.2215, allocations: 107.8 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.432e-05/0.2216, allocations: 79.78 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.178e-05/0.2217, allocations: 11.98 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.856e-05/0.2218, allocations: 35.91 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.008e-05/0.2218, allocations: 31.84 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.2219, allocations: 8 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.222, allocations: 99.84 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.222, allocations: 15.91 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.2221, allocations: 35.86 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.2223, allocations: 143.9 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2223, allocations: 0 / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.424e-06/0.2223, allocations: 3.984 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.2223, allocations: 0 / 1.055 GB, free: 5.809 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.0004936/0.2228, allocations: 409 kB / 1.056 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.2228, allocations: 12.62 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.181e-05/0.2229, allocations: 34.75 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.114e-05/0.2229, allocations: 12.83 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.652e-05/0.223, allocations: 180.2 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.223, allocations: 384 / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.223, allocations: 8.375 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.2232, allocations: 69.78 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.2232, allocations: 0 / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.2232, allocations: 3.938 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2232, allocations: 3.984 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.2234, allocations: 43.95 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005008/0.2239, allocations: 316.7 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.224, allocations: 54.48 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.087e-05/0.2241, allocations: 32.97 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.2241, allocations: 0 / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.2242, allocations: 83.36 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.2243, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003391/0.2246, allocations: 145.5 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.2246, allocations: 51.41 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.426e-05/0.2247, allocations: 121.8 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.2247, allocations: 29.7 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.811e-05/0.2248, allocations: 96.05 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.2248, allocations: 11.83 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/0.2249, allocations: 29.72 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.991e-05/0.225, allocations: 322.8 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.204e-05/0.225, allocations: 27.98 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.474e-05/0.2251, allocations: 46.55 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.2253, allocations: 74.5 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2253, allocations: 0 / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002027/0.2255, allocations: 113.5 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.2255, allocations: 4 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.2255, allocations: 4.062 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.2255, allocations: 4 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.423e-05/0.2256, allocations: 15.98 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.2256, allocations: 0 / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.284e-05/0.2257, allocations: 11.89 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.2257, allocations: 7.938 kB / 1.057 GB, free: 3.219 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.059e-05/0.2258, allocations: 121.7 kB / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/0.2258, allocations: 7.906 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.034e-05/0.2258, allocations: 12.38 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.2258, allocations: 8 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2258, allocations: 3.984 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2259, allocations: 0 / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003843/0.2262, allocations: 382.4 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2263, allocations: 0 / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.621e-05/0.2263, allocations: 4 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2263, allocations: 0 / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.2263, allocations: 4 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2263, allocations: 7.938 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2263, allocations: 3.984 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002388/0.2266, allocations: 207.3 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.2266, allocations: 85.11 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.2266, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.539e-05/0.2267, allocations: 11.92 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.982e-05/0.2268, allocations: 4 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.2268, allocations: 11.92 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.151e-05/0.2268, allocations: 87.94 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/0.2268, allocations: 0 / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002524/0.2271, allocations: 43.89 kB / 1.058 GB, free: 2.133 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.0006403/0.2277, allocations: 0.804 MB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002005/0.2279, allocations: 71.91 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.228, allocations: 3.938 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.78e-05/0.228, allocations: 48.02 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.2283, allocations: 7.938 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.2296, allocations: 1.488 MB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.2298, allocations: 0.697 MB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.398e-05/0.2299, allocations: 7.984 kB / 1.061 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.754e-05/0.2299, allocations: 22.81 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2299, allocations: 0 / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.994/2.224, allocations: 2.503 MB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003151/2.224, allocations: 279.1 kB / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/4.525, allocations: 4 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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