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 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.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",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.004578/0.004577, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001361/0.001361, allocations: 198.6 kB / 16.68 MB, free: 5.973 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.274/1.274, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.589/2.589, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 63.91 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2827, allocations: 162.3 MB / 1.242 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002394/0.2851, allocations: 1.48 MB / 1.243 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.2863, allocations: 0.7323 MB / 1.244 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.248e-05/0.2863, allocations: 0 / 1.244 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.391e-05/0.2864, allocations: 3.938 kB / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.066e-05/0.2864, allocations: 11.86 kB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000466/0.2869, allocations: 123.6 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.287, allocations: 79.77 kB / 1.244 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.614e-05/0.2871, allocations: 11.98 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.904e-05/0.2872, allocations: 43.83 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.351e-05/0.2873, allocations: 31.91 kB / 1.244 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.2873, allocations: 8 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.2875, allocations: 99.84 kB / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.46e-05/0.2875, allocations: 15.91 kB / 1.244 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.517e-05/0.2876, allocations: 31.86 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.2878, allocations: 139.5 kB / 1.245 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2878, allocations: 0 / 1.245 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2878, allocations: 3.938 kB / 1.245 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.2878, allocations: 4 kB / 1.245 GB, free: 7 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.0005947/0.2884, allocations: 424.7 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.2884, allocations: 15.97 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.2885, allocations: 34.75 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.2885, allocations: 12.88 kB / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.2887, allocations: 176.3 kB / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.2887, allocations: 384 / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.2887, allocations: 8.375 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.2889, allocations: 77.77 kB / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.2889, allocations: 0 / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.2889, allocations: 0 / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.2889, allocations: 0 / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001265/0.289, allocations: 39.97 kB / 1.245 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005505/0.2896, allocations: 320.7 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.2897, allocations: 42.56 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.264e-05/0.2898, allocations: 36.95 kB / 1.246 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.2898, allocations: 4 kB / 1.246 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.29, allocations: 75.38 kB / 1.246 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.29, allocations: 4 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003796/0.2904, allocations: 141.6 kB / 1.246 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.2905, allocations: 55.41 kB / 1.246 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.2906, allocations: 125.8 kB / 1.246 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.2906, allocations: 25.7 kB / 1.246 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.2906, allocations: 96.09 kB / 1.246 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.59e-05/0.2907, allocations: 7.906 kB / 1.246 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.624e-05/0.2907, allocations: 33.7 kB / 1.246 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2909, allocations: 326.8 kB / 1.247 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.717e-05/0.291, allocations: 23.98 kB / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.2911, allocations: 54.48 kB / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.2912, allocations: 74.5 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2912, allocations: 0 / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002299/0.2915, allocations: 117.5 kB / 1.247 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.2915, allocations: 4 kB / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2915, allocations: 0 / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.2915, allocations: 4 kB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.947e-05/0.2916, allocations: 19.92 kB / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.2916, allocations: 0 / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.933e-05/0.2917, allocations: 12 kB / 1.247 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.2917, allocations: 7.984 kB / 1.247 GB, free: 4.391 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.366e-05/0.2918, allocations: 118.3 kB / 1.247 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.2918, allocations: 7.953 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.978e-05/0.2918, allocations: 12.31 kB / 1.247 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2919, allocations: 4 kB / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2919, allocations: 0 / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.2919, allocations: 0 / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004506/0.2923, allocations: 382.8 kB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2923, allocations: 0 / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.83e-05/0.2924, allocations: 7.984 kB / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.2924, allocations: 0 / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.2924, allocations: 0 / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2924, allocations: 3.938 kB / 1.247 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2924, allocations: 4 kB / 1.247 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.2927, allocations: 219.4 kB / 1.248 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.587e-05/0.2928, allocations: 85.06 kB / 1.248 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.2928, allocations: 4 kB / 1.248 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.342e-05/0.2929, allocations: 7.938 kB / 1.248 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.2929, allocations: 3.984 kB / 1.248 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.2929, allocations: 7.938 kB / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.4e-05/0.293, allocations: 91.27 kB / 1.248 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.293, allocations: 4 kB / 1.248 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002605/0.2933, allocations: 43.86 kB / 1.248 GB, free: 3.305 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.05794/0.3512, allocations: 0.808 MB / 1.249 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00027/0.3515, allocations: 71.89 kB / 1.249 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3515, allocations: 0 / 1.249 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.3516, allocations: 39.91 kB / 1.249 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.3519, allocations: 19.86 kB / 1.249 GB, free: 2.359 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.3535, allocations: 1.489 MB / 1.25 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.3538, allocations: 0.6923 MB / 1.251 GB, free: 56 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.355e-05/0.3539, allocations: 8 kB / 1.251 GB, free: 48 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.986e-05/0.3539, allocations: 19.42 kB / 1.251 GB, free: 28 kB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.3539, allocations: 0 / 1.251 GB, free: 28 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.252/1.606, allocations: 2.647 MB / 1.253 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/15.17, allocations: 10.23 kB / 1.253 GB, free: 14.24 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > 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,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