Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,fileNamePrefix="Buildings_latest_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.001568/0.001568, 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.001253/0.001253, allocations: 194.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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.662/2.662, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 62.52 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2442, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible): time 0.003428/0.2477, allocations: 2.388 MB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001863/0.2496, allocations: 1.39 MB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.2498, allocations: 4 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006247/0.2504, allocations: 210.8 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.2506, allocations: 75.28 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003325/0.2509, allocations: 115.7 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003279/0.2513, allocations: 334.7 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2514, allocations: 40.73 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.2516, allocations: 135.5 kB / 1.068 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.2518, allocations: 175.4 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.079e-05/0.2519, allocations: 32 kB / 1.068 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.252, allocations: 79.89 kB / 1.069 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.2522, allocations: 115.7 kB / 1.069 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.2523, allocations: 175.1 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.2528, allocations: 490.7 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2528, allocations: 0 / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2528, allocations: 0 / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.2528, allocations: 4 kB / 1.069 GB, free: 8.781 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001206/0.254, allocations: 0.7043 MB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2541, allocations: 8.031 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.979e-05/0.2541, allocations: 58.66 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009125/0.255, allocations: 148.3 kB / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.2554, allocations: 350.2 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.2556, allocations: 84.19 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/0.2556, allocations: 12.38 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007279/0.2564, allocations: 303.2 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.2564, allocations: 4 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.2564, allocations: 4 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2564, allocations: 0 / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.2576, allocations: 420.3 kB / 1.071 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.2592, allocations: 0.8589 MB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006759/0.2599, allocations: 274.4 kB / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005487/0.2604, allocations: 216.7 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.2605, allocations: 3.984 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.2605, allocations: 34.56 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.2605, allocations: 4 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001787/0.2623, allocations: 0.6509 MB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.2623, allocations: 59.34 kB / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004402/0.2628, allocations: 421.6 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.2628, allocations: 29.7 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.263, allocations: 180.1 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.151e-05/0.263, allocations: 59.05 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.2631, allocations: 37.7 kB / 1.074 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2633, allocations: 350.8 kB / 1.074 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005462/0.2638, allocations: 195.8 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005644/0.2644, allocations: 233 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.2654, allocations: 374.2 kB / 1.075 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2654, allocations: 0 / 1.075 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001188/0.2666, allocations: 460.9 kB / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.2666, allocations: 4 kB / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.2667, allocations: 0 / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.2667, allocations: 0 / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004821/0.2672, allocations: 75.8 kB / 1.076 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.2672, allocations: 4 kB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.2675, allocations: 31.86 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.2676, allocations: 8 kB / 1.076 GB, free: 1.969 MB / 0.8262 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.0001653/0.2677, allocations: 166.3 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.6e-05/0.2678, allocations: 35.53 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.643e-05/0.2679, allocations: 47.58 kB / 1.076 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.2679, allocations: 7.938 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2679, allocations: 0 / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2679, allocations: 0 / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004738/0.2684, allocations: 466.9 kB / 1.076 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2684, allocations: 0 / 1.076 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.2689, allocations: 71.8 kB / 1.076 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.2689, allocations: 0 / 1.076 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.2689, allocations: 7.984 kB / 1.076 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2689, allocations: 11.88 kB / 1.076 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2689, allocations: 0 / 1.076 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.2701, allocations: 0.5477 MB / 1.077 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-05/0.2702, allocations: 120.6 kB / 1.077 GB, free: 420 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.482e-05/0.2703, allocations: 11.98 kB / 1.077 GB, free: 408 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.2707, allocations: 31.89 kB / 1.077 GB, free: 376 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.2708, allocations: 27.97 kB / 1.077 GB, free: 348 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.2708, allocations: 7.984 kB / 1.077 GB, free: 340 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002957/0.2711, allocations: 315.1 kB / 1.077 GB, free: 24 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2711, allocations: 0 / 1.077 GB, free: 24 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003418/0.2715, allocations: 68.05 kB / 1.078 GB, free: 15.95 MB / 0.8419 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.001443/0.2729, allocations: 1.09 MB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001181/0.2741, allocations: 451.6 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2741, allocations: 0 / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005953/0.2747, allocations: 237.5 kB / 1.079 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.2751, allocations: 53.42 kB / 1.079 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006313/0.2815, allocations: 4.165 MB / 1.083 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.2818, allocations: 0.7948 MB / 1.084 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002748/0.2821, allocations: 58.27 kB / 1.084 GB, free: 9 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.2823, allocations: 103.4 kB / 1.084 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.2823, allocations: 3.938 kB / 1.084 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.3055, allocations: 7.814 MB / 1.092 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.064/8.37, allocations: 4.188 kB / 1.092 GB, free: 1.254 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches