Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 176.5 kB / 17.4 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.3 MB / 241.4 MB, free: 9.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007773/0.0007773, allocations: 113.1 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002749/0.000275, allocations: 8 kB / 352.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1799, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0856/0.2655, allocations: 79.34 MB / 482.1 MB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.2658, allocations: 83.94 kB / 482.2 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01562/0.2814, allocations: 6.089 MB / 488.2 MB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2814, allocations: 0 / 488.2 MB, free: 10.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.2814, allocations: 4 kB / 488.2 MB, free: 10.8 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000829/0.2823, allocations: 0.6289 MB / 488.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.2823, allocations: 8.031 kB / 488.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.347e-05/0.2824, allocations: 40.56 kB / 488.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.2828, allocations: 295.5 kB / 489.2 MB, free: 9.738 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-05/0.2829, allocations: 46.69 kB / 489.3 MB, free: 9.688 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.2829, allocations: 28.28 kB / 489.3 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005123/0.2834, allocations: 325.2 kB / 489.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2834, allocations: 3.938 kB / 489.6 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.2835, allocations: 16 kB / 489.6 MB, free: 9.285 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.2835, allocations: 4 kB / 489.6 MB, free: 9.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004065/0.2839, allocations: 205.6 kB / 489.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.2852, allocations: 0.8104 MB / 490.6 MB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.2858, allocations: 287 kB / 490.9 MB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.286, allocations: 120.8 kB / 491 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.286, allocations: 8 kB / 491 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.2861, allocations: 38.56 kB / 491.1 MB, free: 7.754 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 3.958e-06/0.2861, allocations: 7.922 kB / 491.1 MB, free: 7.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001001/0.2871, allocations: 495.6 kB / 491.6 MB, free: 7.234 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.2873, allocations: 320.4 kB / 491.9 MB, free: 6.848 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000269/0.2875, allocations: 279 kB / 492.2 MB, free: 6.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.2876, allocations: 33.7 kB / 492.2 MB, free: 6.531 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.2877, allocations: 164.7 kB / 492.4 MB, free: 6.367 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.2878, allocations: 102.5 kB / 492.5 MB, free: 6.266 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/0.2878, allocations: 7.938 kB / 492.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2879, allocations: 342.8 kB / 492.8 MB, free: 5.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.2881, allocations: 99.95 kB / 492.9 MB, free: 5.816 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/0.2884, allocations: 205.5 kB / 493.1 MB, free: 5.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.2889, allocations: 275.5 kB / 493.4 MB, free: 5.285 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2889, allocations: 3.938 kB / 493.4 MB, free: 5.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006187/0.2895, allocations: 373.6 kB / 493.7 MB, free: 4.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.2895, allocations: 29.7 kB / 493.8 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2896, allocations: 12.09 kB / 493.8 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001342/0.2897, allocations: 36.83 kB / 493.8 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.2907, allocations: 207.8 kB / 494 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003342/0.2941, allocations: 3.07 MB / 497.1 MB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.2943, allocations: 32.02 kB / 497.1 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.2943, allocations: 15.98 kB / 497.1 MB, free: 1.227 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001615/0.2945, allocations: 153.8 kB / 497.3 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.2946, allocations: 35.62 kB / 497.3 MB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.203e-05/0.2946, allocations: 43.02 kB / 497.4 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.2947, allocations: 4 kB / 497.4 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.2947, allocations: 3.938 kB / 497.4 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006523/0.2953, allocations: 0.6555 MB / 498 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.2958, allocations: 385.2 kB / 498.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2958, allocations: 0 / 498.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.2971, allocations: 255.7 kB / 498.6 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.054e-05/0.2972, allocations: 20.94 kB / 498.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.2972, allocations: 11.94 kB / 498.7 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00291/0.3001, allocations: 2.903 MB / 0.4898 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3001, allocations: 8.062 kB / 0.4898 GB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008183/0.3009, allocations: 0.5275 MB / 0.4903 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.3011, allocations: 132.7 kB / 0.4905 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.3011, allocations: 8 kB / 0.4905 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.3014, allocations: 16.22 kB / 0.4905 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.29e-05/0.3014, allocations: 23.97 kB / 0.4905 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.3015, allocations: 15.98 kB / 0.4905 GB, free: 11.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001908/0.3017, allocations: 209.8 kB / 0.4907 GB, free: 11.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3017, allocations: 96 / 0.4907 GB, free: 11.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004333/0.3021, allocations: 115.8 kB / 0.4908 GB, free: 11.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001653/0.3023, allocations: 123.2 kB / 0.491 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.3038, allocations: 0.5877 MB / 0.4915 GB, free: 10.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3038, allocations: 0 / 0.4915 GB, free: 10.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/0.3053, allocations: 454.3 kB / 0.492 GB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000515/0.3058, allocations: 80.55 kB / 0.492 GB, free: 9.977 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.3074, allocations: 1.023 MB / 0.493 GB, free: 8.926 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.3078, allocations: 0.784 MB / 0.4938 GB, free: 8.117 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.3079, allocations: 30.97 kB / 0.4938 GB, free: 8.086 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.264e-05/0.308, allocations: 31.42 kB / 0.4939 GB, free: 8.055 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.308, allocations: 0 / 0.4939 GB, free: 8.055 MB / 378.7 MB Notification: Performance of Templates: time 0.009369/0.3174, allocations: 5.598 MB / 0.4993 GB, free: 2.551 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches