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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001896/0.001896, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001466/0.001466, allocations: 200 kB / 16.26 MB, free: 6.625 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.311/1.311, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 390.3 MB / 0.6644 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 59.91 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6847/0.6861, allocations: 140.4 MB / 0.9492 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002552/0.6887, allocations: 1.54 MB / 0.9507 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001055/0.6897, allocations: 0.7139 MB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.164e-05/0.6898, allocations: 1.594 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.804e-05/0.6898, allocations: 3.938 kB / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.151e-05/0.6899, allocations: 5.656 kB / 0.9514 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.6904, allocations: 118.1 kB / 0.9516 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.6905, allocations: 75.2 kB / 0.9516 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.6906, allocations: 21.42 kB / 0.9517 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.184e-05/0.6907, allocations: 33.66 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.704e-05/0.6908, allocations: 40.2 kB / 0.9517 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.6908, allocations: 6.875 kB / 0.9517 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.691, allocations: 93.16 kB / 0.9518 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.691, allocations: 18.67 kB / 0.9518 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.037e-05/0.6911, allocations: 36.86 kB / 0.9519 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.6913, allocations: 140.4 kB / 0.952 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.6913, allocations: 3.938 kB / 0.952 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.365e-06/0.6913, allocations: 1.531 kB / 0.952 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.6913, allocations: 3.938 kB / 0.952 GB, free: 6.98 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.0005489/0.6918, allocations: 423.5 kB / 0.9524 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.6919, allocations: 9.5 kB / 0.9524 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.437e-05/0.6919, allocations: 36.28 kB / 0.9525 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.692, allocations: 4 kB / 0.9525 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.578e-05/0.6921, allocations: 172.9 kB / 0.9526 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.6921, allocations: 6.062 kB / 0.9526 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.6921, allocations: 4.656 kB / 0.9526 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.6923, allocations: 72.31 kB / 0.9527 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.6923, allocations: 0 / 0.9527 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.6923, allocations: 4 kB / 0.9527 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.6923, allocations: 1.406 kB / 0.9527 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.6925, allocations: 40.22 kB / 0.9528 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/0.693, allocations: 321.9 kB / 0.9531 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.6931, allocations: 53.83 kB / 0.9531 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.684e-05/0.6932, allocations: 35.44 kB / 0.9531 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.6932, allocations: 0 / 0.9531 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001598/0.6934, allocations: 73.59 kB / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.6934, allocations: 0 / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003532/0.6938, allocations: 136.6 kB / 0.9533 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.6938, allocations: 61.78 kB / 0.9534 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.314e-05/0.6939, allocations: 121.1 kB / 0.9535 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.6939, allocations: 31.05 kB / 0.9535 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.6939, allocations: 90.98 kB / 0.9536 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.694, allocations: 18.62 kB / 0.9537 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.694, allocations: 25.98 kB / 0.9537 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.78e-05/0.6941, allocations: 324.3 kB / 0.954 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.512e-05/0.6941, allocations: 26.73 kB / 0.954 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.083e-05/0.6942, allocations: 56.69 kB / 0.9541 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.6944, allocations: 69.81 kB / 0.9541 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.6944, allocations: 0 / 0.9541 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002049/0.6946, allocations: 121.6 kB / 0.9542 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.6946, allocations: 6.281 kB / 0.9543 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.6946, allocations: 1.5 kB / 0.9543 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.6946, allocations: 1.438 kB / 0.9543 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.998e-05/0.6947, allocations: 11.64 kB / 0.9543 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.6947, allocations: 1.562 kB / 0.9543 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.6948, allocations: 8.156 kB / 0.9543 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.6948, allocations: 6.859 kB / 0.9543 GB, free: 4.801 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.692e-05/0.6949, allocations: 131.7 kB / 0.9544 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.6949, allocations: 10.44 kB / 0.9544 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.306e-05/0.695, allocations: 5.5 kB / 0.9544 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.695, allocations: 0.9688 kB / 0.9544 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.695, allocations: 1.125 kB / 0.9544 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.695, allocations: 3.984 kB / 0.9544 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003508/0.6953, allocations: 382.9 kB / 0.9548 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.6953, allocations: 4 kB / 0.9548 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.773e-05/0.6954, allocations: 15.86 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.6954, allocations: 0 / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.6954, allocations: 1.344 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.6954, allocations: 5.375 kB / 0.9548 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.6954, allocations: 3.938 kB / 0.9548 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002268/0.6956, allocations: 205.7 kB / 0.955 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.176e-05/0.6957, allocations: 86.23 kB / 0.9551 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.6957, allocations: 1.312 kB / 0.9551 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.695e-05/0.6958, allocations: 11.36 kB / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/0.6958, allocations: 3 kB / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.6959, allocations: 5.344 kB / 0.9551 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.332e-05/0.6959, allocations: 92.3 kB / 0.9552 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6959, allocations: 1.281 kB / 0.9552 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002807/0.6962, allocations: 43.92 kB / 0.9553 GB, free: 3.879 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.0006133/0.6968, allocations: 0.7952 MB / 0.956 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002281/0.697, allocations: 77.7 kB / 0.9561 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.697, allocations: 1.344 kB / 0.9561 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.78e-05/0.6971, allocations: 31.52 kB / 0.9561 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002419/0.6974, allocations: 15.17 kB / 0.9562 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.6986, allocations: 1.502 MB / 0.9576 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001072/0.6987, allocations: 0.6925 MB / 0.9583 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.69e-05/0.6988, allocations: 11.45 kB / 0.9583 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.6988, allocations: 14.72 kB / 0.9583 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of SimCode: time 1.9e-07/0.6988, allocations: 0 / 0.9583 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01245/0.7113, allocations: 2.498 MB / 0.9608 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002715/0.7116, allocations: 261.8 kB / 0.961 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/2.456, allocations: 1.125 kB / 0.961 GB, free: 15.38 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