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.007926/0.007926, allocations: 98.14 kB / 15.73 MB, free: 6.062 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.00166/0.00166, allocations: 194.6 kB / 16.68 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.691/2.691, allocations: 472.7 MB / 0.7453 GB, free: 424 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 63.91 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7334/0.7348, allocations: 159.9 MB / 1.225 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002435/0.7373, allocations: 1.457 MB / 1.227 GB, free: 12 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.7385, allocations: 0.7333 MB / 1.227 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.672e-05/0.7386, allocations: 8 kB / 1.227 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.711e-05/0.7386, allocations: 3.938 kB / 1.227 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.074e-05/0.7387, allocations: 11.86 kB / 1.227 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.7392, allocations: 127.6 kB / 1.227 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000102/0.7393, allocations: 63.84 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.605e-05/0.7394, allocations: 19.94 kB / 1.228 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.446e-05/0.7395, allocations: 47.78 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.221e-05/0.7396, allocations: 31.91 kB / 1.228 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.7396, allocations: 8 kB / 1.228 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.7398, allocations: 95.89 kB / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.549e-05/0.7398, allocations: 19.91 kB / 1.228 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.799e-05/0.7399, allocations: 27.86 kB / 1.228 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.7401, allocations: 147.2 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.7401, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7401, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.7401, allocations: 0 / 1.228 GB, free: 10.66 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.0005872/0.7407, allocations: 428.7 kB / 1.228 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.7408, allocations: 8.031 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.7408, allocations: 38.73 kB / 1.228 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.537e-05/0.7409, allocations: 8.891 kB / 1.228 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.741, allocations: 172.3 kB / 1.229 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.741, allocations: 4.375 kB / 1.229 GB, free: 9.914 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.741, allocations: 8.359 kB / 1.229 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.7412, allocations: 85.69 kB / 1.229 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.7412, allocations: 4 kB / 1.229 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.7413, allocations: 0 / 1.229 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.7413, allocations: 3.984 kB / 1.229 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.7414, allocations: 31.98 kB / 1.229 GB, free: 9.777 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005628/0.742, allocations: 320.7 kB / 1.229 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.7421, allocations: 50.5 kB / 1.229 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.249e-05/0.7422, allocations: 32.97 kB / 1.229 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.7422, allocations: 0 / 1.229 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001753/0.7424, allocations: 75.38 kB / 1.229 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.7424, allocations: 0 / 1.229 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003778/0.7428, allocations: 145.6 kB / 1.229 GB, free: 9.086 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.7428, allocations: 55.41 kB / 1.229 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.757e-05/0.7429, allocations: 125.8 kB / 1.229 GB, free: 8.887 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.743, allocations: 29.7 kB / 1.229 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.171e-05/0.743, allocations: 84.14 kB / 1.23 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.743, allocations: 19.89 kB / 1.23 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.797e-05/0.7431, allocations: 33.64 kB / 1.23 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.799e-05/0.7432, allocations: 318.8 kB / 1.23 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.384e-05/0.7433, allocations: 31.92 kB / 1.23 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.192e-05/0.7434, allocations: 50.98 kB / 1.23 GB, free: 8.297 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.7435, allocations: 74.48 kB / 1.23 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.7436, allocations: 4 kB / 1.23 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000237/0.7438, allocations: 113.5 kB / 1.23 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.7438, allocations: 7.984 kB / 1.23 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.7438, allocations: 0 / 1.23 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.7439, allocations: 4 kB / 1.23 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.855e-05/0.7439, allocations: 8 kB / 1.23 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.744, allocations: 0 / 1.23 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.536e-05/0.744, allocations: 11.92 kB / 1.23 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.7441, allocations: 4.062 kB / 1.23 GB, free: 8.059 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 8.656e-05/0.7441, allocations: 132.8 kB / 1.23 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.7442, allocations: 7.953 kB / 1.23 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.561e-05/0.7442, allocations: 8.359 kB / 1.23 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.7442, allocations: 0 / 1.23 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.7442, allocations: 4 kB / 1.23 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.7442, allocations: 0 / 1.23 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004388/0.7447, allocations: 382.4 kB / 1.231 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.7447, allocations: 0 / 1.231 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.072e-05/0.7447, allocations: 7.938 kB / 1.231 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.7447, allocations: 0 / 1.231 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.7447, allocations: 3.984 kB / 1.231 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.7448, allocations: 3.938 kB / 1.231 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.7448, allocations: 4 kB / 1.231 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.745, allocations: 212 kB / 1.231 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.719e-05/0.7451, allocations: 81.06 kB / 1.231 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.7451, allocations: 11.92 kB / 1.231 GB, free: 7.117 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.774e-05/0.7452, allocations: 3.938 kB / 1.231 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.477e-05/0.7453, allocations: 8 kB / 1.231 GB, free: 7.105 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.7453, allocations: 7.984 kB / 1.231 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.662e-05/0.7453, allocations: 95.42 kB / 1.231 GB, free: 7.004 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7453, allocations: 0 / 1.231 GB, free: 7.004 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002983/0.7456, allocations: 39.88 kB / 1.231 GB, free: 6.965 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.0007307/0.7464, allocations: 0.8123 MB / 1.232 GB, free: 6.141 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.7466, allocations: 75.89 kB / 1.232 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7466, allocations: 0 / 1.232 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.572e-05/0.7467, allocations: 39.97 kB / 1.232 GB, free: 6.027 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.747, allocations: 5.969 kB / 1.232 GB, free: 6.023 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/0.7485, allocations: 1.507 MB / 1.234 GB, free: 4.422 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.7488, allocations: 0.6846 MB / 1.234 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.589e-05/0.7488, allocations: 7.984 kB / 1.234 GB, free: 3.703 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.95e-05/0.7489, allocations: 19.44 kB / 1.234 GB, free: 3.684 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.7489, allocations: 4 kB / 1.234 GB, free: 3.68 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02007/0.769, allocations: 2.667 MB / 1.237 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.22/7.989, allocations: 6.188 kB / 1.237 GB, free: 1.156 MB / 0.9512 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