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: 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.001301/0.001301, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001362/0.001362, allocations: 193.2 kB / 16.13 MB, free: 6.656 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.531 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.471/2.471, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.89 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7061/0.7073, allocations: 140.4 MB / 0.9489 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002627/0.71, allocations: 1.527 MB / 0.9504 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.7112, allocations: 0.7288 MB / 0.9511 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.86e-05/0.7112, allocations: 1.375 kB / 0.9511 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.001e-05/0.7112, allocations: 7.922 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.533e-05/0.7113, allocations: 5.312 kB / 0.9511 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.7118, allocations: 104 kB / 0.9512 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.7119, allocations: 83.14 kB / 0.9513 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.768e-05/0.712, allocations: 22.34 kB / 0.9513 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.936e-05/0.7121, allocations: 25.64 kB / 0.9514 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.189e-05/0.7122, allocations: 39.83 kB / 0.9514 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.7122, allocations: 3.656 kB / 0.9514 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.7124, allocations: 85.97 kB / 0.9515 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.7124, allocations: 18.36 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.582e-05/0.7124, allocations: 32.06 kB / 0.9515 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.7127, allocations: 142.9 kB / 0.9517 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.7127, allocations: 1.344 kB / 0.9517 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.31e-07/0.7127, allocations: 0 / 0.9517 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.7127, allocations: 0 / 0.9517 GB, free: 7.105 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.000636/0.7133, allocations: 422.6 kB / 0.9521 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.7134, allocations: 8.656 kB / 0.9521 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.7134, allocations: 5.125 kB / 0.9521 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.464e-05/0.7135, allocations: 170.9 kB / 0.9522 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.7136, allocations: 10.81 kB / 0.9523 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.182e-05/0.7136, allocations: 4.906 kB / 0.9523 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.7138, allocations: 79.2 kB / 0.9523 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.7138, allocations: 5.109 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.7138, allocations: 0 / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.7138, allocations: 1.562 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.714, allocations: 36.53 kB / 0.9524 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005381/0.7145, allocations: 325.9 kB / 0.9527 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.7146, allocations: 48.56 kB / 0.9527 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.263e-05/0.7147, allocations: 35.08 kB / 0.9528 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.7148, allocations: 1.375 kB / 0.9528 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.715, allocations: 80.88 kB / 0.9528 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.715, allocations: 1.406 kB / 0.9528 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003959/0.7154, allocations: 136.1 kB / 0.953 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.7154, allocations: 56.41 kB / 0.953 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.505e-05/0.7155, allocations: 121.8 kB / 0.9531 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.7155, allocations: 30.95 kB / 0.9532 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.661e-05/0.7156, allocations: 90.45 kB / 0.9533 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.7156, allocations: 18.31 kB / 0.9533 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.533e-05/0.7156, allocations: 29.58 kB / 0.9533 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.581e-05/0.7157, allocations: 325.1 kB / 0.9536 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.866e-05/0.7158, allocations: 26.08 kB / 0.9536 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.999e-05/0.7159, allocations: 53.89 kB / 0.9537 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.716, allocations: 72.5 kB / 0.9538 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.716, allocations: 1.469 kB / 0.9538 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002265/0.7163, allocations: 112.6 kB / 0.9539 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.7163, allocations: 9.531 kB / 0.9539 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.7163, allocations: 64 / 0.9539 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.7163, allocations: 6.906 kB / 0.9539 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.547e-05/0.7164, allocations: 11.11 kB / 0.9539 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.7164, allocations: 1.5 kB / 0.9539 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.29e-05/0.7165, allocations: 8.281 kB / 0.9539 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.7165, allocations: 6.766 kB / 0.9539 GB, free: 4.957 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.984e-05/0.7166, allocations: 127.1 kB / 0.954 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.7166, allocations: 6.312 kB / 0.954 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.7167, allocations: 10.19 kB / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.7167, allocations: 1.812 kB / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.7167, allocations: 0 / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.7167, allocations: 0 / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003874/0.7171, allocations: 382.4 kB / 0.9544 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.7171, allocations: 1.344 kB / 0.9544 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.832e-05/0.7172, allocations: 8.016 kB / 0.9544 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.7172, allocations: 3.938 kB / 0.9544 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.7172, allocations: 5.656 kB / 0.9544 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.7172, allocations: 0 / 0.9544 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7172, allocations: 3.938 kB / 0.9544 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.7175, allocations: 206.7 kB / 0.9546 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.975e-05/0.7175, allocations: 81.95 kB / 0.9547 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/0.7175, allocations: 5.156 kB / 0.9547 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.42e-05/0.7176, allocations: 3.156 kB / 0.9547 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.861e-05/0.7177, allocations: 14.2 kB / 0.9547 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.789e-06/0.7177, allocations: 6.25 kB / 0.9547 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.476e-05/0.7177, allocations: 93.08 kB / 0.9548 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7177, allocations: 0 / 0.9548 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002903/0.718, allocations: 44.48 kB / 0.9549 GB, free: 4.047 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.0003255/0.7183, allocations: 171.8 kB / 0.955 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002292/0.7186, allocations: 69.36 kB / 0.9551 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.7186, allocations: 1.125 kB / 0.9551 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.54e-05/0.7187, allocations: 39.84 kB / 0.9551 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.7189, allocations: 7.094 kB / 0.9552 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003729/0.7193, allocations: 195.7 kB / 0.9553 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.7195, allocations: 0.6883 MB / 0.956 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.777e-05/0.7195, allocations: 7.453 kB / 0.956 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.637e-05/0.7195, allocations: 10.84 kB / 0.956 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.7195, allocations: 4 kB / 0.956 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of Templates: time 0.003937/0.7235, allocations: 1.374 MB / 0.9574 GB, free: 2.266 MB / 0.7169 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 -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/jenkins/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