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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.008345/0.008344, allocations: 103.1 kB / 15.74 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.002102/0.002102, allocations: 189 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.656/2.656, allocations: 469.4 MB / 0.7422 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.89 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7352/0.7365, allocations: 159.1 MB / 1.22 GB, free: 2.258 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002529/0.739, allocations: 1.476 MB / 1.221 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.7404, allocations: 0.7293 MB / 1.222 GB, free: 36 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.37e-05/0.7404, allocations: 7.875 kB / 1.222 GB, free: 28 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.92e-05/0.7405, allocations: 3.938 kB / 1.222 GB, free: 24 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.078e-05/0.7405, allocations: 11.86 kB / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000649/0.7412, allocations: 127.6 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000128/0.7413, allocations: 75.83 kB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.564e-05/0.7414, allocations: 11.94 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.203e-05/0.7415, allocations: 39.86 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.351e-05/0.7416, allocations: 39.83 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.7416, allocations: 8 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.7418, allocations: 87.91 kB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.687e-05/0.7419, allocations: 23.84 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.519e-05/0.7419, allocations: 35.86 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.7422, allocations: 147.2 kB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7422, allocations: 0 / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7422, allocations: 0 / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.7422, allocations: 0 / 1.222 GB, free: 15.43 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.0006044/0.7428, allocations: 420.7 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.7429, allocations: 12.62 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.414e-05/0.7429, allocations: 38.73 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.832e-05/0.7429, allocations: 12.89 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.7431, allocations: 168.3 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.7431, allocations: 4.312 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.7431, allocations: 12.38 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.7433, allocations: 73.72 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.7433, allocations: 0 / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.7433, allocations: 0 / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.7433, allocations: 0 / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.7435, allocations: 39.97 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005911/0.7441, allocations: 320.7 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.7442, allocations: 50.48 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.183e-05/0.7443, allocations: 32.97 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.7443, allocations: 4.062 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.7445, allocations: 83.38 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.7446, allocations: 0 / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004028/0.745, allocations: 129.6 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.745, allocations: 63.34 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.7451, allocations: 125.8 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.7452, allocations: 29.7 kB / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.387e-05/0.7452, allocations: 92.14 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.186e-05/0.7453, allocations: 15.88 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.294e-05/0.7453, allocations: 29.7 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.7454, allocations: 322.8 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.703e-05/0.7455, allocations: 23.98 kB / 1.224 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.7457, allocations: 50.55 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.7458, allocations: 78.48 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.7458, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002481/0.7461, allocations: 109.5 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.7461, allocations: 4 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.7461, allocations: 8.047 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.7462, allocations: 4 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.8e-05/0.7463, allocations: 8 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.7463, allocations: 3.938 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.271e-05/0.7464, allocations: 15.92 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.7464, allocations: 4 kB / 1.225 GB, free: 12.83 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 9.462e-05/0.7465, allocations: 125 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.98e-05/0.7465, allocations: 7.953 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.893e-05/0.7465, allocations: 16.36 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.7465, allocations: 4 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.7466, allocations: 0 / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.7466, allocations: 0 / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004675/0.747, allocations: 378.4 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.747, allocations: 0 / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.557e-05/0.7471, allocations: 11.94 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.7471, allocations: 0 / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.7471, allocations: 4 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.7471, allocations: 7.922 kB / 1.225 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7471, allocations: 4 kB / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.7474, allocations: 200 kB / 1.225 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.7475, allocations: 85.06 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.7475, allocations: 4 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.639e-05/0.7476, allocations: 15.92 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.7476, allocations: 4 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.7477, allocations: 7.984 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.718e-05/0.7477, allocations: 91.27 kB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7477, allocations: 0 / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002991/0.748, allocations: 43.81 kB / 1.226 GB, free: 11.74 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.0007519/0.7488, allocations: 0.8161 MB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002272/0.749, allocations: 71.91 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.749, allocations: 0 / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.645e-05/0.7491, allocations: 40.09 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.7494, allocations: 11.94 kB / 1.227 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.751, allocations: 1.493 MB / 1.228 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.7513, allocations: 0.6945 MB / 1.229 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.881e-05/0.7513, allocations: 4 kB / 1.229 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.453e-05/0.7514, allocations: 19.42 kB / 1.229 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of SimCode: time 3.4e-07/0.7514, allocations: 0 / 1.229 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.769, allocations: 2.656 MB / 1.231 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.216/7.985, allocations: 9.359 kB / 1.231 GB, free: 5.945 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