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.001219/0.001219, allocations: 116.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001416, allocations: 206 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.754/1.754, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2945, allocations: 50.55 MB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003814/0.2984, allocations: 2.76 MB / 412.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.2999, allocations: 0.8451 MB / 413.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.3001, allocations: 3.938 kB / 413.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003039/0.3004, allocations: 79.39 kB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.3007, allocations: 138.9 kB / 413.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.3009, allocations: 83.83 kB / 413.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004637/0.3014, allocations: 446.3 kB / 414.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.3016, allocations: 107.3 kB / 414.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.3018, allocations: 147.5 kB / 414.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.302, allocations: 183.2 kB / 414.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.689e-05/0.3021, allocations: 39.94 kB / 414.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.714e-05/0.3022, allocations: 35.94 kB / 414.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.991e-05/0.3022, allocations: 79.75 kB / 414.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.3024, allocations: 191.1 kB / 415 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004322/0.3029, allocations: 447.6 kB / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3029, allocations: 0 / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3029, allocations: 0 / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.3029, allocations: 4 kB / 415.5 MB, free: 11.98 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.00111/0.304, allocations: 0.6718 MB / 416.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.3041, allocations: 8.031 kB / 416.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.089e-05/0.3042, allocations: 48.47 kB / 416.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000464/0.3046, allocations: 299.4 kB / 416.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.3048, allocations: 54.69 kB / 416.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.3048, allocations: 20.38 kB / 416.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.3053, allocations: 317.6 kB / 416.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.3053, allocations: 4 kB / 416.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.3054, allocations: 12 kB / 416.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3054, allocations: 4 kB / 416.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000411/0.3058, allocations: 205.6 kB / 417.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.3071, allocations: 0.7946 MB / 417.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000547/0.3077, allocations: 277.9 kB / 418.1 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.3079, allocations: 120.8 kB / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.308, allocations: 7.984 kB / 418.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.308, allocations: 42.59 kB / 418.3 MB, free: 8.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.308, allocations: 4 kB / 418.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001027/0.309, allocations: 487.1 kB / 418.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.3092, allocations: 320.4 kB / 419.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.3095, allocations: 279 kB / 419.4 MB, free: 7.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.3095, allocations: 37.64 kB / 419.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.3096, allocations: 160.8 kB / 419.6 MB, free: 7.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.788e-05/0.3097, allocations: 106.4 kB / 419.7 MB, free: 7.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.3098, allocations: 69.69 kB / 419.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.31, allocations: 338.8 kB / 420.1 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.3102, allocations: 95.89 kB / 420.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.3105, allocations: 204.2 kB / 420.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.3109, allocations: 276.3 kB / 420.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3109, allocations: 0 / 420.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006101/0.3116, allocations: 365.6 kB / 421 MB, free: 6.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.3116, allocations: 33.7 kB / 421 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.3116, allocations: 0 / 421 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/0.3118, allocations: 44.88 kB / 421.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009794/0.3128, allocations: 159.9 kB / 421.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003675/0.3165, allocations: 3.236 MB / 424.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002913/0.3168, allocations: 31.77 kB / 424.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.3168, allocations: 8 kB / 424.5 MB, free: 2.219 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.0001907/0.317, allocations: 161.7 kB / 424.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.436e-05/0.3171, allocations: 31.62 kB / 424.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.201e-05/0.3172, allocations: 39.08 kB / 424.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3172, allocations: 4 kB / 424.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.3172, allocations: 4 kB / 424.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006733/0.3179, allocations: 0.6501 MB / 425.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000424/0.3183, allocations: 389.2 kB / 425.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3183, allocations: 0 / 425.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/0.3196, allocations: 203.7 kB / 426 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.513e-05/0.3197, allocations: 24.94 kB / 426 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.3197, allocations: 4 kB / 426 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003035/0.3228, allocations: 3.042 MB / 429 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3228, allocations: 4.125 kB / 429 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008443/0.3236, allocations: 0.5166 MB / 429.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/0.3238, allocations: 136.9 kB / 429.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.3239, allocations: 8 kB / 429.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.3241, allocations: 15.98 kB / 429.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/0.3242, allocations: 35.89 kB / 429.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.3243, allocations: 8 kB / 429.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.3245, allocations: 202 kB / 430 MB, free: 12.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3245, allocations: 0 / 430 MB, free: 12.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004508/0.3249, allocations: 107.9 kB / 430.1 MB, free: 12.17 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.0001533/0.3251, allocations: 107.2 kB / 430.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.3267, allocations: 0.5486 MB / 430.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3267, allocations: 0 / 430.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.3281, allocations: 390.4 kB / 431.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000536/0.3287, allocations: 84.55 kB / 431.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.3305, allocations: 0.8831 MB / 432.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.3309, allocations: 0.776 MB / 432.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.78e-05/0.331, allocations: 31.42 kB / 432.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.331, allocations: 0 / 432.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of Templates: time 0.009333/0.3403, allocations: 6.863 MB / 439.7 MB, free: 2.434 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