Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_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.007024/0.007024, allocations: 100.6 kB / 15.73 MB, free: 6.059 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.001655/0.001655, allocations: 191.1 kB / 16.67 MB, free: 5.969 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.256/2.256, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 59.89 kB / 0.9504 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.693/0.6944, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002304/0.6967, allocations: 1.485 MB / 1.089 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.6979, allocations: 0.7286 MB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.834e-05/0.698, allocations: 3.938 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.698, allocations: 8.641 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.844e-05/0.6981, allocations: 11.89 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.6986, allocations: 120.7 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.6987, allocations: 73.33 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.399e-05/0.6988, allocations: 19.42 kB / 1.09 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.076e-05/0.6989, allocations: 35.73 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.162e-05/0.6989, allocations: 40.92 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.6989, allocations: 7.156 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.6991, allocations: 93.88 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.472e-05/0.6992, allocations: 23.91 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.257e-05/0.6992, allocations: 27.11 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.6995, allocations: 138.8 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.6995, allocations: 0 / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6995, allocations: 0 / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.6995, allocations: 1.094 kB / 1.09 GB, free: 3.496 MB / 0.8575 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.0004983/0.7, allocations: 429.6 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.7, allocations: 9.625 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.834e-05/0.7001, allocations: 34 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.7001, allocations: 8.922 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.226e-05/0.7002, allocations: 172.9 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.7002, allocations: 11.2 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.7002, allocations: 5.062 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.7004, allocations: 73.22 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.7004, allocations: 0 / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.7005, allocations: 9.031 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.7005, allocations: 1.219 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.7006, allocations: 35.84 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.7012, allocations: 314.2 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.7013, allocations: 57.09 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.384e-05/0.7014, allocations: 31.84 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.7014, allocations: 1.797 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001838/0.7016, allocations: 77.64 kB / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.7016, allocations: 0 / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003918/0.702, allocations: 145.5 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.7021, allocations: 54.2 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.9e-05/0.7021, allocations: 122.7 kB / 1.092 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.7022, allocations: 30.61 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.908e-05/0.7022, allocations: 89.12 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.7022, allocations: 15.98 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.527e-05/0.7023, allocations: 28.89 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.946e-05/0.7023, allocations: 327.1 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.647e-05/0.7024, allocations: 31.75 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.798e-05/0.7025, allocations: 46.06 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.7027, allocations: 72.48 kB / 1.092 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.7027, allocations: 0.8438 kB / 1.092 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002319/0.7029, allocations: 120.7 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.7029, allocations: 5.438 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.7029, allocations: 1.859 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.703, allocations: 0.75 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.36e-05/0.7031, allocations: 11.02 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.7031, allocations: 2.5 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.776e-05/0.7031, allocations: 16.41 kB / 1.092 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.7032, allocations: 3.688 kB / 1.092 GB, free: 1.453 MB / 0.8575 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 6.362e-05/0.7032, allocations: 127.6 kB / 1.093 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.7033, allocations: 12.47 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.377e-05/0.7033, allocations: 5.828 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.7033, allocations: 1.719 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7033, allocations: 0.7969 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.7033, allocations: 4.797 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.7038, allocations: 387.1 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.7038, allocations: 0 / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.563e-05/0.7038, allocations: 5.109 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.7039, allocations: 0.7812 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.7039, allocations: 2.109 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.7039, allocations: 4.781 kB / 1.093 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7039, allocations: 0.5156 kB / 1.093 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.7042, allocations: 216.3 kB / 1.093 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.119e-05/0.7042, allocations: 83.86 kB / 1.093 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.7042, allocations: 1.359 kB / 1.093 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.39e-05/0.7043, allocations: 8.422 kB / 1.093 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.736e-05/0.7044, allocations: 4.578 kB / 1.093 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.7044, allocations: 4.203 kB / 1.093 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.733e-05/0.7044, allocations: 100.1 kB / 1.093 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7044, allocations: 0 / 1.093 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003168/0.7047, allocations: 42.09 kB / 1.093 GB, free: 0.5938 MB / 0.8575 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.0006934/0.7054, allocations: 0.8069 MB / 1.094 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.7057, allocations: 79.31 kB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.7057, allocations: 0.75 kB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.7058, allocations: 33.86 kB / 1.094 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.7061, allocations: 9.906 kB / 1.094 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.7079, allocations: 1.487 MB / 1.096 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.7082, allocations: 0.6863 MB / 1.096 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.789e-05/0.7082, allocations: 8.484 kB / 1.096 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.496e-05/0.7083, allocations: 21.06 kB / 1.096 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/0.7083, allocations: 4.75 kB / 1.096 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.7279, allocations: 2.657 MB / 1.099 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.266/7.994, allocations: 5.172 kB / 1.099 GB, free: 13.34 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.occ from file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv failed! Error: Could not read variable hea.on in file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.on from file Buildings_9_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