Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.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.CHPs.BaseClasses.Validation.EnergyConversionNormal,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal",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.001086/0.001086, 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.001138/0.001138, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.748/2.748, allocations: 469.4 MB / 0.742 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 64.44 kB / 0.9083 GB, free: 34.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2816, allocations: 159.2 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal): time 0.003423/0.285, allocations: 2.247 MB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.2863, allocations: 0.9518 MB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.949e-05/0.2864, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004977/0.2869, allocations: 199.1 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.287, allocations: 63.5 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.2873, allocations: 115.7 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.2875, allocations: 215.2 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.2877, allocations: 93.67 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.2878, allocations: 87.47 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.288, allocations: 99.42 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.347e-05/0.288, allocations: 20 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.2883, allocations: 155.8 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.2884, allocations: 211.4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.2886, allocations: 262.1 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005683/0.2892, allocations: 0.7121 MB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2892, allocations: 0 / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2892, allocations: 7.938 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.2892, allocations: 0 / 1.069 GB, free: 9.105 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001048/0.2903, allocations: 0.9708 MB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.2903, allocations: 12.03 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.583e-05/0.2904, allocations: 46.73 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005285/0.2909, allocations: 123.8 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000686/0.2916, allocations: 0.5779 MB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2916, allocations: 12.38 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.2917, allocations: 8.375 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.292, allocations: 203.4 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.2921, allocations: 7.938 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.2921, allocations: 4 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.2921, allocations: 4 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004448/0.2925, allocations: 223.8 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.2936, allocations: 0.9254 MB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006354/0.2942, allocations: 318.4 kB / 1.072 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.2945, allocations: 108.9 kB / 1.072 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006933/0.2952, allocations: 237 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.2952, allocations: 38.56 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.2952, allocations: 0 / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0007765/0.296, allocations: 400.5 kB / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.296, allocations: 51.41 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.2971, allocations: 0.9974 MB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.2971, allocations: 29.7 kB / 1.074 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.2974, allocations: 347.9 kB / 1.074 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.2974, allocations: 27.56 kB / 1.074 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.2975, allocations: 29.7 kB / 1.074 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.285e-05/0.2976, allocations: 314 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.2978, allocations: 95.94 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.298, allocations: 122.5 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/0.2984, allocations: 222.7 kB / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2984, allocations: 0 / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005307/0.299, allocations: 324.5 kB / 1.076 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.299, allocations: 8.938 kB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.299, allocations: 3.984 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.299, allocations: 0 / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.2992, allocations: 23.98 kB / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2992, allocations: 0 / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.2994, allocations: 16.05 kB / 1.076 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.2994, allocations: 0 / 1.076 GB, free: 2.066 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * 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 0.0002388/0.2996, allocations: 253.6 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.483e-05/0.2997, allocations: 79 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006283/0.3004, allocations: 332.4 kB / 1.076 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3004, allocations: 0 / 1.076 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3004, allocations: 4 kB / 1.076 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3004, allocations: 0 / 1.076 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004824/0.3009, allocations: 0.5362 MB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3009, allocations: 0 / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.3011, allocations: 19.98 kB / 1.077 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3011, allocations: 0 / 1.077 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.3011, allocations: 0 / 1.077 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.3011, allocations: 7.984 kB / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3011, allocations: 0 / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005335/0.3016, allocations: 414.5 kB / 1.077 GB, free: 368 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3018, allocations: 176.1 kB / 1.077 GB, free: 172 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.3019, allocations: 0 / 1.077 GB, free: 172 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.3021, allocations: 15.98 kB / 1.077 GB, free: 156 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.3021, allocations: 4 kB / 1.077 GB, free: 152 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.3021, allocations: 7.984 kB / 1.077 GB, free: 144 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007849/0.3029, allocations: 0.7137 MB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3029, allocations: 0 / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003302/0.3033, allocations: 75.84 kB / 1.078 GB, free: 15.36 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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.0008478/0.3041, allocations: 0.9579 MB / 1.079 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004685/0.3046, allocations: 224 kB / 1.079 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3046, allocations: 4 kB / 1.079 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.3048, allocations: 103.9 kB / 1.079 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.3052, allocations: 51.86 kB / 1.079 GB, free: 14 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007372/0.3126, allocations: 6.628 MB / 1.086 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.3131, allocations: 0.9362 MB / 1.087 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002153/0.3133, allocations: 81.33 kB / 1.087 GB, free: 6.219 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.3136, allocations: 219.4 kB / 1.087 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of SimCode: time 4.3e-07/0.3136, allocations: 3.938 kB / 1.087 GB, free: 6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02913/0.3427, allocations: 11.62 MB / 1.098 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.346/7.689, allocations: 8.656 kB / 1.098 GB, free: 10.52 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal_res.csv --start-time 0 --stop-time 1500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches