Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.Nicol2001HeatingUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",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.001117/0.001117, allocations: 97.64 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.008238/0.008238, allocations: 170.1 kB / 16.27 MB, free: 6.328 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.234/1.234, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.124/2.124, allocations: 390.9 MB / 0.6664 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002619, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.517/0.5173, allocations: 142.4 MB / 0.9552 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.001081/0.5184, allocations: 1.189 MB / 0.9563 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008192/0.5192, allocations: 0.7219 MB / 0.957 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.416e-05/0.5193, allocations: 0 / 0.957 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.104e-05/0.5193, allocations: 1.156 kB / 0.957 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.121e-05/0.5193, allocations: 13.02 kB / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.5197, allocations: 104.8 kB / 0.9571 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.16e-05/0.5198, allocations: 74.58 kB / 0.9572 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.28e-05/0.5198, allocations: 17.33 kB / 0.9572 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.079e-05/0.5199, allocations: 29.95 kB / 0.9573 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.958e-05/0.52, allocations: 43 kB / 0.9573 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.52, allocations: 3.75 kB / 0.9573 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.5201, allocations: 84.81 kB / 0.9574 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.64e-05/0.5201, allocations: 11.3 kB / 0.9574 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.52e-05/0.5202, allocations: 62.08 kB / 0.9575 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.5203, allocations: 131.1 kB / 0.9576 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.5203, allocations: 5.125 kB / 0.9576 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.82e-07/0.5203, allocations: 0 / 0.9576 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.306e-06/0.5204, allocations: 0 / 0.9576 GB, free: 5.816 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.0003807/0.5207, allocations: 413.2 kB / 0.958 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.5208, allocations: 9.656 kB / 0.958 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.772e-05/0.5208, allocations: 40.12 kB / 0.958 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.404e-05/0.5208, allocations: 8.25 kB / 0.958 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.87e-05/0.5209, allocations: 167.8 kB / 0.9582 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.5209, allocations: 15.45 kB / 0.9582 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.521, allocations: 8.203 kB / 0.9582 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.5211, allocations: 74.88 kB / 0.9583 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.5211, allocations: 0 / 0.9583 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.5211, allocations: 1.969 kB / 0.9583 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.5211, allocations: 0 / 0.9583 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.5213, allocations: 45.56 kB / 0.9583 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004439/0.5217, allocations: 326.1 kB / 0.9586 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.5218, allocations: 51.66 kB / 0.9587 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.523e-05/0.5219, allocations: 34.09 kB / 0.9587 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.5219, allocations: 1.188 kB / 0.9587 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001601/0.5221, allocations: 80.78 kB / 0.9588 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.5221, allocations: 4 kB / 0.9588 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003264/0.5224, allocations: 148.9 kB / 0.959 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.5225, allocations: 53.03 kB / 0.959 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.056e-05/0.5226, allocations: 120.4 kB / 0.9591 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.5226, allocations: 30.83 kB / 0.9591 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.235e-05/0.5226, allocations: 98.72 kB / 0.9592 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.534e-05/0.5226, allocations: 23.84 kB / 0.9593 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/0.5227, allocations: 16.47 kB / 0.9593 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.367e-05/0.5227, allocations: 325.5 kB / 0.9596 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.25e-05/0.5228, allocations: 24.48 kB / 0.9596 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.843e-05/0.5229, allocations: 59.11 kB / 0.9597 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.523, allocations: 71.69 kB / 0.9597 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.523, allocations: 3.984 kB / 0.9597 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002484/0.5233, allocations: 119.1 kB / 0.9599 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.5233, allocations: 5.5 kB / 0.9599 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.5233, allocations: 1.375 kB / 0.9599 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.5233, allocations: 5.359 kB / 0.9599 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.021e-05/0.5234, allocations: 12.19 kB / 0.9599 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.5234, allocations: 1.375 kB / 0.9599 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.36e-05/0.5235, allocations: 21.48 kB / 0.9599 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.5235, allocations: 2.75 kB / 0.9599 GB, free: 3.629 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 6.279e-05/0.5236, allocations: 119.3 kB / 0.96 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.5236, allocations: 6.656 kB / 0.96 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.932e-05/0.5236, allocations: 9.75 kB / 0.96 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.5236, allocations: 5.359 kB / 0.96 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5237, allocations: 1.375 kB / 0.96 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.5237, allocations: 0 / 0.96 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00033/0.524, allocations: 388.4 kB / 0.9604 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.524, allocations: 0 / 0.9604 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.538e-05/0.524, allocations: 4.125 kB / 0.9604 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.5241, allocations: 1.375 kB / 0.9604 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.5241, allocations: 1.375 kB / 0.9604 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5241, allocations: 3.938 kB / 0.9604 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5241, allocations: 7.984 kB / 0.9604 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.5243, allocations: 219.7 kB / 0.9606 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.01e-05/0.5244, allocations: 87.33 kB / 0.9607 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.5244, allocations: 5.281 kB / 0.9607 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.5245, allocations: 16.27 kB / 0.9607 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.5245, allocations: 6.938 kB / 0.9607 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.5245, allocations: 5.047 kB / 0.9608 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.172e-05/0.5245, allocations: 93.23 kB / 0.9608 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5246, allocations: 0 / 0.9608 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002555/0.5248, allocations: 40.16 kB / 0.9609 GB, free: 2.715 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.0005575/0.5254, allocations: 0.8132 MB / 0.9617 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002032/0.5256, allocations: 75.97 kB / 0.9617 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.5256, allocations: 0 / 0.9617 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.038e-05/0.5257, allocations: 42.94 kB / 0.9618 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.5259, allocations: 11.81 kB / 0.9618 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.527, allocations: 1.526 MB / 0.9633 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001399/0.5272, allocations: 0.6901 MB / 0.964 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.658e-05/0.5272, allocations: 4 kB / 0.964 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.5273, allocations: 22.83 kB / 0.964 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of SimCode: time 1.91e-07/0.5273, allocations: 0 / 0.964 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.509/2.036, allocations: 2.326 MB / 0.9663 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/2.037, allocations: 260.8 kB / 0.9665 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/3.6, allocations: 1.406 kB / 0.9665 GB, free: 14.37 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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