Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001424/0.001424, allocations: 120.4 kB / 18.45 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 207.8 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.422/1.422, allocations: 227.7 MB / 247.9 MB, free: 10.25 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 75.86 kB / 359.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2518, allocations: 50.54 MB / 410.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004153/0.256, allocations: 2.756 MB / 413 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.2574, allocations: 0.8607 MB / 413.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.2575, allocations: 4 kB / 413.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002577/0.2578, allocations: 71.41 kB / 413.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002863/0.2581, allocations: 134.9 kB / 414 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/0.2583, allocations: 95.81 kB / 414.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005374/0.2588, allocations: 438.3 kB / 414.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.259, allocations: 67.38 kB / 414.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.2592, allocations: 159.4 kB / 414.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002552/0.2595, allocations: 179.2 kB / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.209e-05/0.2595, allocations: 36 kB / 415 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.234e-05/0.2596, allocations: 32 kB / 415 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.268e-05/0.2597, allocations: 79.73 kB / 415.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.2599, allocations: 191.1 kB / 415.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005137/0.2604, allocations: 446 kB / 415.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2604, allocations: 8 kB / 415.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2604, allocations: 0 / 415.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.2604, allocations: 0 / 415.7 MB, free: 11.93 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.001257/0.2617, allocations: 0.6871 MB / 416.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.2617, allocations: 8.031 kB / 416.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.2618, allocations: 44.7 kB / 416.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.2623, allocations: 307.6 kB / 416.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.2624, allocations: 42.7 kB / 416.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.2625, allocations: 24.38 kB / 416.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005768/0.263, allocations: 325.5 kB / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.2631, allocations: 0 / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.2631, allocations: 12 kB / 417.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.2631, allocations: 11.98 kB / 417.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.2636, allocations: 201.6 kB / 417.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.2651, allocations: 0.7988 MB / 418.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006036/0.2657, allocations: 258.9 kB / 418.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.2659, allocations: 100.8 kB / 418.5 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.2659, allocations: 4 kB / 418.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.2659, allocations: 42.56 kB / 418.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.403e-06/0.2659, allocations: 0 / 418.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001149/0.2671, allocations: 487.4 kB / 419 MB, free: 8.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002119/0.2673, allocations: 328.4 kB / 419.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.2676, allocations: 279 kB / 419.6 MB, free: 7.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.2677, allocations: 33.7 kB / 419.6 MB, free: 7.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.2678, allocations: 176.8 kB / 419.8 MB, free: 7.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.268, allocations: 107.1 kB / 419.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.2681, allocations: 69.69 kB / 420 MB, free: 7.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.2683, allocations: 334.8 kB / 420.3 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.2685, allocations: 91.95 kB / 420.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/0.2688, allocations: 216.2 kB / 420.6 MB, free: 6.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005121/0.2693, allocations: 264 kB / 420.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2693, allocations: 0 / 420.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000697/0.27, allocations: 373.7 kB / 421.2 MB, free: 5.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.2701, allocations: 37.8 kB / 421.3 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.2701, allocations: 0 / 421.3 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.2703, allocations: 36.84 kB / 421.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.2713, allocations: 163.8 kB / 421.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004242/0.2755, allocations: 3.23 MB / 424.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.2758, allocations: 31.92 kB / 424.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.2759, allocations: 8.094 kB / 424.7 MB, free: 2.184 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.0002273/0.2761, allocations: 169.6 kB / 424.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.473e-05/0.2762, allocations: 35.77 kB / 424.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.961e-05/0.2763, allocations: 43.08 kB / 425 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2763, allocations: 4 kB / 425 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2763, allocations: 0 / 425 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007931/0.2771, allocations: 0.6462 MB / 425.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005305/0.2776, allocations: 385.2 kB / 426 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2776, allocations: 4 kB / 426 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.279, allocations: 207.7 kB / 426.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-05/0.2791, allocations: 24.84 kB / 426.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.2791, allocations: 8 kB / 426.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/0.2828, allocations: 3.045 MB / 429.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2828, allocations: 0 / 429.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009321/0.2837, allocations: 0.513 MB / 429.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.2839, allocations: 132.8 kB / 429.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.2839, allocations: 8 kB / 429.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.2842, allocations: 23.98 kB / 430 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.559e-05/0.2843, allocations: 31.89 kB / 430 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.2843, allocations: 8 kB / 430 MB, free: 12.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.2845, allocations: 198 kB / 430.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2845, allocations: 4 kB / 430.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004853/0.285, allocations: 99.89 kB / 430.3 MB, free: 12.13 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.0001558/0.2852, allocations: 116.4 kB / 430.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.2868, allocations: 0.5213 MB / 430.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.2868, allocations: 4 kB / 430.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.2883, allocations: 386.3 kB / 431.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005731/0.2889, allocations: 88.48 kB / 431.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.2908, allocations: 0.8639 MB / 432.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.2912, allocations: 0.776 MB / 433 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.2914, allocations: 38.95 kB / 433.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.378e-05/0.2914, allocations: 27.44 kB / 433.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2914, allocations: 4 kB / 433.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of Templates: time 0.01279/0.3042, allocations: 6.317 MB / 439.4 MB, free: 3.008 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches