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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009417/0.009417, allocations: 103.5 kB / 15.73 MB, free: 6.043 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.002075/0.002075, allocations: 201.5 kB / 16.68 MB, free: 5.98 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.702/2.702, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 1.054 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9489/0.9504, allocations: 157.4 MB / 1.207 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00308/0.9535, allocations: 1.475 MB / 1.209 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.9552, allocations: 0.7245 MB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.471e-05/0.9553, allocations: 3.938 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.888e-05/0.9553, allocations: 3.938 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.528e-05/0.9554, allocations: 15.84 kB / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008521/0.9564, allocations: 123.6 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.00016/0.9565, allocations: 75.78 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.9567, allocations: 15.94 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.9568, allocations: 39.86 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.043e-05/0.9569, allocations: 43.83 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.9569, allocations: 4 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002677/0.9572, allocations: 91.89 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.797e-05/0.9572, allocations: 15.92 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.969e-05/0.9573, allocations: 39.78 kB / 1.21 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003561/0.9577, allocations: 145.9 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.9577, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.617e-06/0.9577, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.9577, allocations: 4 kB / 1.21 GB, free: 10.78 MB / 0.9356 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.0008277/0.9586, allocations: 416.9 kB / 1.21 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.9586, allocations: 12.03 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.679e-05/0.9587, allocations: 38.73 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/0.9587, allocations: 8.844 kB / 1.21 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.9589, allocations: 168.3 kB / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.9589, allocations: 4.359 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.959, allocations: 8.375 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.9592, allocations: 77.72 kB / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.9592, allocations: 0 / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.9592, allocations: 0 / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.9592, allocations: 7.984 kB / 1.211 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.9594, allocations: 35.98 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006829/0.96, allocations: 324.7 kB / 1.211 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.9602, allocations: 46.5 kB / 1.211 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.005e-05/0.9603, allocations: 32.97 kB / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.9603, allocations: 0 / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001994/0.9605, allocations: 83.28 kB / 1.211 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.9605, allocations: 7.938 kB / 1.211 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004231/0.961, allocations: 129.6 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.961, allocations: 59.34 kB / 1.211 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.9611, allocations: 125.7 kB / 1.211 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.9612, allocations: 25.7 kB / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.01e-05/0.9612, allocations: 92.2 kB / 1.212 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.9613, allocations: 15.8 kB / 1.212 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.693e-05/0.9613, allocations: 37.7 kB / 1.212 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.9615, allocations: 318.8 kB / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.34e-05/0.9615, allocations: 23.98 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.734e-05/0.9616, allocations: 46.55 kB / 1.212 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.9618, allocations: 78.48 kB / 1.212 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.9618, allocations: 0 / 1.212 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002402/0.9621, allocations: 109.5 kB / 1.212 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.9621, allocations: 7.984 kB / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.9621, allocations: 0 / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.9621, allocations: 4 kB / 1.212 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.818e-05/0.9622, allocations: 8 kB / 1.212 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.9622, allocations: 3.938 kB / 1.212 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.187e-05/0.9623, allocations: 19.98 kB / 1.212 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.9624, allocations: 4 kB / 1.212 GB, free: 8.188 MB / 0.9356 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.0001005/0.9625, allocations: 121.7 kB / 1.212 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.9625, allocations: 7.906 kB / 1.212 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.9625, allocations: 12.36 kB / 1.212 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.9625, allocations: 4 kB / 1.212 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.9625, allocations: 3.938 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.9626, allocations: 0 / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004441/0.963, allocations: 378.5 kB / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.963, allocations: 0 / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.295e-05/0.9631, allocations: 7.938 kB / 1.213 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.9631, allocations: 0 / 1.213 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.9631, allocations: 7.984 kB / 1.213 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.9631, allocations: 7.938 kB / 1.213 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.9631, allocations: 480 / 1.213 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.9634, allocations: 207.4 kB / 1.213 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.511e-05/0.9634, allocations: 85.02 kB / 1.213 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.9635, allocations: 3.984 kB / 1.213 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.135e-05/0.9636, allocations: 15.94 kB / 1.213 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.9636, allocations: 0 / 1.213 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.9636, allocations: 7.984 kB / 1.213 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.009e-05/0.9637, allocations: 91.27 kB / 1.213 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9637, allocations: 4 kB / 1.213 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003285/0.964, allocations: 39.94 kB / 1.213 GB, free: 7.098 MB / 0.9356 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.0008751/0.9649, allocations: 0.8159 MB / 1.214 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000246/0.9652, allocations: 71.91 kB / 1.214 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.9652, allocations: 0 / 1.214 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.9653, allocations: 35.97 kB / 1.214 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.9656, allocations: 15.88 kB / 1.214 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.9674, allocations: 1.484 MB / 1.216 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.9677, allocations: 0.6885 MB / 1.216 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.457e-05/0.9678, allocations: 11.98 kB / 1.216 GB, free: 3.844 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.14e-05/0.9678, allocations: 19.44 kB / 1.216 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of SimCode: time 2.094e-06/0.9678, allocations: 0 / 1.216 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02074/0.9886, allocations: 2.693 MB / 1.219 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.469/8.458, allocations: 3.625 kB / 1.219 GB, free: 1.281 MB / 0.9356 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" 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