Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ",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.001608/0.001608, allocations: 108 kB / 15.6 MB, free: 132 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.001536/0.001536, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.835/2.835, allocations: 469.8 MB / 0.7424 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 65.8 kB / 0.9087 GB, free: 34.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2582, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ): time 0.001968/0.2602, allocations: 0.5944 MB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002531/0.2628, allocations: 1.718 MB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.963e-05/0.2628, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.436e-05/0.2629, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.74e-05/0.2629, allocations: 3.938 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009394/0.2639, allocations: 311.7 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.264, allocations: 131.8 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.959e-05/0.2641, allocations: 4 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.811e-05/0.2642, allocations: 51.91 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.2643, allocations: 55.92 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.2643, allocations: 4 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004935/0.2648, allocations: 291.6 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.886e-05/0.2649, allocations: 43.89 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.591e-05/0.265, allocations: 47.72 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.2654, allocations: 263.5 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.2654, allocations: 7.938 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.764e-06/0.2654, allocations: 0 / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.2654, allocations: 4 kB / 1.068 GB, free: 10.67 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007289/0.2662, allocations: 439.4 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2662, allocations: 8.031 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.911e-05/0.2663, allocations: 50.67 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.2663, allocations: 12.84 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.2664, allocations: 168.2 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.2665, allocations: 12.38 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.2665, allocations: 15.94 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.2669, allocations: 216.4 kB / 1.068 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.2669, allocations: 4 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.2669, allocations: 4 kB / 1.068 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2669, allocations: 4 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.2672, allocations: 183.7 kB / 1.069 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003423/0.2676, allocations: 282.1 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007932/0.2684, allocations: 411.7 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.2686, allocations: 177.2 kB / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003423/0.269, allocations: 203.2 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.269, allocations: 42.5 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2691, allocations: 0 / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30): time 0.0007173/0.2698, allocations: 389.2 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.2699, allocations: 187.9 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.833e-05/0.27, allocations: 93.86 kB / 1.07 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.27, allocations: 29.7 kB / 1.07 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.687e-05/0.27, allocations: 80.7 kB / 1.07 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.738e-05/0.2701, allocations: 102.5 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.735e-05/0.2702, allocations: 57.69 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2704, allocations: 322.8 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.2705, allocations: 95.98 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.2707, allocations: 145.1 kB / 1.071 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/0.2712, allocations: 266.3 kB / 1.071 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2712, allocations: 0 / 1.071 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004954/0.2717, allocations: 297.5 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2717, allocations: 12 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2717, allocations: 0 / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.2717, allocations: 4 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/0.272, allocations: 55.89 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.272, allocations: 4 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.2721, allocations: 15.84 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.2721, allocations: 15.98 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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.0001207/0.2723, allocations: 137.7 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.95e-05/0.2723, allocations: 11.91 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000638/0.2729, allocations: 360.8 kB / 1.072 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.273, allocations: 4 kB / 1.072 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.273, allocations: 0 / 1.072 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.273, allocations: 4 kB / 1.072 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.2733, allocations: 261.2 kB / 1.072 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2733, allocations: 0 / 1.072 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.2735, allocations: 56.27 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.2735, allocations: 4 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.2736, allocations: 11.98 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.2736, allocations: 12 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2736, allocations: 0 / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005082/0.2741, allocations: 341 kB / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.2742, allocations: 128.8 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.2743, allocations: 8 kB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.2744, allocations: 7.984 kB / 1.073 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.2744, allocations: 19.97 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.2744, allocations: 15.98 kB / 1.073 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.124e-05/0.2745, allocations: 75.28 kB / 1.073 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2745, allocations: 4 kB / 1.073 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003968/0.2749, allocations: 91.98 kB / 1.073 GB, free: 4.293 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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.001219/0.2761, allocations: 0.9844 MB / 1.074 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004513/0.2766, allocations: 264.3 kB / 1.074 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2766, allocations: 0 / 1.074 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.2768, allocations: 148.1 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.277, allocations: 17.25 kB / 1.075 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008164/0.2778, allocations: 436.2 kB / 1.075 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.2782, allocations: 0.7124 MB / 1.076 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000249/0.2784, allocations: 113.4 kB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.827e-05/0.2785, allocations: 47.41 kB / 1.076 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of SimCode: time 3.646e-06/0.2785, allocations: 0 / 1.076 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/0.3041, allocations: 4.067 MB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/7.977, allocations: 13.27 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_EpsilonNTUZ.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.EpsilonNTUZ.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches