Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.00154, allocations: 116.4 kB / 18.45 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001898/0.001898, allocations: 204 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2631, allocations: 50.54 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003836/0.267, allocations: 2.764 MB / 412.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2683, allocations: 0.8529 MB / 413.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.2685, allocations: 7.938 kB / 413.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002673/0.2688, allocations: 67.41 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002916/0.2691, allocations: 138.9 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.2693, allocations: 91.75 kB / 413.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.2698, allocations: 442.3 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.27, allocations: 99.34 kB / 414.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.2702, allocations: 159.5 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.2704, allocations: 179.2 kB / 414.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.769e-05/0.2705, allocations: 36 kB / 414.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.42e-05/0.2706, allocations: 36 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.169e-05/0.2706, allocations: 75.73 kB / 414.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.2708, allocations: 187.1 kB / 415 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.2712, allocations: 451.5 kB / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2712, allocations: 0 / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2712, allocations: 4 kB / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2713, allocations: 0 / 415.5 MB, free: 12 MB / 334.1 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.001118/0.2724, allocations: 0.6679 MB / 416.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.2724, allocations: 12.03 kB / 416.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.212e-05/0.2725, allocations: 44.47 kB / 416.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.273, allocations: 303.4 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.172e-05/0.2731, allocations: 46.7 kB / 416.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.802e-05/0.2731, allocations: 24.36 kB / 416.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.2736, allocations: 321.6 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.2737, allocations: 0 / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.2737, allocations: 15.98 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.2737, allocations: 4 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003959/0.2741, allocations: 205.6 kB / 417.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.2754, allocations: 0.7985 MB / 417.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000531/0.276, allocations: 278.9 kB / 418.2 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.2762, allocations: 120.8 kB / 418.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.2762, allocations: 4 kB / 418.3 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.2763, allocations: 42.59 kB / 418.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.302e-06/0.2763, allocations: 4 kB / 418.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001037/0.2773, allocations: 487.1 kB / 418.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/0.2775, allocations: 320.4 kB / 419.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.2778, allocations: 287 kB / 419.4 MB, free: 7.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.2778, allocations: 33.7 kB / 419.4 MB, free: 7.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.278, allocations: 164.8 kB / 419.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.984e-05/0.278, allocations: 106.4 kB / 419.7 MB, free: 7.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.2782, allocations: 69.69 kB / 419.8 MB, free: 7.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2783, allocations: 334.8 kB / 420.1 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.2785, allocations: 95.89 kB / 420.2 MB, free: 6.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.2788, allocations: 212.2 kB / 420.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000448/0.2793, allocations: 268.4 kB / 420.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2793, allocations: 3.938 kB / 420.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006056/0.2799, allocations: 361.6 kB / 421 MB, free: 6.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.2799, allocations: 36.36 kB / 421 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.28, allocations: 96 / 421 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001561/0.2801, allocations: 44.78 kB / 421.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000986/0.2811, allocations: 155.8 kB / 421.2 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003573/0.2847, allocations: 3.232 MB / 424.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.285, allocations: 31.81 kB / 424.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.285, allocations: 15.98 kB / 424.5 MB, free: 2.234 MB / 334.1 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.2852, allocations: 157.7 kB / 424.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.394e-05/0.2853, allocations: 35.62 kB / 424.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.2854, allocations: 35.08 kB / 424.7 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2854, allocations: 8 kB / 424.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.2854, allocations: 0 / 424.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006478/0.286, allocations: 0.6501 MB / 425.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004123/0.2864, allocations: 393.2 kB / 425.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2865, allocations: 0 / 425.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.2877, allocations: 207.7 kB / 426 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.455e-05/0.2878, allocations: 20.84 kB / 426 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.2879, allocations: 8 kB / 426 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003152/0.291, allocations: 3.034 MB / 429 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.291, allocations: 4.094 kB / 429 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008417/0.2919, allocations: 0.5165 MB / 429.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.292, allocations: 140.7 kB / 429.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.2921, allocations: 8 kB / 429.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002619/0.2924, allocations: 23.92 kB / 429.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.478e-05/0.2925, allocations: 23.97 kB / 429.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.2925, allocations: 8 kB / 429.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.2927, allocations: 198 kB / 430 MB, free: 12.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2927, allocations: 0 / 430 MB, free: 12.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004145/0.2931, allocations: 107.9 kB / 430.1 MB, free: 12.2 MB / 350.1 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001324/0.2932, allocations: 110.6 kB / 430.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.2948, allocations: 0.5447 MB / 430.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2948, allocations: 0 / 430.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.2962, allocations: 390.4 kB / 431.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.2967, allocations: 88.53 kB / 431.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.2984, allocations: 0.8874 MB / 432.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.2988, allocations: 0.776 MB / 432.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.57e-05/0.2988, allocations: 31.42 kB / 432.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2989, allocations: 0 / 432.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of Templates: time 0.009638/0.3085, allocations: 6.821 MB / 439.7 MB, free: 2.488 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches