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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.004765/0.004766, allocations: 99.69 kB / 15.73 MB, free: 6.445 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.001395/0.001395, allocations: 195.5 kB / 16.67 MB, free: 6.352 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.618/2.618, allocations: 482.6 MB / 0.755 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001738, allocations: 67.89 kB / 1.083 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2758, allocations: 162.3 MB / 1.242 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002484/0.2783, allocations: 1.481 MB / 1.243 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2795, allocations: 0.7206 MB / 1.244 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.866e-05/0.2796, allocations: 7.938 kB / 1.244 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.215e-05/0.2796, allocations: 7.922 kB / 1.244 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.776e-05/0.2797, allocations: 11.86 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005052/0.2802, allocations: 131.6 kB / 1.244 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000111/0.2803, allocations: 67.78 kB / 1.244 GB, free: 7.434 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.395e-05/0.2804, allocations: 19.97 kB / 1.244 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.971e-05/0.2805, allocations: 31.91 kB / 1.244 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.329e-05/0.2806, allocations: 39.83 kB / 1.244 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.2806, allocations: 8 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.2808, allocations: 95.84 kB / 1.244 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.81e-05/0.2808, allocations: 27.91 kB / 1.244 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.511e-05/0.2809, allocations: 27.86 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.2811, allocations: 139.5 kB / 1.245 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2811, allocations: 4 kB / 1.245 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2811, allocations: 0 / 1.245 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.2812, allocations: 3.938 kB / 1.245 GB, free: 7.043 MB / 0.9981 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.0006108/0.2818, allocations: 420.7 kB / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.2818, allocations: 8.031 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.2819, allocations: 42.73 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.2819, allocations: 8.891 kB / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.282, allocations: 172.3 kB / 1.245 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.2821, allocations: 8.312 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.2821, allocations: 4.375 kB / 1.245 GB, free: 6.293 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.2823, allocations: 77.77 kB / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.2823, allocations: 3.984 kB / 1.245 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.2823, allocations: 0 / 1.245 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.2823, allocations: 0 / 1.245 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.2824, allocations: 35.98 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005661/0.283, allocations: 324.6 kB / 1.246 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.2831, allocations: 42.56 kB / 1.246 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.138e-05/0.2832, allocations: 36.97 kB / 1.246 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.2833, allocations: 7.984 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.2834, allocations: 71.38 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 3.186e-06/0.2834, allocations: 4 kB / 1.246 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003801/0.2838, allocations: 141.6 kB / 1.246 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.2839, allocations: 59.39 kB / 1.246 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.284, allocations: 117.8 kB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.284, allocations: 33.7 kB / 1.246 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.483e-05/0.2841, allocations: 92.08 kB / 1.246 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.2841, allocations: 15.91 kB / 1.246 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.944e-05/0.2842, allocations: 29.7 kB / 1.246 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2843, allocations: 318.8 kB / 1.247 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-05/0.2844, allocations: 27.97 kB / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.547e-05/0.2845, allocations: 50.56 kB / 1.247 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.2846, allocations: 74.48 kB / 1.247 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2847, allocations: 0 / 1.247 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000245/0.2849, allocations: 121.5 kB / 1.247 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2849, allocations: 8.062 kB / 1.247 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.2849, allocations: 0 / 1.247 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.285, allocations: 4 kB / 1.247 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.738e-05/0.285, allocations: 15.92 kB / 1.247 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2851, allocations: 0 / 1.247 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.992e-05/0.2851, allocations: 7.938 kB / 1.247 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.2851, allocations: 8 kB / 1.247 GB, free: 4.441 MB / 0.9981 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.732e-05/0.2852, allocations: 122.1 kB / 1.247 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.737e-05/0.2853, allocations: 11.95 kB / 1.247 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.2853, allocations: 8.359 kB / 1.247 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2853, allocations: 3.938 kB / 1.247 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2853, allocations: 0 / 1.247 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2853, allocations: 4 kB / 1.247 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004653/0.2858, allocations: 378.8 kB / 1.247 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2858, allocations: 0 / 1.247 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.843e-05/0.2858, allocations: 4 kB / 1.247 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2859, allocations: 4 kB / 1.247 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.2859, allocations: 3.984 kB / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2859, allocations: 3.938 kB / 1.247 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2859, allocations: 0 / 1.247 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.2862, allocations: 219.5 kB / 1.248 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.365e-05/0.2862, allocations: 81.06 kB / 1.248 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.2863, allocations: 7.984 kB / 1.248 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-05/0.2863, allocations: 7.938 kB / 1.248 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.2864, allocations: 11.98 kB / 1.248 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.2864, allocations: 4 kB / 1.248 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.435e-05/0.2865, allocations: 91.27 kB / 1.248 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2865, allocations: 0 / 1.248 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002812/0.2867, allocations: 43.81 kB / 1.248 GB, free: 3.355 MB / 0.9981 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.0007963/0.2875, allocations: 0.8067 MB / 1.249 GB, free: 2.535 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002174/0.2878, allocations: 71.89 kB / 1.249 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2878, allocations: 0 / 1.249 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.2879, allocations: 44.03 kB / 1.249 GB, free: 2.422 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.2881, allocations: 10.56 kB / 1.249 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.2897, allocations: 1.493 MB / 1.25 GB, free: 0.8242 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.29, allocations: 0.6903 MB / 1.251 GB, free: 112 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.448e-05/0.2901, allocations: 7.984 kB / 1.251 GB, free: 104 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.169e-05/0.2901, allocations: 19.44 kB / 1.251 GB, free: 84 kB / 0.9981 GB Notification: Performance of SimCode: time 3.1e-07/0.2901, allocations: 0 / 1.251 GB, free: 84 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.084/2.374, allocations: 2.644 MB / 1.253 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/14.92, allocations: 15.06 kB / 1.253 GB, free: 14.29 MB / 0.9981 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=400 --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