Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",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.001719/0.001719, 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.002112/0.002112, allocations: 194.5 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.479/1.479, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.305/2.305, allocations: 390.3 MB / 0.6647 GB, free: 396 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 55.91 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6081/0.6102, allocations: 140.4 MB / 0.9497 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00239/0.6127, allocations: 1.472 MB / 0.9512 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001124/0.6138, allocations: 0.7375 MB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.859e-05/0.6139, allocations: 1.125 kB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.893e-05/0.6139, allocations: 3.938 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.84e-05/0.614, allocations: 9.125 kB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005118/0.6145, allocations: 125.9 kB / 0.952 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.6146, allocations: 80.22 kB / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.6147, allocations: 18.02 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.481e-05/0.6148, allocations: 29.27 kB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.707e-05/0.6149, allocations: 44.02 kB / 0.9522 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.6149, allocations: 6.969 kB / 0.9522 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.6152, allocations: 97.5 kB / 0.9523 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.6152, allocations: 19.09 kB / 0.9523 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.484e-05/0.6152, allocations: 34.92 kB / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.6155, allocations: 133.9 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.6155, allocations: 0 / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.064e-06/0.6155, allocations: 0 / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.038e-05/0.6155, allocations: 3.938 kB / 0.9525 GB, free: 7.02 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.0005966/0.6161, allocations: 419.6 kB / 0.9529 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.6162, allocations: 10.06 kB / 0.9529 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.647e-05/0.6162, allocations: 43.83 kB / 0.9529 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.308e-05/0.6163, allocations: 4.312 kB / 0.9529 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.708e-05/0.6164, allocations: 172.4 kB / 0.9531 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.6164, allocations: 6.875 kB / 0.9531 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.6164, allocations: 7.719 kB / 0.9531 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.6166, allocations: 72.42 kB / 0.9532 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.6166, allocations: 0 / 0.9532 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.6167, allocations: 1.188 kB / 0.9532 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.6167, allocations: 1.156 kB / 0.9532 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.6168, allocations: 44.34 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/0.6175, allocations: 322.1 kB / 0.9535 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.6176, allocations: 47.75 kB / 0.9536 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.212e-05/0.6177, allocations: 36.56 kB / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.6177, allocations: 0 / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.6179, allocations: 78.11 kB / 0.9537 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.883e-06/0.6179, allocations: 0 / 0.9537 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003702/0.6183, allocations: 144 kB / 0.9538 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.6183, allocations: 54 kB / 0.9539 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.722e-05/0.6184, allocations: 128.1 kB / 0.954 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.6184, allocations: 27.36 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.507e-05/0.6185, allocations: 94.55 kB / 0.9541 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.6185, allocations: 14.98 kB / 0.9541 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.6186, allocations: 29.42 kB / 0.9541 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.6186, allocations: 321.7 kB / 0.9544 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.972e-05/0.6187, allocations: 22.39 kB / 0.9545 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.483e-05/0.6188, allocations: 56.39 kB / 0.9545 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.6189, allocations: 73.55 kB / 0.9546 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.6189, allocations: 0 / 0.9546 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000224/0.6192, allocations: 113.2 kB / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.6192, allocations: 9.922 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.6192, allocations: 0 / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.6192, allocations: 1.25 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.195e-05/0.6193, allocations: 9.375 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.6193, allocations: 1.375 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.875e-05/0.6194, allocations: 14.55 kB / 0.9547 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.6194, allocations: 3.625 kB / 0.9547 GB, free: 4.832 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.263e-05/0.6195, allocations: 126.2 kB / 0.9548 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.6195, allocations: 7.5 kB / 0.9549 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.348e-05/0.6195, allocations: 13.67 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.6196, allocations: 1.156 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.6196, allocations: 0 / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.6196, allocations: 1.125 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.62, allocations: 386.1 kB / 0.9552 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.62, allocations: 5.406 kB / 0.9552 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.262e-05/0.62, allocations: 6.969 kB / 0.9553 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.62, allocations: 1.312 kB / 0.9553 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.6201, allocations: 3.984 kB / 0.9553 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.199e-06/0.6201, allocations: 4.75 kB / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6201, allocations: 5.062 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.6204, allocations: 201.4 kB / 0.9555 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.208e-05/0.6204, allocations: 83.36 kB / 0.9555 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.6205, allocations: 13.22 kB / 0.9556 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.159e-05/0.6206, allocations: 10.95 kB / 0.9556 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.6206, allocations: 2.5 kB / 0.9556 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.6206, allocations: 5.391 kB / 0.9556 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.119e-05/0.6207, allocations: 97.33 kB / 0.9557 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6207, allocations: 0 / 0.9557 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003698/0.6211, allocations: 39.81 kB / 0.9557 GB, free: 3.91 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.0008481/0.6219, allocations: 0.8059 MB / 0.9565 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002719/0.6222, allocations: 70.2 kB / 0.9566 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.6222, allocations: 4.062 kB / 0.9566 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.6223, allocations: 44.06 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.000285/0.6226, allocations: 8 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.001423/0.6241, allocations: 1.489 MB / 0.9581 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001169/0.6242, allocations: 0.6877 MB / 0.9587 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.91e-05/0.6242, allocations: 11.14 kB / 0.9587 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.6243, allocations: 20.88 kB / 0.9588 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of SimCode: time 7.31e-07/0.6243, allocations: 0 / 0.9588 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.6429, allocations: 2.617 MB / 0.9613 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.051/7.693, allocations: 10.17 kB / 0.9613 GB, free: 15.64 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_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_Nicol2001HeatingPakistan.fmu > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.occ from file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv failed! Error: Could not read variable hea.on in file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.on from file Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_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