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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.007842/0.007842, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.00182/0.00182, allocations: 196.3 kB / 16.67 MB, free: 5.934 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.711/2.711, allocations: 469.4 MB / 0.7421 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.89 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2636, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002287/0.2659, allocations: 1.479 MB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.267, allocations: 0.7284 MB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.2671, allocations: 0 / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.495e-05/0.2671, allocations: 7.938 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.275e-05/0.2672, allocations: 15.84 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.2677, allocations: 127.5 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.908e-05/0.2678, allocations: 75.78 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.909e-05/0.2679, allocations: 11.94 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.568e-05/0.268, allocations: 35.91 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.059e-05/0.268, allocations: 39.84 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.268, allocations: 8 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001694/0.2682, allocations: 95.84 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.468e-05/0.2683, allocations: 19.91 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.566e-05/0.2683, allocations: 35.84 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.2685, allocations: 139.5 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2685, allocations: 3.938 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2685, allocations: 0 / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.2685, allocations: 0 / 1.222 GB, free: 11.85 MB / 0.9825 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.0005626/0.2691, allocations: 420.7 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2691, allocations: 12.03 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.604e-05/0.2692, allocations: 42.73 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.2692, allocations: 8.891 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.924e-05/0.2693, allocations: 168.3 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.2694, allocations: 384 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.2694, allocations: 8.375 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.2696, allocations: 69.78 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.2696, allocations: 3.938 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.2696, allocations: 4 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.2696, allocations: 0 / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.2697, allocations: 39.91 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005442/0.2703, allocations: 324.7 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.2704, allocations: 46.56 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.172e-05/0.2705, allocations: 36.91 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.2705, allocations: 0 / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.2707, allocations: 83.31 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.2707, allocations: 0 / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0003778/0.2711, allocations: 133.7 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.2712, allocations: 63.41 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.2713, allocations: 125.8 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.2713, allocations: 25.7 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.146e-05/0.2713, allocations: 92.14 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.2714, allocations: 11.89 kB / 1.224 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.833e-05/0.2714, allocations: 29.7 kB / 1.224 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.855e-05/0.2715, allocations: 322.8 kB / 1.224 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-05/0.2716, allocations: 31.92 kB / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.032e-05/0.2717, allocations: 46.55 kB / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.2719, allocations: 78.84 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.2719, allocations: 0 / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002425/0.2721, allocations: 109.6 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.2721, allocations: 5.875 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.2722, allocations: 3.984 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.2722, allocations: 11.88 kB / 1.225 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.544e-05/0.2723, allocations: 8 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.2723, allocations: 0 / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.236e-05/0.2724, allocations: 15.92 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.2724, allocations: 4 kB / 1.225 GB, free: 9.258 MB / 0.9825 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.315e-05/0.2725, allocations: 121.8 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.2725, allocations: 7.953 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.2725, allocations: 12.36 kB / 1.225 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.2725, allocations: 4 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2725, allocations: 0 / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.2726, allocations: 0 / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004419/0.273, allocations: 382.4 kB / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.273, allocations: 4 kB / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.384e-05/0.2731, allocations: 11.98 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2731, allocations: 0 / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.2731, allocations: 4 kB / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.2731, allocations: 7.922 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2731, allocations: 4 kB / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/0.2734, allocations: 203.4 kB / 1.225 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.955e-05/0.2734, allocations: 89.06 kB / 1.226 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.2735, allocations: 4 kB / 1.226 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.428e-05/0.2736, allocations: 11.92 kB / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.2736, allocations: 0 / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.2736, allocations: 11.92 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.775e-05/0.2737, allocations: 95.86 kB / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2737, allocations: 0 / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002883/0.274, allocations: 39.88 kB / 1.226 GB, free: 8.156 MB / 0.9825 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.000693/0.2747, allocations: 0.8033 MB / 1.226 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002283/0.2749, allocations: 75.95 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2749, allocations: 4 kB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.521e-05/0.275, allocations: 35.97 kB / 1.227 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.2753, allocations: 7.938 kB / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.2767, allocations: 1.504 MB / 1.228 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.277, allocations: 0.6846 MB / 1.229 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.538e-05/0.277, allocations: 4 kB / 1.229 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.488e-05/0.2771, allocations: 27.36 kB / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2771, allocations: 0 / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0176/0.2947, allocations: 2.656 MB / 1.231 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.08/7.375, allocations: 6.109 kB / 1.231 GB, free: 2.359 MB / 0.9825 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