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.00716/0.00716, allocations: 98.39 kB / 15.73 MB, free: 6.43 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.002067/0.002067, allocations: 191.8 kB / 16.67 MB, free: 6.336 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.93/2.93, allocations: 482.4 MB / 0.7548 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 68.11 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2812, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002689/0.2839, allocations: 1.488 MB / 1.243 GB, free: 8.727 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2853, allocations: 0.7245 MB / 1.244 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.015e-05/0.2853, allocations: 3.938 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.903e-05/0.2854, allocations: 7.938 kB / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.161e-05/0.2854, allocations: 19.8 kB / 1.244 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005206/0.286, allocations: 115.6 kB / 1.244 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.2861, allocations: 79.81 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.214e-05/0.2862, allocations: 7.984 kB / 1.244 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.42e-05/0.2863, allocations: 39.84 kB / 1.244 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.647e-05/0.2864, allocations: 43.83 kB / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.2864, allocations: 8 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.2866, allocations: 91.91 kB / 1.244 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.2866, allocations: 19.92 kB / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.782e-05/0.2867, allocations: 31.86 kB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.2869, allocations: 143.5 kB / 1.244 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.287, allocations: 4 kB / 1.244 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.287, allocations: 0 / 1.244 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.287, allocations: 0 / 1.244 GB, free: 7.391 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.0006572/0.2876, allocations: 432.6 kB / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.2877, allocations: 8.031 kB / 1.245 GB, free: 6.906 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.738e-05/0.2877, allocations: 34.75 kB / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.2878, allocations: 12.88 kB / 1.245 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.2879, allocations: 168.3 kB / 1.245 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.288, allocations: 4.375 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.288, allocations: 8.375 kB / 1.245 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.2882, allocations: 73.66 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.2882, allocations: 0 / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.2882, allocations: 0 / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.2882, allocations: 8 kB / 1.245 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.2884, allocations: 35.97 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006217/0.289, allocations: 316.7 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.2892, allocations: 54.48 kB / 1.245 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.086e-05/0.2893, allocations: 32.97 kB / 1.245 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.2893, allocations: 4 kB / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.2895, allocations: 75.38 kB / 1.245 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.2895, allocations: 0 / 1.245 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004206/0.2899, allocations: 133.6 kB / 1.246 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.29, allocations: 63.34 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.2901, allocations: 121.8 kB / 1.246 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.2901, allocations: 25.7 kB / 1.246 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.947e-05/0.2902, allocations: 92.09 kB / 1.246 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2902, allocations: 23.95 kB / 1.246 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/0.2903, allocations: 25.72 kB / 1.246 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2904, allocations: 322.8 kB / 1.246 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.367e-05/0.2905, allocations: 27.98 kB / 1.246 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.2907, allocations: 50.55 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.2908, allocations: 70.5 kB / 1.246 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2908, allocations: 0 / 1.246 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002768/0.2911, allocations: 117.5 kB / 1.246 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2912, allocations: 8 kB / 1.246 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.2912, allocations: 3.938 kB / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2912, allocations: 0 / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.457e-05/0.2913, allocations: 11.98 kB / 1.246 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.2913, allocations: 4 kB / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.385e-05/0.2914, allocations: 15.92 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.2914, allocations: 0 / 1.246 GB, free: 4.797 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 0.0001114/0.2915, allocations: 129.8 kB / 1.247 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.747e-05/0.2915, allocations: 3.953 kB / 1.247 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.2916, allocations: 12.38 kB / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2916, allocations: 0 / 1.247 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2916, allocations: 3.938 kB / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.2916, allocations: 3.984 kB / 1.247 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005083/0.2921, allocations: 378.8 kB / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2921, allocations: 7.984 kB / 1.247 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.444e-05/0.2922, allocations: 7.938 kB / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2922, allocations: 0 / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.2922, allocations: 8 kB / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.2922, allocations: 3.938 kB / 1.247 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2922, allocations: 0 / 1.247 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000315/0.2925, allocations: 203.6 kB / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.917e-05/0.2926, allocations: 89.06 kB / 1.247 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2926, allocations: 0 / 1.247 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.2927, allocations: 15.92 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.2928, allocations: 4 kB / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.2928, allocations: 3.984 kB / 1.247 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.37e-05/0.2929, allocations: 87.28 kB / 1.247 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2929, allocations: 4 kB / 1.247 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003038/0.2932, allocations: 43.86 kB / 1.247 GB, free: 3.703 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.000872/0.2941, allocations: 0.8187 MB / 1.248 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002566/0.2943, allocations: 75.97 kB / 1.248 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2943, allocations: 0 / 1.248 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.2944, allocations: 31.98 kB / 1.248 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.2947, allocations: 15.92 kB / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.2965, allocations: 1.493 MB / 1.25 GB, free: 1.164 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.2968, allocations: 0.6885 MB / 1.25 GB, free: 460 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.664e-05/0.2969, allocations: 4 kB / 1.25 GB, free: 456 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.166e-05/0.2969, allocations: 23.42 kB / 1.25 GB, free: 432 kB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.2969, allocations: 0 / 1.25 GB, free: 432 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4895/0.7864, allocations: 2.643 MB / 1.253 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.705/8.491, allocations: 13.06 kB / 1.253 GB, free: 14.47 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable hea.occ in file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.occ from file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv failed! Error: Could not read variable hea.on in file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.on from file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv failed! " Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:time,hea.TOut,hea.p,TOut.amplitude,TOut.f,TOut.offset