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.001644/0.001644, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.341/2.341, allocations: 390.2 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 55.91 kB / 0.8126 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5536/0.5558, allocations: 140.4 MB / 0.9497 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002121/0.5579, allocations: 1.477 MB / 0.9511 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009399/0.5589, allocations: 0.7333 MB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.873e-05/0.5589, allocations: 4 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.481e-05/0.559, allocations: 9.047 kB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.419e-05/0.559, allocations: 9.156 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.5595, allocations: 121.9 kB / 0.952 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.195e-05/0.5595, allocations: 84.17 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.763e-05/0.5596, allocations: 12.66 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.797e-05/0.5597, allocations: 34.67 kB / 0.9521 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.853e-05/0.5598, allocations: 43.77 kB / 0.9522 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.5598, allocations: 6.625 kB / 0.9522 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.56, allocations: 93.53 kB / 0.9523 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.203e-05/0.56, allocations: 19.09 kB / 0.9523 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.08e-05/0.56, allocations: 35.05 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.5602, allocations: 132.6 kB / 0.9524 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5602, allocations: 0 / 0.9524 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5602, allocations: 9.344 kB / 0.9525 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.5603, allocations: 0 / 0.9525 GB, free: 7.012 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.0004696/0.5607, allocations: 424.1 kB / 0.9529 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.5608, allocations: 8.812 kB / 0.9529 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.407e-05/0.5608, allocations: 41.27 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.5608, allocations: 3.438 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.382e-05/0.5609, allocations: 176.7 kB / 0.9531 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.5609, allocations: 3.156 kB / 0.9531 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.5609, allocations: 7.219 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.5611, allocations: 68.56 kB / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.5611, allocations: 4 kB / 0.9532 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.5611, allocations: 1.062 kB / 0.9532 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.5611, allocations: 0.9688 kB / 0.9532 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.5613, allocations: 35.94 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004778/0.5618, allocations: 326.1 kB / 0.9535 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.5619, allocations: 48.34 kB / 0.9535 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.467e-05/0.562, allocations: 31.41 kB / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.562, allocations: 1.469 kB / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.5622, allocations: 82.38 kB / 0.9537 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.054e-06/0.5622, allocations: 0 / 0.9537 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003436/0.5625, allocations: 143.3 kB / 0.9538 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/0.5625, allocations: 58.28 kB / 0.9539 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.323e-05/0.5626, allocations: 124.8 kB / 0.954 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.5626, allocations: 30.73 kB / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.811e-05/0.5627, allocations: 90.64 kB / 0.9541 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.5627, allocations: 14.7 kB / 0.9541 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.5627, allocations: 30.08 kB / 0.9541 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.489e-05/0.5628, allocations: 324.1 kB / 0.9544 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.708e-05/0.5629, allocations: 22.67 kB / 0.9545 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.039e-05/0.5629, allocations: 48.73 kB / 0.9545 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.5631, allocations: 85.72 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5631, allocations: 0 / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002095/0.5633, allocations: 105.2 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.5633, allocations: 6.031 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.5633, allocations: 3.984 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.5634, allocations: 1.281 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.846e-05/0.5634, allocations: 13.69 kB / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.5635, allocations: 80 / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.587e-05/0.5635, allocations: 20.11 kB / 0.9547 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.5635, allocations: 6.891 kB / 0.9547 GB, free: 4.816 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.492e-05/0.5636, allocations: 118.9 kB / 0.9549 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.5636, allocations: 7.406 kB / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.5637, allocations: 17.33 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.5637, allocations: 5.062 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.5637, allocations: 1.125 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.5637, allocations: 0 / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003367/0.564, allocations: 386.3 kB / 0.9552 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.564, allocations: 1.344 kB / 0.9552 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.923e-05/0.5641, allocations: 6.906 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.5641, allocations: 1.562 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.5641, allocations: 0 / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.5641, allocations: 13.23 kB / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5641, allocations: 0 / 0.9553 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002216/0.5643, allocations: 206.3 kB / 0.9555 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.641e-05/0.5644, allocations: 82.02 kB / 0.9555 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.5644, allocations: 5.219 kB / 0.9556 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.5645, allocations: 10.64 kB / 0.9556 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.411e-05/0.5645, allocations: 3.594 kB / 0.9556 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.5645, allocations: 5.359 kB / 0.9556 GB, free: 4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.052e-05/0.5646, allocations: 92.36 kB / 0.9557 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5646, allocations: 0 / 0.9557 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002894/0.5649, allocations: 44.59 kB / 0.9557 GB, free: 3.902 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.0005567/0.5654, allocations: 0.7961 MB / 0.9565 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002116/0.5657, allocations: 69.94 kB / 0.9565 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.5657, allocations: 0 / 0.9565 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.103e-05/0.5658, allocations: 44.5 kB / 0.9566 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.566, allocations: 7.688 kB / 0.9566 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.5672, allocations: 1.499 MB / 0.9581 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.534e-05/0.5673, allocations: 0.6884 MB / 0.9587 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.512e-05/0.5673, allocations: 11.47 kB / 0.9587 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.5674, allocations: 18.72 kB / 0.9588 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.5674, allocations: 0 / 0.9588 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.5844, allocations: 2.6 MB / 0.9613 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.11/7.694, allocations: 10.56 kB / 0.9613 GB, free: 15.64 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable hea.occ in file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.occ from file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! Error: Could not read variable hea.on in file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.on from file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! " Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:time,hea.TOut,hea.p,TOut.amplitude,TOut.f,TOut.offset