Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.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.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible",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.001652/0.001652, 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.001972/0.001972, allocations: 194.3 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.51/2.51, allocations: 437.1 MB / 0.7104 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.89 kB / 0.8694 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5299/0.5312, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible): time 0.003187/0.5344, allocations: 2.379 MB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001656/0.5361, allocations: 1.41 MB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.5362, allocations: 4 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004829/0.5367, allocations: 194.9 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.5369, allocations: 83.28 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.5371, allocations: 123.7 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.5374, allocations: 322.8 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.5375, allocations: 48.72 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.5377, allocations: 131.5 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.5379, allocations: 187.3 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.538, allocations: 32 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.5381, allocations: 67.97 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.5383, allocations: 123.6 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.5384, allocations: 175 kB / 1.023 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004029/0.5388, allocations: 488.7 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.5388, allocations: 0 / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.002e-06/0.5388, allocations: 0 / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.5389, allocations: 0 / 1.023 GB, free: 12.79 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001092/0.54, allocations: 0.7004 MB / 1.024 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.54, allocations: 15.97 kB / 1.024 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.863e-05/0.54, allocations: 50.73 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008542/0.5409, allocations: 140.3 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.5413, allocations: 354.2 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.597e-05/0.5414, allocations: 84.19 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.333e-05/0.5414, allocations: 12.38 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007164/0.5422, allocations: 304.4 kB / 1.025 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.5422, allocations: 3.938 kB / 1.025 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.5422, allocations: 4 kB / 1.025 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.5422, allocations: 4 kB / 1.025 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.5434, allocations: 417.3 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.5448, allocations: 0.8668 MB / 1.026 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006566/0.5455, allocations: 266.3 kB / 1.026 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005522/0.5461, allocations: 220.7 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.5461, allocations: 4 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.5461, allocations: 34.56 kB / 1.026 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.5461, allocations: 0 / 1.026 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18): time 0.001744/0.5479, allocations: 0.6471 MB / 1.027 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.5479, allocations: 55.34 kB / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.5483, allocations: 425.6 kB / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.5484, allocations: 29.7 kB / 1.027 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.5485, allocations: 184 kB / 1.028 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.779e-05/0.5486, allocations: 59.11 kB / 1.028 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.5487, allocations: 37.7 kB / 1.028 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.5488, allocations: 346.8 kB / 1.028 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000543/0.5493, allocations: 199.8 kB / 1.028 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005634/0.5499, allocations: 232.4 kB / 1.028 GB, free: 6.926 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.5509, allocations: 369.9 kB / 1.029 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.551, allocations: 0 / 1.029 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001186/0.5521, allocations: 470.8 kB / 1.029 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.5522, allocations: 8 kB / 1.029 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.5522, allocations: 0 / 1.029 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/0.5522, allocations: 0 / 1.029 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/0.5527, allocations: 63.86 kB / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.5527, allocations: 0 / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003372/0.553, allocations: 47.8 kB / 1.029 GB, free: 5.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.553, allocations: 11.98 kB / 1.029 GB, free: 5.969 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001613/0.5532, allocations: 161.8 kB / 1.03 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.108e-05/0.5533, allocations: 31.62 kB / 1.03 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.703e-05/0.5533, allocations: 47.58 kB / 1.03 GB, free: 5.719 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.5534, allocations: 3.938 kB / 1.03 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.5534, allocations: 0 / 1.03 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.5534, allocations: 7.984 kB / 1.03 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004725/0.5539, allocations: 478.8 kB / 1.03 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.5539, allocations: 4 kB / 1.03 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004458/0.5543, allocations: 63.86 kB / 1.03 GB, free: 5.125 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.5543, allocations: 0 / 1.03 GB, free: 5.125 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.5544, allocations: 4 kB / 1.03 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.5544, allocations: 3.938 kB / 1.03 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.5544, allocations: 0 / 1.03 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.5556, allocations: 0.5507 MB / 1.031 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.5556, allocations: 120.6 kB / 1.031 GB, free: 4.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.829e-05/0.5557, allocations: 4 kB / 1.031 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000362/0.5561, allocations: 43.88 kB / 1.031 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.71e-05/0.5562, allocations: 23.97 kB / 1.031 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.5562, allocations: 8 kB / 1.031 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002901/0.5565, allocations: 307.1 kB / 1.031 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5565, allocations: 0 / 1.031 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003176/0.5568, allocations: 60 kB / 1.031 GB, free: 3.98 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: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.001432/0.5583, allocations: 1.104 MB / 1.032 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001163/0.5594, allocations: 447.6 kB / 1.033 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5594, allocations: 0 / 1.033 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005875/0.56, allocations: 231.8 kB / 1.033 GB, free: 2.188 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.5604, allocations: 53.98 kB / 1.033 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.5666, allocations: 4.175 MB / 1.037 GB, free: 13.88 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.567, allocations: 0.7947 MB / 1.038 GB, free: 13.06 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002622/0.5672, allocations: 62.27 kB / 1.038 GB, free: 13 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.5675, allocations: 103.4 kB / 1.038 GB, free: 12.91 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.5675, allocations: 0 / 1.038 GB, free: 12.91 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.5914, allocations: 7.811 MB / 1.046 GB, free: 5.27 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.166/7.757, allocations: 14.66 kB / 1.046 GB, free: 5.262 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible_res.csv --start-time 0 --stop-time 2600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.04 Buildings_10_Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible.fmu > Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches