Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Nicol2001HeatingEU,fileNamePrefix="Buildings_11_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU,fileNamePrefix="Buildings_11_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.00419/0.00419, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001211/0.001211, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.4/1.4, 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 11.1.0-maint.11.x/package.mo): time 2.741/2.741, allocations: 469.8 MB / 0.7425 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.89 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6249/0.6269, allocations: 159.1 MB / 1.22 GB, free: 1.988 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU): time 0.002628/0.6296, allocations: 1.476 MB / 1.222 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001296/0.6309, allocations: 0.7254 MB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.87e-05/0.6309, allocations: 7.938 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.985e-05/0.631, allocations: 3.938 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.212e-05/0.631, allocations: 11.88 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005165/0.6316, allocations: 119.6 kB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00012/0.6317, allocations: 79.75 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.983e-05/0.6318, allocations: 11.95 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.401e-05/0.6319, allocations: 43.86 kB / 1.223 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.2e-05/0.632, allocations: 43.81 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.184e-05/0.632, allocations: 4 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.6322, allocations: 91.91 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.723e-05/0.6322, allocations: 15.98 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.954e-05/0.6323, allocations: 35.8 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.6325, allocations: 143.2 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.6326, allocations: 4 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.162e-06/0.6326, allocations: 0 / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.6326, allocations: 0 / 1.223 GB, free: 15.17 MB / 0.9512 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.0006335/0.6332, allocations: 424.7 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.6333, allocations: 8.031 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.785e-05/0.6333, allocations: 34.75 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.748e-05/0.6333, allocations: 12.89 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.6335, allocations: 172.3 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.6335, allocations: 8.359 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.6335, allocations: 8.312 kB / 1.224 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.6337, allocations: 73.72 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.6337, allocations: 4 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.968e-06/0.6338, allocations: 0 / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.6338, allocations: 4 kB / 1.224 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001394/0.6339, allocations: 35.97 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/0.6345, allocations: 312.7 kB / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.6347, allocations: 54.5 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.1e-05/0.6348, allocations: 32.95 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.6348, allocations: 7.938 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001941/0.635, allocations: 79.44 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.635, allocations: 0 / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004109/0.6354, allocations: 141.6 kB / 1.224 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.6355, allocations: 59.34 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.6356, allocations: 125.7 kB / 1.224 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.6356, allocations: 25.7 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.925e-05/0.6357, allocations: 92.12 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.6357, allocations: 15.91 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.984e-05/0.6358, allocations: 29.7 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.6359, allocations: 326.8 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.255e-05/0.636, allocations: 23.98 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.6361, allocations: 42.56 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.6363, allocations: 82.77 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.6363, allocations: 4 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002635/0.6366, allocations: 113.5 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.6366, allocations: 8 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.6366, allocations: 0 / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.6366, allocations: 0 / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.37e-05/0.6367, allocations: 11.98 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.6367, allocations: 4 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.151e-05/0.6368, allocations: 11.94 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.6368, allocations: 4.062 kB / 1.225 GB, free: 12.57 MB / 0.9512 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.0001003/0.6369, allocations: 129.7 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.637, allocations: 3.953 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.822e-05/0.637, allocations: 16.31 kB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.637, allocations: 0 / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.637, allocations: 0 / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.637, allocations: 0 / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004959/0.6375, allocations: 382.4 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6375, allocations: 0 / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.786e-05/0.6376, allocations: 11.92 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.6376, allocations: 0 / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.6376, allocations: 11.94 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.6376, allocations: 7.938 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.6376, allocations: 0 / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003087/0.6379, allocations: 203.5 kB / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.638, allocations: 85.06 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.638, allocations: 0 / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.94e-05/0.6381, allocations: 11.94 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.6382, allocations: 7.984 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.6382, allocations: 0 / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.806e-05/0.6383, allocations: 91.27 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6383, allocations: 4 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002994/0.6386, allocations: 39.88 kB / 1.226 GB, free: 11.48 MB / 0.9512 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.0008333/0.6394, allocations: 0.8091 MB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002485/0.6397, allocations: 83.88 kB / 1.227 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.6397, allocations: 3.938 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.6398, allocations: 31.98 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.6401, allocations: 15.88 kB / 1.227 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.6418, allocations: 1.496 MB / 1.228 GB, free: 8.938 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.6421, allocations: 0.6885 MB / 1.229 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.79e-05/0.6421, allocations: 4 kB / 1.229 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.6422, allocations: 19.38 kB / 1.229 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.6422, allocations: 4 kB / 1.229 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.6649, allocations: 2.654 MB / 1.232 GB, free: 5.688 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/8.245, allocations: 4.062 kB / 1.232 GB, free: 5.684 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; mkfifo Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe >> ../files/Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.fmu > Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingEU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU.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_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.csv. Warning: Get data of variable hea.occ from file Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.csv failed! Error: Could not read variable hea.on in file Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_res.csv. Warning: Get data of variable hea.on from file Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingEU_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