Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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.Nicol2001HeatingEU,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",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.00213/0.00213, 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.002192/0.002192, allocations: 192.5 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.529/2.529, allocations: 461.9 MB / 0.7347 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 64 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2129, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU): time 0.002104/0.215, allocations: 1.481 MB / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009653/0.216, allocations: 0.7365 MB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.063e-05/0.216, allocations: 0 / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.808e-05/0.2161, allocations: 7.922 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.981e-05/0.2161, allocations: 11.81 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.2166, allocations: 127.5 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.25e-05/0.2167, allocations: 83.77 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.228e-05/0.2167, allocations: 4 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.939e-05/0.2168, allocations: 39.91 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.605e-05/0.2169, allocations: 43.83 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.2169, allocations: 4 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.2171, allocations: 91.84 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.25e-05/0.2171, allocations: 19.92 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.978e-05/0.2171, allocations: 35.86 kB / 1.056 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.2173, allocations: 143.9 kB / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.2173, allocations: 0 / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2173, allocations: 0 / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.2173, allocations: 0 / 1.056 GB, free: 5.441 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.000482/0.2178, allocations: 413 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.2179, allocations: 12.62 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.2179, allocations: 34.75 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.2179, allocations: 8.844 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.38e-05/0.218, allocations: 180.2 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.218, allocations: 384 / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.2181, allocations: 12.31 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.2182, allocations: 69.78 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.2182, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.2182, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.2183, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.2184, allocations: 39.97 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.2189, allocations: 316.8 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.219, allocations: 54.42 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.389e-05/0.2191, allocations: 36.97 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.2191, allocations: 4 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000145/0.2192, allocations: 79.38 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.2193, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003233/0.2196, allocations: 137.5 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.2196, allocations: 55.41 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.27e-05/0.2197, allocations: 121.8 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.2197, allocations: 29.7 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.2198, allocations: 96.05 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.2198, allocations: 15.89 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.2198, allocations: 29.72 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.69e-05/0.2199, allocations: 322.8 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.128e-05/0.22, allocations: 23.98 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.934e-05/0.2201, allocations: 50.55 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.2202, allocations: 78.8 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2202, allocations: 3.938 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002058/0.2204, allocations: 113.5 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.2205, allocations: 4 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.2205, allocations: 4.062 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.2205, allocations: 4 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.2e-05/0.2206, allocations: 11.98 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.2206, allocations: 0 / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.405e-05/0.2206, allocations: 15.89 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.2207, allocations: 4 kB / 1.058 GB, free: 2.852 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 6.989e-05/0.2207, allocations: 128.8 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.2208, allocations: 7.906 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.994e-05/0.2208, allocations: 12.38 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2208, allocations: 4 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2208, allocations: 0 / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2208, allocations: 3.984 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003605/0.2212, allocations: 382.3 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2212, allocations: 4 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.2212, allocations: 8 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2212, allocations: 0 / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.2212, allocations: 4 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.2213, allocations: 7.938 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2213, allocations: 0 / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.2215, allocations: 203.4 kB / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.715e-05/0.2215, allocations: 81.11 kB / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.2216, allocations: 0 / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.914e-05/0.2216, allocations: 19.92 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.636e-05/0.2217, allocations: 0 / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.2217, allocations: 7.984 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.994e-05/0.2217, allocations: 87.94 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2217, allocations: 3.938 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002519/0.222, allocations: 43.89 kB / 1.059 GB, free: 1.766 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.0005906/0.2226, allocations: 0.799 MB / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001959/0.2228, allocations: 79.89 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2228, allocations: 0 / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.582e-05/0.2229, allocations: 47.97 kB / 1.06 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.2231, allocations: 11.94 kB / 1.06 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.2244, allocations: 1.473 MB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.2246, allocations: 0.6883 MB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.387e-05/0.2246, allocations: 15.91 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.67e-05/0.2247, allocations: 19.44 kB / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2247, allocations: 3.938 kB / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.346/2.57, allocations: 2.618 MB / 1.065 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.407/10.98, allocations: 3.625 kB / 1.065 GB, free: 12.01 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.fmu > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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