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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001713/0.001713, allocations: 108 kB / 15.61 MB, free: 152 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.002296/0.002296, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.967/2.967, allocations: 469.4 MB / 0.742 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 63.47 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3009, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00278/0.3037, allocations: 1.493 MB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.3049, allocations: 0.73 MB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.789e-05/0.305, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.587e-05/0.3051, allocations: 7.922 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.74e-05/0.3051, allocations: 15.86 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000608/0.3058, allocations: 119.6 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.3059, allocations: 75.78 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.42e-05/0.306, allocations: 7.984 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.077e-05/0.3061, allocations: 43.91 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.236e-05/0.3061, allocations: 35.84 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.3062, allocations: 4 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.3064, allocations: 99.84 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.782e-05/0.3064, allocations: 23.89 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.721e-05/0.3065, allocations: 35.86 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.3067, allocations: 135.9 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3067, allocations: 0 / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3067, allocations: 0 / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.3067, allocations: 0 / 1.066 GB, free: 11.67 MB / 0.8262 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.0005811/0.3073, allocations: 416.9 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.3073, allocations: 12.03 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.684e-05/0.3074, allocations: 42.73 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.959e-05/0.3074, allocations: 8.844 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.3076, allocations: 176.2 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.3076, allocations: 384 / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.3076, allocations: 8.375 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.3078, allocations: 73.77 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.3078, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.3078, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.3078, allocations: 7.938 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.308, allocations: 39.97 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005683/0.3086, allocations: 316.7 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.3087, allocations: 46.56 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.098e-05/0.3088, allocations: 40.97 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.3088, allocations: 0 / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.309, allocations: 75.38 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.309, allocations: 0 / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003764/0.3094, allocations: 145.5 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.3094, allocations: 55.41 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.033e-05/0.3095, allocations: 121.8 kB / 1.068 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.3096, allocations: 25.7 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.809e-05/0.3096, allocations: 96.05 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.3096, allocations: 19.73 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.3097, allocations: 29.7 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.582e-05/0.3098, allocations: 318.8 kB / 1.068 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.145e-05/0.3099, allocations: 27.98 kB / 1.068 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.853e-05/0.31, allocations: 50.55 kB / 1.068 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.3101, allocations: 74.48 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3101, allocations: 4 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000227/0.3104, allocations: 109.6 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.3104, allocations: 4 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3104, allocations: 7.984 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.3104, allocations: 0 / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.894e-05/0.3105, allocations: 15.94 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3105, allocations: 4.328 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.841e-05/0.3106, allocations: 11.89 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.3106, allocations: 4 kB / 1.069 GB, free: 9.074 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 8.488e-05/0.3107, allocations: 122.4 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.839e-05/0.3107, allocations: 7.906 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.637e-05/0.3108, allocations: 12.36 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3108, allocations: 4 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3108, allocations: 3.938 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3108, allocations: 0 / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004392/0.3112, allocations: 386.3 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3113, allocations: 4 kB / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.3113, allocations: 7.984 kB / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3113, allocations: 0 / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.3113, allocations: 0 / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.3113, allocations: 11.92 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3113, allocations: 0 / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.3116, allocations: 207.3 kB / 1.069 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-05/0.3117, allocations: 89.02 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.3117, allocations: 4 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.208e-05/0.3118, allocations: 11.92 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.3118, allocations: 0 / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.3119, allocations: 7.984 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.358e-05/0.3119, allocations: 91.27 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3119, allocations: 0 / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002905/0.3122, allocations: 36 kB / 1.07 GB, free: 7.988 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.0007141/0.3129, allocations: 0.8068 MB / 1.07 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002221/0.3132, allocations: 75.97 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3132, allocations: 0 / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.527e-05/0.3133, allocations: 43.89 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.3135, allocations: 10.38 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.315, allocations: 1.482 MB / 1.072 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.3152, allocations: 0.6883 MB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.999e-05/0.3153, allocations: 11.98 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.402e-05/0.3153, allocations: 19.44 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3153, allocations: 0 / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.3345, allocations: 2.62 MB / 1.075 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.109/7.444, allocations: 8.234 kB / 1.075 GB, free: 2.23 MB / 0.8262 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 50 --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