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: translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 99.03 kB / 16.02 MB, free: 76 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.001481/0.001481, allocations: 184.6 kB / 16.92 MB, free: 6.895 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.345/1.345, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.646/2.646, allocations: 462.7 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003324, allocations: 11.56 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2888, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.001665/0.2905, allocations: 1.202 MB / 1.06 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.2918, allocations: 0.7168 MB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.755e-05/0.2918, allocations: 4 kB / 1.061 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.723e-05/0.2918, allocations: 7.875 kB / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.57e-05/0.2919, allocations: 7.938 kB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004592/0.2924, allocations: 103.8 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.2925, allocations: 75.77 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.514e-05/0.2926, allocations: 7.984 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.56e-05/0.2927, allocations: 27.92 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.982e-05/0.2927, allocations: 43.81 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.2928, allocations: 8 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.2929, allocations: 91.84 kB / 1.062 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.317e-05/0.293, allocations: 15.92 kB / 1.062 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.721e-05/0.293, allocations: 49.56 kB / 1.062 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.2932, allocations: 100 kB / 1.062 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2932, allocations: 0 / 1.062 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2932, allocations: 4 kB / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.2933, allocations: 0 / 1.062 GB, free: 2.488 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.0005751/0.2938, allocations: 405.1 kB / 1.062 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2939, allocations: 11.97 kB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.186e-05/0.2939, allocations: 8.844 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.294, allocations: 176.2 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.2941, allocations: 8.375 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.2941, allocations: 384 / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.2943, allocations: 77.91 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.2943, allocations: 7.922 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.2943, allocations: 11.98 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2943, allocations: 0 / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.2945, allocations: 39.98 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005779/0.2951, allocations: 324.7 kB / 1.063 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.2952, allocations: 54.5 kB / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.44e-05/0.2953, allocations: 36.97 kB / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.2953, allocations: 0 / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001832/0.2955, allocations: 79.38 kB / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.2955, allocations: 0 / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004004/0.2959, allocations: 149.6 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.296, allocations: 59.39 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.554e-05/0.2961, allocations: 121.8 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.2961, allocations: 33.7 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.2962, allocations: 88.12 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.2962, allocations: 19.75 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.2962, allocations: 17.72 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.2964, allocations: 318.8 kB / 1.064 GB, free: 264 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.598e-05/0.2965, allocations: 35.98 kB / 1.064 GB, free: 228 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.598e-05/0.2966, allocations: 50.98 kB / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.2967, allocations: 82.44 kB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2968, allocations: 0 / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000251/0.297, allocations: 117.5 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.297, allocations: 8 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.297, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.2971, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.995e-05/0.2972, allocations: 20.05 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.2972, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.502e-05/0.2973, allocations: 4 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.2973, allocations: 11.98 kB / 1.064 GB, free: 15.91 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.141e-05/0.2974, allocations: 121.7 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.603e-05/0.2974, allocations: 7.906 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.2974, allocations: 8.375 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2974, allocations: 4 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2974, allocations: 0 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2974, allocations: 3.984 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.2979, allocations: 386.8 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.2979, allocations: 4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.859e-05/0.2979, allocations: 11.92 kB / 1.065 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.298, allocations: 4 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.298, allocations: 0 / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.298, allocations: 80 / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.298, allocations: 11.86 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002855/0.2983, allocations: 219.4 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.042e-05/0.2983, allocations: 89.02 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.2984, allocations: 0 / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.02e-05/0.2985, allocations: 7.984 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.2985, allocations: 7.938 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.2985, allocations: 4 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.679e-05/0.2986, allocations: 99.42 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2986, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002957/0.2989, allocations: 43.92 kB / 1.065 GB, free: 14.8 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.0003269/0.2992, allocations: 157.8 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002332/0.2995, allocations: 75.95 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2995, allocations: 128 / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.2996, allocations: 39.92 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.2998, allocations: 8 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004/0.3002, allocations: 240.8 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.3005, allocations: 0.6926 MB / 1.066 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.3005, allocations: 7.438 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of SimCode: time 1.573e-06/0.3005, allocations: 0 / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of Templates: time 0.003136/0.3037, allocations: 1.603 MB / 1.068 GB, free: 11.93 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (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 & ./Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches