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: translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 117 kB / 16.37 MB, free: 6.012 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.002018/0.002018, allocations: 188.8 kB / 17.3 MB, free: 5.613 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.429/2.429, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 60.48 kB / 0.814 GB, free: 32.63 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3565, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.004823/0.3614, allocations: 1.488 MB / 0.9526 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002038/0.3634, allocations: 0.7362 MB / 0.9533 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.033e-05/0.3635, allocations: 0 / 0.9533 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.964e-05/0.3636, allocations: 3.938 kB / 0.9533 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.708e-05/0.3637, allocations: 11.86 kB / 0.9533 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008127/0.3645, allocations: 123.6 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000164/0.3647, allocations: 71.83 kB / 0.9535 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3648, allocations: 15.97 kB / 0.9535 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.365, allocations: 39.86 kB / 0.9535 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.829e-05/0.3651, allocations: 39.83 kB / 0.9536 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.3651, allocations: 4 kB / 0.9536 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.3654, allocations: 103.8 kB / 0.9537 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.3654, allocations: 19.91 kB / 0.9537 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.015e-05/0.3655, allocations: 27.86 kB / 0.9537 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.3658, allocations: 143.6 kB / 0.9539 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3658, allocations: 0 / 0.9539 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3658, allocations: 0 / 0.9539 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.3658, allocations: 0 / 0.9539 GB, free: 5.227 MB / 0.7325 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.0008357/0.3667, allocations: 420.9 kB / 0.9543 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.3667, allocations: 12.03 kB / 0.9543 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.484e-05/0.3668, allocations: 4.844 kB / 0.9543 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.367, allocations: 176.3 kB / 0.9545 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.3671, allocations: 8.312 kB / 0.9545 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.602e-05/0.3671, allocations: 12.31 kB / 0.9545 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.3674, allocations: 69.97 kB / 0.9545 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3674, allocations: 0 / 0.9545 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.3675, allocations: 4 kB / 0.9545 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3675, allocations: 0 / 0.9545 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.3677, allocations: 35.97 kB / 0.9546 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009334/0.3686, allocations: 312.7 kB / 0.9549 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.3689, allocations: 54.5 kB / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.369, allocations: 40.95 kB / 0.955 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3691, allocations: 0 / 0.955 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.3694, allocations: 79.44 kB / 0.955 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.244e-06/0.3694, allocations: 0 / 0.955 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0006764/0.3701, allocations: 141.5 kB / 0.9552 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.3702, allocations: 59.41 kB / 0.9552 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.3703, allocations: 117.8 kB / 0.9554 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.3704, allocations: 29.7 kB / 0.9554 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.958e-05/0.3705, allocations: 84.14 kB / 0.9555 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.3705, allocations: 19.75 kB / 0.9555 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.695e-05/0.3706, allocations: 29.7 kB / 0.9555 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001785/0.3708, allocations: 326.8 kB / 0.9558 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.371, allocations: 23.98 kB / 0.9558 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.3711, allocations: 50.55 kB / 0.9559 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.3714, allocations: 70.5 kB / 0.956 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.63e-05/0.3715, allocations: 0 / 0.956 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004231/0.3719, allocations: 125.4 kB / 0.9561 GB, free: 2.719 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3719, allocations: 4 kB / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.372, allocations: 0 / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.372, allocations: 0 / 0.9561 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.3721, allocations: 15.98 kB / 0.9561 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.3722, allocations: 3.938 kB / 0.9561 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.923e-05/0.3723, allocations: 11.91 kB / 0.9561 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.3723, allocations: 7.984 kB / 0.9561 GB, free: 2.676 MB / 0.7325 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.0001188/0.3724, allocations: 127.8 kB / 0.9562 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.3725, allocations: 4 kB / 0.9562 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.899e-05/0.3725, allocations: 12.36 kB / 0.9563 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3725, allocations: 0 / 0.9563 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.3725, allocations: 0 / 0.9563 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3726, allocations: 0 / 0.9563 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006137/0.3732, allocations: 390.6 kB / 0.9566 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3732, allocations: 4 kB / 0.9566 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.178e-05/0.3733, allocations: 7.984 kB / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3733, allocations: 0 / 0.9566 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.3733, allocations: 8 kB / 0.9566 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.3733, allocations: 0 / 0.9566 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3733, allocations: 3.938 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003784/0.3737, allocations: 207.6 kB / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.215e-05/0.3738, allocations: 85.02 kB / 0.9569 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.3738, allocations: 4 kB / 0.9569 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.3739, allocations: 7.984 kB / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.374, allocations: 7.938 kB / 0.9569 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.374, allocations: 0 / 0.9569 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.129e-05/0.3741, allocations: 95.27 kB / 0.957 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/0.3741, allocations: 3.938 kB / 0.957 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005215/0.3746, allocations: 43.92 kB / 0.9571 GB, free: 1.582 MB / 0.7325 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.0004368/0.3751, allocations: 163.7 kB / 0.9572 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003187/0.3754, allocations: 63.91 kB / 0.9573 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3754, allocations: 4 kB / 0.9573 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.3756, allocations: 35.97 kB / 0.9573 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.376, allocations: 8.125 kB / 0.9573 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005738/0.3766, allocations: 196.9 kB / 0.9575 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.377, allocations: 0.6932 MB / 0.9582 GB, free: 384 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.651e-05/0.3771, allocations: 7.984 kB / 0.9582 GB, free: 376 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.3771, allocations: 7.438 kB / 0.9582 GB, free: 368 kB / 0.7325 GB Notification: Performance of SimCode: time 5.21e-07/0.3772, allocations: 8 kB / 0.9582 GB, free: 360 kB / 0.7325 GB Notification: Performance of Templates: time 0.006367/0.3835, allocations: 1.441 MB / 0.9596 GB, free: 14.91 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (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 & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.samplePeriod,hea.seed,hea.t0,occ.startTime,occ.startValue,time