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.001442/0.001442, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001565/0.001565, allocations: 192.8 kB / 16.25 MB, free: 6.594 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.488 MB / 190.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.352/2.352, allocations: 437 MB / 0.7101 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 64.09 kB / 0.8688 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4724/0.4739, allocations: 151.6 MB / 1.017 GB, free: 2.715 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002486/0.4764, allocations: 1.548 MB / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.4776, allocations: 0.7285 MB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/0.4776, allocations: 0 / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.932e-05/0.4777, allocations: 7.922 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.675e-05/0.4777, allocations: 3.938 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004944/0.4782, allocations: 107.8 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.565e-05/0.4783, allocations: 75.84 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.603e-05/0.4784, allocations: 11.98 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.758e-05/0.4785, allocations: 39.84 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.925e-05/0.4786, allocations: 43.83 kB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.4786, allocations: 4 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.4788, allocations: 91.91 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.4788, allocations: 19.91 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.259e-05/0.4789, allocations: 35.98 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.4791, allocations: 137.7 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4791, allocations: 4 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4791, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.4791, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 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.0005669/0.4797, allocations: 420.8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.4797, allocations: 12.03 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.604e-05/0.4798, allocations: 38.73 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.402e-05/0.4798, allocations: 8.844 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.4799, allocations: 164.4 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.48, allocations: 4.312 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.48, allocations: 12.38 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.4802, allocations: 81.69 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.4802, allocations: 0 / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.4802, allocations: 0 / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.4802, allocations: 4 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.4803, allocations: 39.91 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.4809, allocations: 320.6 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.481, allocations: 46.5 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.494e-05/0.4811, allocations: 32.97 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.4811, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001758/0.4813, allocations: 83.38 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.4813, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003666/0.4817, allocations: 137.6 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.4817, allocations: 63.33 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.526e-05/0.4818, allocations: 117.8 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.4819, allocations: 25.7 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.724e-05/0.4819, allocations: 96.12 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.4819, allocations: 15.81 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.482, allocations: 29.7 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.4821, allocations: 318.8 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.046e-05/0.4822, allocations: 27.97 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.295e-05/0.4823, allocations: 42.56 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.4824, allocations: 82.48 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4824, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002273/0.4827, allocations: 113.8 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.4827, allocations: 4 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4827, allocations: 4 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.4827, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.241e-05/0.4828, allocations: 16.05 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4828, allocations: 80 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.856e-05/0.4829, allocations: 19.78 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.4829, allocations: 11.98 kB / 1.022 GB, free: 13.25 MB / 0.7794 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.469e-05/0.483, allocations: 121.7 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.483, allocations: 7.984 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.4831, allocations: 8.375 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.4831, allocations: 4 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4831, allocations: 7.984 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.4831, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004085/0.4835, allocations: 374.4 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4835, allocations: 0 / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.4836, allocations: 8 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4836, allocations: 7.875 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.4836, allocations: 3.984 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.4836, allocations: 7.938 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4836, allocations: 4 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002544/0.4839, allocations: 199.5 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.487e-05/0.4839, allocations: 85.02 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.4839, allocations: 7.984 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.959e-05/0.484, allocations: 7.938 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/0.4841, allocations: 3.984 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.4841, allocations: 8 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.959e-05/0.4841, allocations: 91.27 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.4842, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000293/0.4845, allocations: 39.94 kB / 1.023 GB, free: 12.17 MB / 0.7794 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.0006886/0.4851, allocations: 0.8027 MB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002214/0.4854, allocations: 83.81 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.4854, allocations: 0 / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.5e-05/0.4855, allocations: 35.92 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002437/0.4857, allocations: 17 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.4872, allocations: 1.497 MB / 1.025 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.4874, allocations: 0.6885 MB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.723e-05/0.4875, allocations: 4 kB / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.4875, allocations: 23.42 kB / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.4875, allocations: 0 / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.043/3.531, allocations: 2.494 MB / 1.028 GB, free: 6.578 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003387/3.531, allocations: 273.2 kB / 1.029 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.355/5.886, allocations: 0 / 1.029 GB, free: 6.223 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.p,hea.samplePeriod,hea.seed,occ.startTime,occ.startValue,occ.y,time