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.001479/0.001484, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001707/0.001707, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.35/1.35, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.629/2.629, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 69.83 kB / 0.8985 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2692, allocations: 157.4 MB / 1.052 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002748/0.2719, allocations: 1.548 MB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.2732, allocations: 0.7362 MB / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.407e-05/0.2733, allocations: 0 / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.2733, allocations: 7.875 kB / 1.054 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.91e-05/0.2734, allocations: 19.86 kB / 1.054 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.2739, allocations: 99.77 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.965e-05/0.274, allocations: 71.83 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.143e-05/0.2741, allocations: 8 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.499e-05/0.2742, allocations: 31.84 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.463e-05/0.2743, allocations: 39.83 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.2743, allocations: 8 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.2745, allocations: 91.91 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.543e-05/0.2745, allocations: 15.92 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.428e-05/0.2746, allocations: 27.86 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.2748, allocations: 139.8 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2748, allocations: 0 / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.81e-07/0.2748, allocations: 0 / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.2748, allocations: 0 / 1.055 GB, free: 5.418 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.0005814/0.2754, allocations: 417 kB / 1.055 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2755, allocations: 19.97 kB / 1.055 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.688e-05/0.2755, allocations: 30.75 kB / 1.055 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.2756, allocations: 8.844 kB / 1.055 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.2757, allocations: 180.2 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.2757, allocations: 384 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.2757, allocations: 8.375 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.2759, allocations: 69.78 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2759, allocations: 3.938 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.2759, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.276, allocations: 4 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.2761, allocations: 39.97 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005652/0.2767, allocations: 312.7 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.2768, allocations: 54.55 kB / 1.056 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.559e-05/0.2769, allocations: 36.91 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.2769, allocations: 0 / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001928/0.2771, allocations: 83.44 kB / 1.056 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.2771, allocations: 0 / 1.056 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003946/0.2775, allocations: 137.5 kB / 1.056 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.2776, allocations: 55.41 kB / 1.056 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.47e-05/0.2777, allocations: 121.8 kB / 1.056 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.2777, allocations: 29.64 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.2777, allocations: 96.05 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.2778, allocations: 7.844 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-05/0.2778, allocations: 33.7 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.32e-05/0.2779, allocations: 322.8 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.507e-05/0.278, allocations: 31.98 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.943e-05/0.2781, allocations: 46.55 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.2783, allocations: 78.42 kB / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2783, allocations: 0 / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002343/0.2785, allocations: 113.5 kB / 1.057 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2785, allocations: 4 kB / 1.057 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.2786, allocations: 0 / 1.057 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2786, allocations: 4 kB / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.857e-05/0.2787, allocations: 15.98 kB / 1.057 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.2787, allocations: 0 / 1.057 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.899e-05/0.2788, allocations: 7.906 kB / 1.057 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.2788, allocations: 11.92 kB / 1.057 GB, free: 2.824 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 9.649e-05/0.2789, allocations: 123.4 kB / 1.057 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.2789, allocations: 11.84 kB / 1.057 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.2789, allocations: 8.375 kB / 1.057 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2789, allocations: 4 kB / 1.057 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.279, allocations: 0 / 1.057 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.279, allocations: 0 / 1.057 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004351/0.2794, allocations: 382.8 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2794, allocations: 4 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.245e-05/0.2795, allocations: 7.984 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2795, allocations: 0 / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.2795, allocations: 0 / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.2795, allocations: 11.88 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2795, allocations: 0 / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.2798, allocations: 211.5 kB / 1.058 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.2798, allocations: 89.11 kB / 1.058 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.2799, allocations: 0 / 1.058 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.876e-05/0.28, allocations: 11.92 kB / 1.058 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.28, allocations: 0 / 1.058 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.28, allocations: 4 kB / 1.058 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.77e-05/0.2801, allocations: 91.27 kB / 1.058 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2801, allocations: 0 / 1.058 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003009/0.2804, allocations: 43.89 kB / 1.058 GB, free: 1.742 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.0007494/0.2811, allocations: 0.8088 MB / 1.059 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002386/0.2814, allocations: 71.95 kB / 1.059 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2814, allocations: 7.938 kB / 1.059 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.26e-05/0.2815, allocations: 31.98 kB / 1.059 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.2818, allocations: 11.92 kB / 1.059 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.2833, allocations: 1.499 MB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.2835, allocations: 0.6887 MB / 1.061 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.109e-05/0.2836, allocations: 8 kB / 1.061 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.641e-05/0.2836, allocations: 19.42 kB / 1.061 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2836, allocations: 0 / 1.061 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01322/0.2969, allocations: 2.434 MB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.2971, allocations: 271.3 kB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.03, allocations: 0 / 1.064 GB, free: 11.83 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