Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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.Nicol2001HeatingEU,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",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.006493/0.006493, allocations: 104.2 kB / 15.73 MB, free: 5.953 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.001742/0.001742, allocations: 192.1 kB / 16.67 MB, free: 5.871 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.569/2.569, allocations: 482.6 MB / 0.755 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 67.62 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2793, allocations: 162.3 MB / 1.242 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU): time 0.003572/0.2829, allocations: 1.484 MB / 1.243 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00178/0.2847, allocations: 0.7221 MB / 1.244 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.456e-05/0.2848, allocations: 0 / 1.244 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.064e-05/0.2848, allocations: 7.938 kB / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.848e-05/0.2849, allocations: 11.88 kB / 1.244 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.2856, allocations: 119.6 kB / 1.244 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.2858, allocations: 83.7 kB / 1.244 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.912e-05/0.2859, allocations: 19.97 kB / 1.244 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.286, allocations: 31.91 kB / 1.244 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.027e-05/0.2861, allocations: 43.83 kB / 1.244 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.2862, allocations: 8 kB / 1.244 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002667/0.2864, allocations: 99.78 kB / 1.244 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.638e-05/0.2865, allocations: 15.98 kB / 1.244 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.962e-05/0.2866, allocations: 27.86 kB / 1.244 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.2869, allocations: 143.8 kB / 1.245 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2869, allocations: 0 / 1.245 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2869, allocations: 3.938 kB / 1.245 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.2869, allocations: 0 / 1.245 GB, free: 6.133 MB / 0.9669 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.000771/0.2877, allocations: 432.7 kB / 1.245 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2877, allocations: 8.031 kB / 1.245 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.836e-05/0.2878, allocations: 34.75 kB / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.133e-05/0.2879, allocations: 4.891 kB / 1.245 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.288, allocations: 180.2 kB / 1.245 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.2881, allocations: 8.375 kB / 1.245 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.2881, allocations: 4.375 kB / 1.245 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.2884, allocations: 69.78 kB / 1.245 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.2884, allocations: 0 / 1.245 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.2884, allocations: 8 kB / 1.245 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2884, allocations: 0 / 1.245 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.2886, allocations: 39.91 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007735/0.2894, allocations: 308.8 kB / 1.246 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.2896, allocations: 58.55 kB / 1.246 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.2898, allocations: 32.97 kB / 1.246 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.2898, allocations: 0 / 1.246 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.29, allocations: 79.38 kB / 1.246 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.884e-06/0.2901, allocations: 0 / 1.246 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0005638/0.2906, allocations: 141.6 kB / 1.246 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.2907, allocations: 55.41 kB / 1.246 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.2908, allocations: 117.8 kB / 1.246 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.2909, allocations: 37.64 kB / 1.246 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.983e-05/0.291, allocations: 88.09 kB / 1.246 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.291, allocations: 19.84 kB / 1.246 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.712e-05/0.2911, allocations: 25.7 kB / 1.246 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001793/0.2913, allocations: 330.7 kB / 1.247 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.2914, allocations: 31.98 kB / 1.247 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.2916, allocations: 50.55 kB / 1.247 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.2918, allocations: 62.56 kB / 1.247 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2919, allocations: 4 kB / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000379/0.2922, allocations: 117.8 kB / 1.247 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.2923, allocations: 8 kB / 1.247 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2923, allocations: 3.938 kB / 1.247 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.2923, allocations: 0 / 1.247 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.2925, allocations: 15.92 kB / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2925, allocations: 4.078 kB / 1.247 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.341e-05/0.2926, allocations: 4 kB / 1.247 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.2926, allocations: 11.97 kB / 1.247 GB, free: 3.527 MB / 0.9669 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 0.0001311/0.2928, allocations: 126.4 kB / 1.247 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.2928, allocations: 7.953 kB / 1.247 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.612e-05/0.2928, allocations: 4.375 kB / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2928, allocations: 0 / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2928, allocations: 0 / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2929, allocations: 3.938 kB / 1.247 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006766/0.2935, allocations: 382.5 kB / 1.247 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2936, allocations: 4 kB / 1.247 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-05/0.2936, allocations: 7.984 kB / 1.247 GB, free: 2.938 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.2936, allocations: 0 / 1.247 GB, free: 2.938 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.2937, allocations: 3.938 kB / 1.247 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.85e-06/0.2937, allocations: 3.938 kB / 1.247 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2937, allocations: 0 / 1.247 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004324/0.2941, allocations: 215.4 kB / 1.248 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.498e-05/0.2942, allocations: 92.98 kB / 1.248 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.2942, allocations: 0 / 1.248 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.2944, allocations: 11.92 kB / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/0.2945, allocations: 4 kB / 1.248 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.2945, allocations: 4 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.615e-05/0.2946, allocations: 95.27 kB / 1.248 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.81e-07/0.2946, allocations: 0 / 1.248 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004754/0.2951, allocations: 39.92 kB / 1.248 GB, free: 2.441 MB / 0.9669 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.0011/0.2962, allocations: 0.8027 MB / 1.249 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003362/0.2965, allocations: 79.88 kB / 1.249 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2965, allocations: 0 / 1.249 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.2967, allocations: 31.98 kB / 1.249 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.2971, allocations: 11.92 kB / 1.249 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.2995, allocations: 1.495 MB / 1.25 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.2999, allocations: 0.6885 MB / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.732e-05/0.2999, allocations: 4 kB / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.692e-05/0.3, allocations: 23.42 kB / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.3, allocations: 0 / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1157/0.4158, allocations: 2.651 MB / 1.253 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/14.73, allocations: 10.69 kB / 1.253 GB, free: 12.66 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.fmu > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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