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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008281/0.0008284, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005161/0.005161, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.431/1.431, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.723/2.723, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 5.781 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2848, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.001977/0.2868, allocations: 1.202 MB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.2881, allocations: 0.7207 MB / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.361e-05/0.2882, allocations: 0 / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.739e-05/0.2882, allocations: 7.938 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.138e-05/0.2883, allocations: 15.86 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005085/0.2888, allocations: 103.8 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.2889, allocations: 71.83 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.453e-05/0.289, allocations: 4 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.205e-05/0.2891, allocations: 31.91 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.868e-05/0.2892, allocations: 39.83 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.2892, allocations: 4 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.2894, allocations: 95.84 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.254e-05/0.2894, allocations: 11.92 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.202e-05/0.2895, allocations: 49.56 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002204/0.2897, allocations: 143.9 kB / 1.061 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2897, allocations: 0 / 1.061 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.484e-06/0.2897, allocations: 0 / 1.061 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.064e-06/0.2898, allocations: 0 / 1.061 GB, free: 2.359 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.0005794/0.2903, allocations: 413 kB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.2904, allocations: 15.97 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.353e-05/0.2904, allocations: 34.75 kB / 1.062 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.2905, allocations: 4.938 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.2906, allocations: 176.2 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.2906, allocations: 384 / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.2907, allocations: 4.375 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.2908, allocations: 81.78 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.2909, allocations: 0 / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.2909, allocations: 0 / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2909, allocations: 3.984 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.291, allocations: 47.91 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005872/0.2916, allocations: 324.6 kB / 1.062 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.2918, allocations: 46.56 kB / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.702e-05/0.2919, allocations: 40.95 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.2919, allocations: 8.062 kB / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.2921, allocations: 83.31 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.2921, allocations: 0 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000407/0.2925, allocations: 145.8 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.2926, allocations: 51.41 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.02e-05/0.2927, allocations: 125.8 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2927, allocations: 29.7 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.435e-05/0.2928, allocations: 84.14 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.2928, allocations: 27.67 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.2928, allocations: 21.7 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.2929, allocations: 322.8 kB / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.949e-05/0.293, allocations: 31.97 kB / 1.063 GB, free: 48 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.2931, allocations: 50.5 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.2933, allocations: 86.61 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2933, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002482/0.2936, allocations: 113.5 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2936, allocations: 8 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2936, allocations: 4.062 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.2936, allocations: 0 / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.293e-05/0.2937, allocations: 19.92 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2937, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.664e-05/0.2938, allocations: 8 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.2938, allocations: 4 kB / 1.064 GB, free: 15.73 MB / 0.8262 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 9.129e-05/0.2939, allocations: 121.7 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.294, allocations: 15.89 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.534e-05/0.294, allocations: 8.375 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.294, allocations: 4 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.294, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.294, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004501/0.2945, allocations: 386.3 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2945, allocations: 8 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.19e-05/0.2945, allocations: 8 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2945, allocations: 0 / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.2946, allocations: 3.984 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.2946, allocations: 3.938 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2946, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.2949, allocations: 215.4 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-05/0.2949, allocations: 89.02 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.2949, allocations: 7.984 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.006e-05/0.295, allocations: 7.938 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.2951, allocations: 7.984 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.2951, allocations: 0 / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.987e-05/0.2951, allocations: 95.92 kB / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2952, allocations: 0 / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002929/0.2955, allocations: 40 kB / 1.064 GB, free: 14.63 MB / 0.8262 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.0007593/0.2962, allocations: 0.8175 MB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.2965, allocations: 75.95 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.2965, allocations: 0 / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.2967, allocations: 47.98 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.2969, allocations: 7.938 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.2984, allocations: 1.525 MB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.2987, allocations: 0.6926 MB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.488e-05/0.2987, allocations: 4 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.321e-05/0.2987, allocations: 19.42 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.2988, allocations: 0 / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01456/0.3133, allocations: 2.33 MB / 1.07 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002527/0.3136, allocations: 276.2 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.194, allocations: 0 / 1.07 GB, free: 8.801 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