Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001447/0.001447, allocations: 182.6 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 224.2 MB, free: 9.043 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008147/0.0008147, allocations: 91.91 kB / 272.5 MB, free: 8.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003107, allocations: 8 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2422, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09553/0.3378, allocations: 80.09 MB / 457.1 MB, free: 496 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.3381, allocations: 75.97 kB / 457.2 MB, free: 420 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01665/0.3548, allocations: 6.154 MB / 463.3 MB, free: 10.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3548, allocations: 0 / 463.3 MB, free: 10.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.202e-05/0.3548, allocations: 12 kB / 463.4 MB, free: 10.21 MB / 346.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.0009758/0.3558, allocations: 0.6172 MB / 464 MB, free: 9.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.3559, allocations: 12.03 kB / 464 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.768e-05/0.356, allocations: 44.55 kB / 464 MB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.3564, allocations: 287.5 kB / 464.3 MB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.3565, allocations: 54.69 kB / 464.4 MB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.3566, allocations: 24.28 kB / 464.4 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.3571, allocations: 324.5 kB / 464.7 MB, free: 8.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.3571, allocations: 3.938 kB / 464.7 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.3572, allocations: 12 kB / 464.7 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3572, allocations: 8 kB / 464.7 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000432/0.3576, allocations: 213.6 kB / 464.9 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.3591, allocations: 0.8031 MB / 465.7 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005788/0.3597, allocations: 299.7 kB / 466 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.36, allocations: 116.9 kB / 466.1 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.597e-05/0.36, allocations: 4 kB / 466.1 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.3601, allocations: 42.59 kB / 466.2 MB, free: 7.164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.723e-06/0.3601, allocations: 0 / 466.2 MB, free: 7.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001108/0.3612, allocations: 496.4 kB / 466.7 MB, free: 6.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001999/0.3614, allocations: 320.4 kB / 467 MB, free: 6.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004281/0.3619, allocations: 283 kB / 467.3 MB, free: 5.977 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.3619, allocations: 33.7 kB / 467.3 MB, free: 5.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.3621, allocations: 164.7 kB / 467.5 MB, free: 5.773 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.142e-05/0.3622, allocations: 106.5 kB / 467.6 MB, free: 5.668 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.3622, allocations: 4 kB / 467.6 MB, free: 5.664 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3623, allocations: 346.7 kB / 467.9 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.3625, allocations: 99.95 kB / 468 MB, free: 5.219 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.3629, allocations: 212.4 kB / 468.2 MB, free: 4.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004779/0.3633, allocations: 266.7 kB / 468.5 MB, free: 4.688 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.3634, allocations: 7.938 kB / 468.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000743/0.3641, allocations: 373.6 kB / 468.8 MB, free: 4.301 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.3642, allocations: 29.7 kB / 468.9 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3642, allocations: 0 / 468.9 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001733/0.3644, allocations: 48.86 kB / 468.9 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009676/0.3653, allocations: 199.8 kB / 469.1 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003648/0.369, allocations: 3.074 MB / 472.2 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.3693, allocations: 35.81 kB / 472.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.3693, allocations: 12 kB / 472.2 MB, free: 0.6328 MB / 346.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.0001869/0.3695, allocations: 149.7 kB / 472.4 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.127e-05/0.3696, allocations: 39.72 kB / 472.4 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.341e-05/0.3697, allocations: 47 kB / 472.5 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3697, allocations: 0 / 472.5 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3697, allocations: 0 / 472.5 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006917/0.3704, allocations: 0.6659 MB / 473.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004269/0.3708, allocations: 385.2 kB / 473.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3708, allocations: 4 kB / 473.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.3721, allocations: 251.7 kB / 473.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-05/0.3722, allocations: 24.84 kB / 473.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3722, allocations: 7.938 kB / 473.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003102/0.3754, allocations: 2.914 MB / 476.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3754, allocations: 0 / 476.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008703/0.3763, allocations: 0.5194 MB / 477.2 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.3764, allocations: 136.7 kB / 477.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/0.3765, allocations: 4 kB / 477.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.3767, allocations: 24.08 kB / 477.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.79e-05/0.3768, allocations: 27.91 kB / 477.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.3768, allocations: 11.98 kB / 477.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002144/0.377, allocations: 201.9 kB / 477.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3771, allocations: 0 / 477.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004367/0.3775, allocations: 115.8 kB / 477.7 MB, free: 10.66 MB / 362.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.0002225/0.3777, allocations: 119.2 kB / 477.8 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3794, allocations: 0.5761 MB / 478.4 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3794, allocations: 3.938 kB / 478.4 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001479/0.3809, allocations: 462.7 kB / 478.9 MB, free: 9.457 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005558/0.3815, allocations: 75.73 kB / 479 MB, free: 9.387 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.3832, allocations: 1.033 MB / 480 MB, free: 8.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.3836, allocations: 0.78 MB / 480.8 MB, free: 7.523 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.3838, allocations: 30.97 kB / 480.8 MB, free: 7.492 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.622e-05/0.3839, allocations: 31.42 kB / 480.8 MB, free: 7.461 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3839, allocations: 0 / 480.8 MB, free: 7.461 MB / 362.7 MB Notification: Performance of Templates: time 0.0103/0.3942, allocations: 5.602 MB / 486.4 MB, free: 1.883 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches