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.001432/0.001432, allocations: 108 kB / 15.6 MB, free: 128 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.001566/0.001566, allocations: 196.8 kB / 16.53 MB, free: 6.672 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.363/1.363, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.654/2.654, allocations: 437 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 71.89 kB / 0.8693 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6463/0.6483, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.003102/0.6515, allocations: 1.476 MB / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001143/0.6527, allocations: 0.7362 MB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.691e-05/0.6527, allocations: 0 / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.051e-05/0.6528, allocations: 7.922 kB / 1.02 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.715e-05/0.6528, allocations: 15.86 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.6533, allocations: 119.6 kB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.418e-05/0.6534, allocations: 79.72 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.144e-05/0.6535, allocations: 19.98 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.277e-05/0.6536, allocations: 31.98 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.141e-05/0.6537, allocations: 35.84 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.6537, allocations: 8 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.6539, allocations: 95.77 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.519e-05/0.6539, allocations: 23.91 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.464e-05/0.654, allocations: 27.86 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.6542, allocations: 141.9 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.6542, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6542, allocations: 4 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.6542, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.7794 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.0006112/0.6548, allocations: 424.8 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.6549, allocations: 8.031 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.6549, allocations: 30.75 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/0.655, allocations: 12.83 kB / 1.021 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.6551, allocations: 168.3 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.6551, allocations: 8.375 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.6551, allocations: 8.375 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001993/0.6553, allocations: 69.77 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.6554, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.6554, allocations: 8 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.6554, allocations: 0 / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.6555, allocations: 35.97 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005751/0.6561, allocations: 320.6 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.6562, allocations: 54.55 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.565e-05/0.6563, allocations: 36.95 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.6564, allocations: 3.938 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.6566, allocations: 75.38 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.6566, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000379/0.657, allocations: 145.5 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.657, allocations: 55.41 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.12e-05/0.6571, allocations: 117.8 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.6571, allocations: 33.7 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/0.6572, allocations: 84.14 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.6572, allocations: 27.73 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.6573, allocations: 21.72 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.6574, allocations: 326.8 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.484e-05/0.6575, allocations: 23.98 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.076e-05/0.6576, allocations: 50.55 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.6577, allocations: 70.81 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.6578, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002288/0.658, allocations: 121.5 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.658, allocations: 8 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.658, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.658, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.472e-05/0.6581, allocations: 16.05 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.6582, allocations: 7.938 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.903e-05/0.6582, allocations: 15.83 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.6583, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 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.406e-05/0.6583, allocations: 125 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.6584, allocations: 4 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.372e-05/0.6584, allocations: 12.31 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.6584, allocations: 0 / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.6584, allocations: 11.98 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6584, allocations: 0 / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004032/0.6588, allocations: 382.3 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.6588, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.73e-05/0.6589, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.6589, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.6589, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.6589, allocations: 3.938 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.6589, allocations: 4 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.6592, allocations: 211.5 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.6592, allocations: 81.02 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.6593, allocations: 3.938 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.952e-05/0.6594, allocations: 11.92 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.6594, allocations: 4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.6594, allocations: 3.984 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.198e-05/0.6595, allocations: 99.28 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6595, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002911/0.6598, allocations: 39.92 kB / 1.023 GB, free: 11.97 MB / 0.7794 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.000734/0.6605, allocations: 0.8024 MB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002419/0.6608, allocations: 68.22 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6608, allocations: 0 / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.6609, allocations: 48.05 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.6612, allocations: 5.469 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.6627, allocations: 1.493 MB / 1.026 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.6629, allocations: 0.6846 MB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.509e-05/0.6629, allocations: 7.984 kB / 1.026 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.591e-05/0.663, allocations: 19.44 kB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.663, allocations: 3.938 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.6876, allocations: 2.619 MB / 1.029 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.143/7.831, allocations: 18.2 kB / 1.029 GB, free: 6.211 MB / 0.7794 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