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.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.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.008291/0.008291, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002007/0.002007, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.632/2.632, allocations: 469.4 MB / 0.7422 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.91 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2731, allocations: 159.1 MB / 1.22 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible): time 0.003415/0.2766, allocations: 2.398 MB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001958/0.2786, allocations: 1.39 MB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.2788, allocations: 4 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005819/0.2794, allocations: 206.9 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.2795, allocations: 79.3 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.2799, allocations: 119.7 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.2802, allocations: 326.8 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.2803, allocations: 52.56 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.2806, allocations: 135.5 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.2808, allocations: 187.4 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.795e-05/0.2809, allocations: 32 kB / 1.225 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.281, allocations: 71.97 kB / 1.225 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.2812, allocations: 119.6 kB / 1.225 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.2813, allocations: 179 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00048/0.2818, allocations: 490.1 kB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.2818, allocations: 4 kB / 1.225 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2818, allocations: 0 / 1.225 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.2818, allocations: 0 / 1.225 GB, free: 8.867 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001242/0.2831, allocations: 0.7158 MB / 1.226 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2831, allocations: 12.03 kB / 1.226 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.629e-05/0.2832, allocations: 46.73 kB / 1.226 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008898/0.2841, allocations: 148.5 kB / 1.226 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004488/0.2846, allocations: 354.5 kB / 1.227 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.2847, allocations: 88.19 kB / 1.227 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.2847, allocations: 12.38 kB / 1.227 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007501/0.2855, allocations: 299.2 kB / 1.227 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.2855, allocations: 0 / 1.227 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.2855, allocations: 8 kB / 1.227 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.2856, allocations: 0 / 1.227 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.2867, allocations: 420.4 kB / 1.227 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001616/0.2883, allocations: 0.8666 MB / 1.228 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006854/0.289, allocations: 270.4 kB / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005584/0.2896, allocations: 220.7 kB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.2896, allocations: 0 / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.2897, allocations: 38.5 kB / 1.229 GB, free: 5.227 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.2897, allocations: 4 kB / 1.229 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001851/0.2915, allocations: 0.6437 MB / 1.229 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.2916, allocations: 63.33 kB / 1.229 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004505/0.292, allocations: 417.7 kB / 1.23 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.2921, allocations: 29.7 kB / 1.23 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.2922, allocations: 188 kB / 1.23 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.44e-05/0.2923, allocations: 55.48 kB / 1.23 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.2924, allocations: 45.69 kB / 1.23 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2925, allocations: 342.8 kB / 1.23 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005603/0.2931, allocations: 195.8 kB / 1.231 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005791/0.2937, allocations: 235.2 kB / 1.231 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.2947, allocations: 370.2 kB / 1.231 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2948, allocations: 0 / 1.231 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001258/0.296, allocations: 470.8 kB / 1.232 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.296, allocations: 4 kB / 1.232 GB, free: 2.145 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.2961, allocations: 0 / 1.232 GB, free: 2.145 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2961, allocations: 0 / 1.232 GB, free: 2.145 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/0.2966, allocations: 67.8 kB / 1.232 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2966, allocations: 0 / 1.232 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.297, allocations: 43.84 kB / 1.232 GB, free: 2.035 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.297, allocations: 7.984 kB / 1.232 GB, free: 2.027 MB / 0.9825 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.0001801/0.2972, allocations: 165.8 kB / 1.232 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.923e-05/0.2973, allocations: 35.77 kB / 1.232 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.444e-05/0.2973, allocations: 47.53 kB / 1.232 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2973, allocations: 7.938 kB / 1.232 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.2974, allocations: 0 / 1.232 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.2974, allocations: 4.047 kB / 1.232 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/0.2979, allocations: 486.9 kB / 1.232 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2979, allocations: 0 / 1.232 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.2983, allocations: 63.92 kB / 1.233 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2984, allocations: 0 / 1.233 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.2984, allocations: 8 kB / 1.233 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2984, allocations: 3.938 kB / 1.233 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2984, allocations: 0 / 1.233 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.2996, allocations: 0.5554 MB / 1.233 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.887e-05/0.2998, allocations: 120.8 kB / 1.233 GB, free: 468 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.954e-05/0.2998, allocations: 0 / 1.233 GB, free: 468 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/0.3002, allocations: 43.88 kB / 1.233 GB, free: 424 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.3003, allocations: 23.97 kB / 1.233 GB, free: 400 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.3003, allocations: 8 kB / 1.233 GB, free: 392 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003149/0.3006, allocations: 307.1 kB / 1.234 GB, free: 84 kB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3007, allocations: 3.938 kB / 1.234 GB, free: 80 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003365/0.301, allocations: 67.95 kB / 1.234 GB, free: 12 kB / 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: 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.001532/0.3025, allocations: 1.099 MB / 1.235 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001246/0.3038, allocations: 437.8 kB / 1.235 GB, free: 14.46 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3038, allocations: 0 / 1.235 GB, free: 14.46 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005918/0.3044, allocations: 231.8 kB / 1.235 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.3048, allocations: 47.55 kB / 1.235 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006529/0.3114, allocations: 4.12 MB / 1.239 GB, free: 9.988 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.3117, allocations: 0.7948 MB / 1.24 GB, free: 9.168 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002844/0.312, allocations: 58.27 kB / 1.24 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.3123, allocations: 103.4 kB / 1.24 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of SimCode: time 7.91e-07/0.3123, allocations: 0 / 1.24 GB, free: 9.012 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.3378, allocations: 7.925 MB / 1.248 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.562/7.9, allocations: 7.922 kB / 1.248 GB, free: 1.273 MB / 0.9981 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