Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_10_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.007788/0.007788, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001794/0.001794, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.34/1.34, 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 10.1.1-maint.10.0.x/package.mo): time 2.429/2.429, allocations: 437.1 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 67.84 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8503/0.8519, allocations: 151.6 MB / 1.166 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00274/0.8547, allocations: 1.476 MB / 1.168 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.8559, allocations: 0.7284 MB / 1.168 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.089e-05/0.856, allocations: 0 / 1.168 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.868e-05/0.856, allocations: 3.938 kB / 1.168 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.493e-05/0.8561, allocations: 11.88 kB / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.8567, allocations: 127.6 kB / 1.168 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.8568, allocations: 79.75 kB / 1.168 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.456e-05/0.8569, allocations: 8 kB / 1.169 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.521e-05/0.857, allocations: 35.86 kB / 1.169 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.906e-05/0.8571, allocations: 43.81 kB / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.8571, allocations: 8 kB / 1.169 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.8573, allocations: 95.84 kB / 1.169 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.8573, allocations: 19.92 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.022e-05/0.8574, allocations: 35.86 kB / 1.169 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.8576, allocations: 143.2 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.8577, allocations: 0 / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8577, allocations: 0 / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.8577, allocations: 0 / 1.169 GB, free: 0.9688 MB / 0.8887 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.000588/0.8583, allocations: 424.7 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.8583, allocations: 8.922 kB / 1.169 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.702e-05/0.8583, allocations: 38.75 kB / 1.169 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/0.8584, allocations: 12.89 kB / 1.169 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.8585, allocations: 176.3 kB / 1.169 GB, free: 228 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.8585, allocations: 4.375 kB / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.8586, allocations: 8.359 kB / 1.17 GB, free: 216 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.8587, allocations: 69.78 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.8588, allocations: 0 / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.8588, allocations: 4 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.8588, allocations: 3.938 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.8589, allocations: 35.97 kB / 1.17 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.8595, allocations: 320.7 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.8596, allocations: 50.5 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.145e-05/0.8597, allocations: 32.91 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.8598, allocations: 7.984 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001971/0.86, allocations: 75.39 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.86, allocations: 0 / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0003721/0.8604, allocations: 145.5 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.8604, allocations: 51.41 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.349e-05/0.8605, allocations: 125.8 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.8605, allocations: 29.7 kB / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.291e-05/0.8606, allocations: 96.08 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.8606, allocations: 19.97 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/0.8607, allocations: 29.7 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.8608, allocations: 322.8 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.073e-05/0.8609, allocations: 23.98 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.891e-05/0.861, allocations: 50.56 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.8611, allocations: 70.48 kB / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.8611, allocations: 0 / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002302/0.8614, allocations: 113.5 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.8614, allocations: 8 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.8614, allocations: 4.062 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.8614, allocations: 0 / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.8615, allocations: 11.98 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.8615, allocations: 7.938 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.562e-05/0.8616, allocations: 11.94 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.8616, allocations: 0 / 1.171 GB, free: 14.37 MB / 0.9044 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.92e-05/0.8617, allocations: 129.7 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.8617, allocations: 3.953 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.75e-05/0.8618, allocations: 16.38 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.8618, allocations: 0 / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.8618, allocations: 0 / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.8618, allocations: 0 / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004468/0.8623, allocations: 382.4 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.8623, allocations: 0 / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.086e-05/0.8623, allocations: 7.984 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.8623, allocations: 0 / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.8623, allocations: 8 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.8624, allocations: 7.938 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8624, allocations: 0 / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002768/0.8626, allocations: 207.5 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.8627, allocations: 81.06 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.8627, allocations: 0 / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.05e-05/0.8628, allocations: 7.938 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.8629, allocations: 15.98 kB / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.8629, allocations: 7.875 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.304e-05/0.863, allocations: 95.27 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.4e-07/0.863, allocations: 0 / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002984/0.8633, allocations: 43.86 kB / 1.172 GB, free: 13.27 MB / 0.9044 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.0007895/0.8641, allocations: 0.8098 MB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.8643, allocations: 71.89 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.8643, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.63e-05/0.8644, allocations: 32.11 kB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.8647, allocations: 23.86 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.8662, allocations: 1.488 MB / 1.174 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.8665, allocations: 0.6945 MB / 1.175 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.549e-05/0.8665, allocations: 4 kB / 1.175 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.365e-05/0.8665, allocations: 23.36 kB / 1.175 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of SimCode: time 2.91e-07/0.8665, allocations: 0 / 1.175 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.8846, allocations: 2.656 MB / 1.178 GB, free: 7.492 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.256/8.141, allocations: 17.89 kB / 1.178 GB, free: 7.477 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.occ from file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv failed! Error: Could not read variable hea.on in file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.on from file Buildings_10_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