Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,fileNamePrefix="Buildings_latest_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.001891/0.001891, 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.001468/0.001468, allocations: 195.4 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.46/1.46, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.981/2.981, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 61.98 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2588, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002962/0.2618, allocations: 1.485 MB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2631, allocations: 0.73 MB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.443e-05/0.2632, allocations: 8 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.181e-05/0.2633, allocations: 3.938 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.617e-05/0.2633, allocations: 11.86 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005641/0.2639, allocations: 123.6 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.264, allocations: 67.84 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.749e-05/0.2641, allocations: 8 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.2642, allocations: 51.83 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.644e-05/0.2643, allocations: 31.84 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.2643, allocations: 8 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.2645, allocations: 91.91 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.579e-05/0.2646, allocations: 19.91 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.313e-05/0.2646, allocations: 31.86 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.2649, allocations: 143.8 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2649, allocations: 0 / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2649, allocations: 0 / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2649, allocations: 0 / 1.066 GB, free: 11.73 MB / 0.8262 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.0005972/0.2655, allocations: 425 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2655, allocations: 8.031 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.717e-05/0.2656, allocations: 34.75 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.597e-05/0.2656, allocations: 8.844 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.2657, allocations: 176.2 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.2658, allocations: 4.375 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.2658, allocations: 4.375 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.266, allocations: 85.64 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.266, allocations: 4 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.266, allocations: 0 / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.266, allocations: 3.938 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.2661, allocations: 35.97 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.2668, allocations: 312.8 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.2669, allocations: 54.48 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.499e-05/0.267, allocations: 36.97 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.267, allocations: 0 / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/0.2672, allocations: 75.38 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.2672, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.000381/0.2676, allocations: 141.6 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.2677, allocations: 59.34 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.423e-05/0.2678, allocations: 121.8 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.2678, allocations: 29.7 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.224e-05/0.2678, allocations: 92.05 kB / 1.068 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.2679, allocations: 15.75 kB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.2679, allocations: 25.7 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.268, allocations: 330.8 kB / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-05/0.2681, allocations: 27.98 kB / 1.068 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.197e-05/0.2682, allocations: 46.55 kB / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.2684, allocations: 74.5 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2684, allocations: 0 / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002439/0.2687, allocations: 117.6 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.2687, allocations: 4 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2687, allocations: 4.328 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2687, allocations: 4 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.593e-05/0.2688, allocations: 11.98 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.2688, allocations: 0 / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.991e-05/0.2689, allocations: 11.97 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.2689, allocations: 7.984 kB / 1.069 GB, free: 9.125 MB / 0.8262 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.0001166/0.2691, allocations: 126.2 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.2691, allocations: 7.906 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.2691, allocations: 4.375 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2691, allocations: 0 / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2691, allocations: 4 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2692, allocations: 4 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005883/0.2698, allocations: 386.4 kB / 1.069 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2698, allocations: 0 / 1.069 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.331e-05/0.2698, allocations: 11.92 kB / 1.069 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.2698, allocations: 0 / 1.069 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.2699, allocations: 0 / 1.069 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.2699, allocations: 3.938 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.2699, allocations: 0 / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.2702, allocations: 219.4 kB / 1.069 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.2702, allocations: 84.95 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.2703, allocations: 4 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.316e-05/0.2704, allocations: 7.922 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.32e-05/0.2704, allocations: 4 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.2704, allocations: 8 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.176e-05/0.2705, allocations: 91.92 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2705, allocations: 0 / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002995/0.2708, allocations: 43.98 kB / 1.07 GB, free: 8.035 MB / 0.8262 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.0007326/0.2715, allocations: 0.7948 MB / 1.07 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002252/0.2718, allocations: 75.88 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.2718, allocations: 4 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.17e-05/0.2719, allocations: 31.98 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.2722, allocations: 11.92 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.2736, allocations: 1.491 MB / 1.072 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.2739, allocations: 0.6961 MB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.642e-05/0.2739, allocations: 7.984 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.65e-05/0.274, allocations: 19.42 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.274, allocations: 0 / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.2919, allocations: 2.608 MB / 1.075 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.24/7.532, allocations: 11.61 kB / 1.075 GB, free: 2.281 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.fmu > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.occ from file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv failed! Error: Could not read variable hea.on in file Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.csv. Warning: Get data of variable hea.on from file Buildings_latest_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