Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_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.0008727/0.0008727, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005332/0.005332, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.219/1.219, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.137/2.137, allocations: 390.9 MB / 0.6664 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 11.98 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5086/0.5089, allocations: 142.4 MB / 0.9552 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.001316/0.5102, allocations: 1.193 MB / 0.9563 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009645/0.5112, allocations: 0.717 MB / 0.957 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.75e-05/0.5112, allocations: 1.094 kB / 0.957 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.451e-05/0.5112, allocations: 3.984 kB / 0.957 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.991e-05/0.5113, allocations: 13.23 kB / 0.957 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.5117, allocations: 104.8 kB / 0.9571 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.746e-05/0.5118, allocations: 75.56 kB / 0.9572 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.632e-05/0.5118, allocations: 17.41 kB / 0.9572 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.393e-05/0.5119, allocations: 33.31 kB / 0.9573 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.313e-05/0.512, allocations: 31.44 kB / 0.9573 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.512, allocations: 2.938 kB / 0.9573 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.5121, allocations: 89.53 kB / 0.9574 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.801e-05/0.5122, allocations: 18.53 kB / 0.9574 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.314e-05/0.5122, allocations: 58.12 kB / 0.9575 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.5124, allocations: 136 kB / 0.9576 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.5124, allocations: 0 / 0.9576 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.382e-06/0.5124, allocations: 0 / 0.9576 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.5124, allocations: 1.125 kB / 0.9576 GB, free: 5.727 MB / 0.7169 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.0004075/0.5128, allocations: 412.4 kB / 0.958 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.5129, allocations: 10.03 kB / 0.958 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.157e-05/0.5129, allocations: 36.72 kB / 0.958 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.731e-05/0.5129, allocations: 12.81 kB / 0.958 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.304e-05/0.513, allocations: 172 kB / 0.9582 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.513, allocations: 2.281 kB / 0.9582 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.5131, allocations: 8.094 kB / 0.9582 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.5132, allocations: 70.19 kB / 0.9583 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.5132, allocations: 1.531 kB / 0.9583 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.5132, allocations: 0 / 0.9583 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.5132, allocations: 1.156 kB / 0.9583 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.5134, allocations: 49.41 kB / 0.9583 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004961/0.5139, allocations: 322.3 kB / 0.9586 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.514, allocations: 59.95 kB / 0.9587 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.899e-05/0.5141, allocations: 33.34 kB / 0.9587 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.5141, allocations: 1.125 kB / 0.9587 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/0.5143, allocations: 84.19 kB / 0.9588 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.5143, allocations: 0 / 0.9588 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003483/0.5147, allocations: 149.7 kB / 0.959 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.5147, allocations: 52.72 kB / 0.959 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.867e-05/0.5148, allocations: 133 kB / 0.9591 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.5148, allocations: 27.08 kB / 0.9592 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.335e-05/0.5148, allocations: 90.89 kB / 0.9592 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.5148, allocations: 14.55 kB / 0.9593 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.5149, allocations: 21.78 kB / 0.9593 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.676e-05/0.5149, allocations: 324.1 kB / 0.9596 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.715e-05/0.515, allocations: 29.86 kB / 0.9596 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.29e-05/0.5151, allocations: 55.12 kB / 0.9597 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.5152, allocations: 75.67 kB / 0.9597 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5153, allocations: 4 kB / 0.9597 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002193/0.5155, allocations: 119.1 kB / 0.9599 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.5155, allocations: 4.125 kB / 0.9599 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.5155, allocations: 1.375 kB / 0.9599 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.5155, allocations: 1.375 kB / 0.9599 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.746e-05/0.5156, allocations: 17.45 kB / 0.9599 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.5156, allocations: 5.406 kB / 0.9599 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.147e-05/0.5157, allocations: 13.19 kB / 0.9599 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.5157, allocations: 7.062 kB / 0.9599 GB, free: 3.543 MB / 0.7169 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 7.162e-05/0.5158, allocations: 126.5 kB / 0.96 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.5158, allocations: 8 kB / 0.96 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.606e-05/0.5158, allocations: 5.781 kB / 0.96 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.5159, allocations: 0 / 0.96 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5159, allocations: 1.531 kB / 0.96 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.5159, allocations: 4 kB / 0.96 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.5163, allocations: 388.6 kB / 0.9604 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.5163, allocations: 0 / 0.9604 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.737e-05/0.5163, allocations: 8.484 kB / 0.9604 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.5163, allocations: 1.438 kB / 0.9604 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.5163, allocations: 4 kB / 0.9604 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5163, allocations: 5.625 kB / 0.9604 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5164, allocations: 0 / 0.9604 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002367/0.5166, allocations: 231 kB / 0.9607 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.838e-05/0.5166, allocations: 82.33 kB / 0.9607 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.5166, allocations: 5.219 kB / 0.9607 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.288e-05/0.5167, allocations: 13.03 kB / 0.9607 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.644e-05/0.5168, allocations: 6.172 kB / 0.9608 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.5168, allocations: 2.188 kB / 0.9608 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.845e-05/0.5168, allocations: 96.92 kB / 0.9608 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5168, allocations: 0 / 0.9608 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003003/0.5171, allocations: 43.58 kB / 0.9609 GB, free: 2.617 MB / 0.7169 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.0006018/0.5178, allocations: 0.805 MB / 0.9617 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002229/0.518, allocations: 75.8 kB / 0.9617 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.518, allocations: 4 kB / 0.9618 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.489e-05/0.5181, allocations: 39.2 kB / 0.9618 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.5183, allocations: 9.078 kB / 0.9618 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.5195, allocations: 1.53 MB / 0.9633 GB, free: 448 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.5197, allocations: 0.6878 MB / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.672e-05/0.5197, allocations: 3.875 kB / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.097e-05/0.5198, allocations: 27.02 kB / 0.964 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.5198, allocations: 0 / 0.964 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.306/1.826, allocations: 2.329 MB / 0.9663 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003136/1.827, allocations: 269 kB / 0.9665 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.914/4.741, allocations: 3.938 kB / 0.9665 GB, free: 14.26 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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