Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Nicol2001HeatingUK,fileNamePrefix="Buildings_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_10_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.008143/0.008143, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001775/0.001775, allocations: 199.5 kB / 16.68 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.352 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.619/2.619, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 71.81 kB / 1.018 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2792, allocations: 151.6 MB / 1.166 GB, free: 7.469 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002481/0.2818, allocations: 1.475 MB / 1.168 GB, free: 5.977 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.283, allocations: 0.7245 MB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.455e-05/0.283, allocations: 7.938 kB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.933e-05/0.2831, allocations: 3.938 kB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.61e-05/0.2831, allocations: 19.84 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.2837, allocations: 119.6 kB / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.2838, allocations: 75.77 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.34e-05/0.2839, allocations: 15.98 kB / 1.169 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.975e-05/0.284, allocations: 39.84 kB / 1.169 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.357e-05/0.2841, allocations: 35.84 kB / 1.169 GB, free: 4.934 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.2841, allocations: 8 kB / 1.169 GB, free: 4.926 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.2843, allocations: 91.91 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.476e-05/0.2843, allocations: 15.98 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.52e-05/0.2844, allocations: 35.83 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.2846, allocations: 143.8 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2846, allocations: 3.984 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2846, allocations: 3.938 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.157e-06/0.2846, allocations: 0 / 1.169 GB, free: 4.637 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.0005676/0.2852, allocations: 428.7 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.2852, allocations: 8.031 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.485e-05/0.2853, allocations: 34.73 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.2853, allocations: 8.891 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.2854, allocations: 172.3 kB / 1.169 GB, free: 3.898 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.2855, allocations: 8.375 kB / 1.17 GB, free: 3.891 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.2855, allocations: 4.375 kB / 1.17 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.2857, allocations: 69.72 kB / 1.17 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.2857, allocations: 4 kB / 1.17 GB, free: 3.809 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.2857, allocations: 8 kB / 1.17 GB, free: 3.801 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2857, allocations: 0 / 1.17 GB, free: 3.801 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.2859, allocations: 35.97 kB / 1.17 GB, free: 3.766 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005526/0.2864, allocations: 316.8 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.2865, allocations: 54.5 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.369e-05/0.2866, allocations: 32.97 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.2867, allocations: 4 kB / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.2869, allocations: 71.38 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.2869, allocations: 0 / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0003818/0.2873, allocations: 141.6 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.2873, allocations: 59.41 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.2874, allocations: 125.8 kB / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.2874, allocations: 37.64 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.2875, allocations: 88.09 kB / 1.171 GB, free: 2.742 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.2875, allocations: 27.77 kB / 1.171 GB, free: 2.715 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/0.2876, allocations: 21.72 kB / 1.171 GB, free: 2.688 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.773e-05/0.2877, allocations: 326.8 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.209e-05/0.2877, allocations: 27.98 kB / 1.171 GB, free: 2.332 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.516e-05/0.2878, allocations: 50.55 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.288, allocations: 74.78 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.288, allocations: 4 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002374/0.2883, allocations: 109.6 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.2883, allocations: 8 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.2883, allocations: 0 / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2883, allocations: 3.984 kB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.2884, allocations: 8 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2885, allocations: 4 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.933e-05/0.2885, allocations: 7.984 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2885, allocations: 4.062 kB / 1.171 GB, free: 2.039 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 8.56e-05/0.2886, allocations: 129.7 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.2887, allocations: 3.953 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.307e-05/0.2887, allocations: 8.375 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2887, allocations: 3.984 kB / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2887, allocations: 0 / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2887, allocations: 0 / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004413/0.2892, allocations: 386.4 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.2892, allocations: 8 kB / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.134e-05/0.2892, allocations: 0 / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.2892, allocations: 7.938 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.2892, allocations: 3.938 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2893, allocations: 3.938 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2893, allocations: 3.984 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.2896, allocations: 211.5 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.998e-05/0.2896, allocations: 88.98 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.2896, allocations: 0 / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.524e-05/0.2897, allocations: 11.92 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.444e-05/0.2898, allocations: 4 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.2898, allocations: 7.984 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.628e-05/0.2898, allocations: 91.28 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2898, allocations: 0 / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002955/0.2901, allocations: 39.92 kB / 1.172 GB, free: 0.9453 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.0006996/0.2909, allocations: 0.799 MB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002234/0.2911, allocations: 75.89 kB / 1.173 GB, free: 64 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2911, allocations: 0 / 1.173 GB, free: 64 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.582e-05/0.2912, allocations: 35.97 kB / 1.173 GB, free: 28 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.2915, allocations: 11.88 kB / 1.173 GB, free: 16 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.293, allocations: 1.492 MB / 1.174 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.2932, allocations: 0.6885 MB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.79e-05/0.2933, allocations: 4 kB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.528e-05/0.2933, allocations: 27.42 kB / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.2933, allocations: 0 / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01728/0.3106, allocations: 2.663 MB / 1.178 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.13/7.44, allocations: 8.016 kB / 1.178 GB, free: 11.16 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.occ from file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! Error: Could not read variable hea.on in file Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.on from file Buildings_10_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