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.001779/0.001779, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001806/0.001806, allocations: 196.8 kB / 16.14 MB, free: 6.719 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.247/1.247, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.154/2.154, allocations: 390.2 MB / 0.6643 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 55.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5029/0.5041, allocations: 140.4 MB / 0.949 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002171/0.5063, allocations: 1.531 MB / 0.9505 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009389/0.5072, allocations: 0.7326 MB / 0.9513 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.321e-05/0.5073, allocations: 0 / 0.9513 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.922e-05/0.5073, allocations: 3.984 kB / 0.9513 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.856e-05/0.5074, allocations: 17.92 kB / 0.9513 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003913/0.5078, allocations: 109 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.074e-05/0.5079, allocations: 66.69 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.567e-05/0.508, allocations: 17.03 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.133e-05/0.508, allocations: 30.23 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.538e-05/0.5081, allocations: 43.34 kB / 0.9515 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.5081, allocations: 8.531 kB / 0.9515 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.5083, allocations: 84.88 kB / 0.9516 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.5083, allocations: 14.83 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.662e-05/0.5083, allocations: 36.41 kB / 0.9517 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.5085, allocations: 136.3 kB / 0.9518 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.5085, allocations: 0 / 0.9518 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.11e-07/0.5085, allocations: 7.875 kB / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.5086, allocations: 1.094 kB / 0.9518 GB, free: 7 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.0004629/0.509, allocations: 416.4 kB / 0.9522 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.5091, allocations: 9.031 kB / 0.9522 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.542e-05/0.5091, allocations: 40.05 kB / 0.9522 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.96e-05/0.5091, allocations: 8.844 kB / 0.9523 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.983e-05/0.5092, allocations: 167.9 kB / 0.9524 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.5092, allocations: 2.812 kB / 0.9524 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.5092, allocations: 8.375 kB / 0.9524 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.5094, allocations: 67.34 kB / 0.9525 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.5094, allocations: 1.094 kB / 0.9525 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.5094, allocations: 4 kB / 0.9525 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.5094, allocations: 5.391 kB / 0.9525 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.5096, allocations: 36.95 kB / 0.9525 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004567/0.51, allocations: 333.9 kB / 0.9529 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.5101, allocations: 51.62 kB / 0.9529 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.178e-05/0.5102, allocations: 31.62 kB / 0.9529 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.5102, allocations: 5.062 kB / 0.9529 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.5104, allocations: 77.62 kB / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.5104, allocations: 0 / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003397/0.5107, allocations: 136.6 kB / 0.9531 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.5108, allocations: 53.62 kB / 0.9532 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.419e-05/0.5108, allocations: 124.1 kB / 0.9533 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.061e-05/0.5109, allocations: 26.95 kB / 0.9533 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.874e-05/0.5109, allocations: 95.64 kB / 0.9534 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.5109, allocations: 13.89 kB / 0.9534 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.172e-05/0.511, allocations: 30.52 kB / 0.9535 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.534e-05/0.511, allocations: 321 kB / 0.9538 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.622e-05/0.5111, allocations: 30.2 kB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.038e-05/0.5112, allocations: 52.48 kB / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.5113, allocations: 74.5 kB / 0.9539 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5113, allocations: 0 / 0.9539 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000202/0.5115, allocations: 105 kB / 0.954 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.5115, allocations: 12.89 kB / 0.954 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.5115, allocations: 1.062 kB / 0.954 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.998e-06/0.5116, allocations: 1.094 kB / 0.954 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/0.5117, allocations: 16.34 kB / 0.9541 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.5117, allocations: 2 kB / 0.9541 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.471e-05/0.5117, allocations: 11.08 kB / 0.9541 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.5118, allocations: 2.938 kB / 0.9541 GB, free: 4.82 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 5.432e-05/0.5118, allocations: 122.8 kB / 0.9542 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.589e-05/0.5118, allocations: 11.91 kB / 0.9542 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.091e-05/0.5119, allocations: 17.52 kB / 0.9542 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.5119, allocations: 1.406 kB / 0.9542 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5119, allocations: 0 / 0.9542 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.5119, allocations: 0 / 0.9542 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.5122, allocations: 387 kB / 0.9546 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.5122, allocations: 0 / 0.9546 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.67e-05/0.5123, allocations: 4.094 kB / 0.9546 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5123, allocations: 5.375 kB / 0.9546 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.5123, allocations: 3.984 kB / 0.9546 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.5123, allocations: 5.031 kB / 0.9546 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.5123, allocations: 0 / 0.9546 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.5125, allocations: 201.6 kB / 0.9548 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.835e-05/0.5126, allocations: 87.3 kB / 0.9549 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.5126, allocations: 5.266 kB / 0.9549 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.839e-05/0.5127, allocations: 14.22 kB / 0.9549 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.5127, allocations: 7.359 kB / 0.9549 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.5127, allocations: 1.188 kB / 0.9549 GB, free: 4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.09e-05/0.5128, allocations: 93.3 kB / 0.955 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5128, allocations: 1.062 kB / 0.955 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002739/0.513, allocations: 39.53 kB / 0.955 GB, free: 3.906 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.0005524/0.5136, allocations: 0.8159 MB / 0.9558 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002004/0.5138, allocations: 69.77 kB / 0.9559 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5138, allocations: 4.125 kB / 0.9559 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.74e-05/0.5139, allocations: 40.47 kB / 0.9559 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002323/0.5142, allocations: 15.5 kB / 0.956 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.5153, allocations: 1.497 MB / 0.9574 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.031e-05/0.5154, allocations: 0.6843 MB / 0.9581 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.475e-05/0.5155, allocations: 10.14 kB / 0.9581 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.675e-05/0.5155, allocations: 20.22 kB / 0.9581 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5155, allocations: 0 / 0.9581 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4765/0.992, allocations: 2.421 MB / 0.9605 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002426/0.9922, allocations: 261.4 kB / 0.9607 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/2.626, allocations: 0 / 0.9607 GB, free: 15.44 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