Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,fileNamePrefix="Buildings_10_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.008023/0.008023, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.002475/0.002475, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.703/2.703, allocations: 437 MB / 0.7105 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002756/0.002756, allocations: 63.91 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2892, allocations: 151.6 MB / 1.166 GB, free: 7.371 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002667/0.2919, allocations: 1.486 MB / 1.168 GB, free: 5.867 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00125/0.2932, allocations: 0.7284 MB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.377e-05/0.2932, allocations: 0 / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.549e-05/0.2932, allocations: 7.875 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.134e-05/0.2933, allocations: 7.922 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005106/0.2938, allocations: 127.5 kB / 1.168 GB, free: 4.992 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.2939, allocations: 79.77 kB / 1.169 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.62e-05/0.294, allocations: 8 kB / 1.169 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.595e-05/0.2941, allocations: 39.89 kB / 1.169 GB, free: 4.867 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.009e-05/0.2942, allocations: 43.78 kB / 1.169 GB, free: 4.824 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.2942, allocations: 4 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.2944, allocations: 95.91 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.349e-05/0.2945, allocations: 7.984 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.147e-05/0.2945, allocations: 35.84 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.2948, allocations: 147.8 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.2948, allocations: 0 / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2948, allocations: 3.938 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.2948, allocations: 4 kB / 1.169 GB, free: 4.531 MB / 0.92 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.0006566/0.2955, allocations: 424.7 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2955, allocations: 12.03 kB / 1.169 GB, free: 4.051 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.686e-05/0.2955, allocations: 34.75 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.503e-05/0.2956, allocations: 8.891 kB / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.2957, allocations: 176.3 kB / 1.17 GB, free: 3.789 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.2958, allocations: 384 / 1.17 GB, free: 3.789 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.2958, allocations: 8.375 kB / 1.17 GB, free: 3.781 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.296, allocations: 81.7 kB / 1.17 GB, free: 3.695 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.296, allocations: 0 / 1.17 GB, free: 3.695 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.296, allocations: 0 / 1.17 GB, free: 3.695 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.296, allocations: 3.938 kB / 1.17 GB, free: 3.691 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.2962, allocations: 39.97 kB / 1.17 GB, free: 3.652 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006068/0.2968, allocations: 316.8 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.2969, allocations: 46.55 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.385e-05/0.297, allocations: 40.91 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.2971, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.2972, allocations: 79.38 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.2973, allocations: 4 kB / 1.17 GB, free: 3.102 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004134/0.2977, allocations: 137.6 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.2977, allocations: 51.48 kB / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.2978, allocations: 125.8 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.2979, allocations: 29.64 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.375e-05/0.2979, allocations: 100.1 kB / 1.171 GB, free: 2.629 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.298, allocations: 11.84 kB / 1.171 GB, free: 2.617 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.743e-05/0.298, allocations: 37.7 kB / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.2982, allocations: 322.8 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.55e-05/0.2983, allocations: 23.98 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.2984, allocations: 50.55 kB / 1.171 GB, free: 2.168 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.2986, allocations: 74.5 kB / 1.171 GB, free: 2.086 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2986, allocations: 0 / 1.171 GB, free: 2.086 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002505/0.2988, allocations: 109.5 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.2989, allocations: 5.875 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.2989, allocations: 0 / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.2989, allocations: 4 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.145e-05/0.299, allocations: 11.98 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.299, allocations: 0 / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.767e-05/0.2991, allocations: 12.06 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.2991, allocations: 7.984 kB / 1.171 GB, free: 1.934 MB / 0.92 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.0001398/0.2992, allocations: 124.6 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.19e-05/0.2993, allocations: 11.94 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.2993, allocations: 8.375 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.2993, allocations: 4 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2993, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2993, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005064/0.2998, allocations: 386.4 kB / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2999, allocations: 0 / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/0.2999, allocations: 11.98 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2999, allocations: 0 / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.2999, allocations: 3.938 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.2999, allocations: 11.88 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2999, allocations: 0 / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.3003, allocations: 204 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.138e-05/0.3003, allocations: 92.94 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.3003, allocations: 4 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.28e-05/0.3004, allocations: 11.92 kB / 1.172 GB, free: 0.9805 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.136e-05/0.3005, allocations: 0 / 1.172 GB, free: 0.9805 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.3005, allocations: 4 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.602e-05/0.3006, allocations: 91.27 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3006, allocations: 0 / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002828/0.3009, allocations: 43.92 kB / 1.172 GB, free: 0.8438 MB / 0.92 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.0008534/0.3017, allocations: 0.8061 MB / 1.173 GB, free: 28 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00026/0.302, allocations: 71.89 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.302, allocations: 0 / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.3021, allocations: 31.98 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.3024, allocations: 15.92 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.3041, allocations: 1.496 MB / 1.174 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.3044, allocations: 0.6885 MB / 1.175 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.626e-05/0.3045, allocations: 8 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.16e-05/0.3045, allocations: 23.42 kB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.3045, allocations: 0 / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.3276, allocations: 2.654 MB / 1.178 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.826/8.154, allocations: 5.266 kB / 1.178 GB, free: 11.06 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.fmu > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.occ from file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv failed! Error: Could not read variable hea.on in file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.csv. Warning: Get data of variable hea.on from file Buildings_10_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