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.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: translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 103.3 kB / 16.35 MB, free: 6.285 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.002132/0.002132, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.522/2.522, allocations: 442.5 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 64.5 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2882, allocations: 153 MB / 1.027 GB, free: 2.086 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002628/0.2909, allocations: 1.493 MB / 1.028 GB, free: 0.5859 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001213/0.2921, allocations: 0.7437 MB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.27e-05/0.2922, allocations: 0 / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.741e-05/0.2922, allocations: 7.938 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.383e-05/0.2923, allocations: 11.86 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000566/0.2928, allocations: 123.6 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.293, allocations: 71.77 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.2931, allocations: 15.98 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.465e-05/0.2932, allocations: 31.92 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.346e-05/0.2933, allocations: 39.83 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.2933, allocations: 8 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.2935, allocations: 91.84 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.264e-05/0.2935, allocations: 27.91 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.095e-05/0.2936, allocations: 35.86 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.2938, allocations: 139.6 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2938, allocations: 0 / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.014e-06/0.2939, allocations: 0 / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.2939, allocations: 0 / 1.029 GB, free: 15.24 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.0006761/0.2945, allocations: 417 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2946, allocations: 8.031 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.2946, allocations: 8.844 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.2948, allocations: 184.2 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.2948, allocations: 12.31 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.2948, allocations: 4.375 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.295, allocations: 65.97 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.295, allocations: 0 / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.2951, allocations: 4 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.2951, allocations: 4 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.2952, allocations: 39.95 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006155/0.2958, allocations: 308.8 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.296, allocations: 58.48 kB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.535e-05/0.2961, allocations: 36.91 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.2961, allocations: 8.062 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.2963, allocations: 75.38 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.2963, allocations: 0 / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003885/0.2967, allocations: 141.5 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.2967, allocations: 51.41 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.703e-05/0.2968, allocations: 125.8 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.2968, allocations: 29.7 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.074e-05/0.2969, allocations: 96.05 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.2969, allocations: 19.83 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.297, allocations: 25.7 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.227e-05/0.2971, allocations: 322.8 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.027e-05/0.2971, allocations: 27.98 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.105e-05/0.2972, allocations: 46.55 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.2974, allocations: 74.5 kB / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2974, allocations: 3.938 kB / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002274/0.2976, allocations: 113.5 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.2977, allocations: 8 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.2977, allocations: 4.062 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.2977, allocations: 0 / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.156e-05/0.2978, allocations: 11.98 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.2978, allocations: 4 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.583e-05/0.2979, allocations: 7.906 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.2979, allocations: 3.984 kB / 1.032 GB, free: 12.69 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 8.286e-05/0.298, allocations: 129.1 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.298, allocations: 7.906 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.298, allocations: 12.38 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.298, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2981, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2981, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004397/0.2985, allocations: 390.7 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2985, allocations: 0 / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.139e-05/0.2986, allocations: 7.984 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.2986, allocations: 0 / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.2986, allocations: 4 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2986, allocations: 4 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/0.2986, allocations: 3.938 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.2989, allocations: 211.5 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.2989, allocations: 81.11 kB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.299, allocations: 0 / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.167e-05/0.2991, allocations: 7.984 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.2991, allocations: 11.94 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.2991, allocations: 3.938 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.141e-05/0.2992, allocations: 99.2 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.693e-06/0.2992, allocations: 0 / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000292/0.2995, allocations: 51.83 kB / 1.033 GB, free: 11.59 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.0003283/0.2998, allocations: 157.2 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.3001, allocations: 67.91 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3001, allocations: 0 / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.3002, allocations: 39.95 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.3004, allocations: 10.5 kB / 1.033 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000356/0.3008, allocations: 181.1 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.301, allocations: 0.6846 MB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.156e-05/0.3011, allocations: 7.984 kB / 1.034 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.446e-05/0.3011, allocations: 11.44 kB / 1.034 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3011, allocations: 0 / 1.034 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of Templates: time 0.003877/0.305, allocations: 1.459 MB / 1.035 GB, free: 8.945 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (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 & ./Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.samplePeriod,hea.seed,hea.t0,occ.startTime,occ.startValue,time