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.005029/0.005029, allocations: 102 kB / 15.73 MB, free: 6.035 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.00131/0.001311, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.429/2.429, allocations: 390.2 MB / 0.6648 GB, free: 272 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 65.36 kB / 0.9504 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2253, allocations: 140.4 MB / 1.087 GB, free: 2.059 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002468/0.2278, allocations: 1.482 MB / 1.089 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.229, allocations: 0.722 MB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/0.2291, allocations: 7.875 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.03e-05/0.2291, allocations: 3.938 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.738e-05/0.2292, allocations: 15.86 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.2297, allocations: 123.6 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.2299, allocations: 71.83 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.393e-05/0.23, allocations: 19.98 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.674e-05/0.23, allocations: 35.84 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.469e-05/0.2301, allocations: 39.83 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.2301, allocations: 8 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.2303, allocations: 91.91 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.794e-05/0.2304, allocations: 23.91 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.524e-05/0.2304, allocations: 31.86 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.2307, allocations: 146.4 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2307, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2307, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2307, allocations: 4 kB / 1.09 GB, free: 15.23 MB / 0.8575 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.0005916/0.2313, allocations: 415.7 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2313, allocations: 8.031 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.509e-05/0.2314, allocations: 34.75 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.2314, allocations: 8.844 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.2315, allocations: 176.2 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.2315, allocations: 8.312 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.2316, allocations: 4.375 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.2318, allocations: 81.7 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.2318, allocations: 4 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.2318, allocations: 3.938 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.2318, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.232, allocations: 35.97 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005611/0.2325, allocations: 312.8 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.2327, allocations: 54.5 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.526e-05/0.2328, allocations: 32.97 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.2328, allocations: 3.984 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.233, allocations: 71.39 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.233, allocations: 4 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003924/0.2334, allocations: 141.6 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.2334, allocations: 59.34 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.604e-05/0.2335, allocations: 121.8 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.2336, allocations: 33.69 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.449e-05/0.2336, allocations: 88.05 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.2336, allocations: 15.81 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-05/0.2337, allocations: 33.7 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2338, allocations: 326.8 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.115e-05/0.2339, allocations: 19.98 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.38e-05/0.234, allocations: 50.94 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.2342, allocations: 74.8 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2342, allocations: 4 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002406/0.2344, allocations: 117.5 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2345, allocations: 8 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2345, allocations: 0 / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.2345, allocations: 0 / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.651e-05/0.2346, allocations: 11.98 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.2346, allocations: 4 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.125e-05/0.2347, allocations: 15.97 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.2347, allocations: 4 kB / 1.092 GB, free: 12.63 MB / 0.8575 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 9.243e-05/0.2348, allocations: 131.8 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.2348, allocations: 7.906 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.46e-05/0.2348, allocations: 8.375 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2349, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2349, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2349, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004369/0.2353, allocations: 374.5 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.2353, allocations: 4 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.415e-05/0.2354, allocations: 11.92 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2354, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.2354, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2354, allocations: 3.938 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2354, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002857/0.2357, allocations: 227.3 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-05/0.2357, allocations: 81.02 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.2358, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.202e-05/0.2359, allocations: 7.938 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/0.2359, allocations: 11.98 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.2359, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.709e-05/0.236, allocations: 95.27 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.236, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003055/0.2363, allocations: 47.92 kB / 1.093 GB, free: 11.54 MB / 0.8575 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.0007268/0.237, allocations: 0.7895 MB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.2373, allocations: 72.2 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2373, allocations: 0 / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.742e-05/0.2374, allocations: 36.12 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.2377, allocations: 16.08 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.2392, allocations: 1.502 MB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.2395, allocations: 0.6885 MB / 1.096 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.87e-05/0.2395, allocations: 11.75 kB / 1.096 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.012e-05/0.2396, allocations: 19.42 kB / 1.096 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.2396, allocations: 0 / 1.096 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01728/0.2568, allocations: 2.637 MB / 1.099 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.132/7.389, allocations: 9.719 kB / 1.099 GB, free: 5.762 MB / 0.8575 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