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.001181/0.001181, allocations: 181.2 kB / 16.39 MB, free: 5.762 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.23/1.23, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008241/0.0008242, allocations: 101.4 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.000251, allocations: 7.938 kB / 351.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2176, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1131/0.3307, allocations: 79.32 MB / 480.8 MB, free: 1.191 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/0.3311, allocations: 71.95 kB / 480.9 MB, free: 1.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02911/0.3602, allocations: 6.089 MB / 487 MB, free: 11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3603, allocations: 4 kB / 487 MB, free: 11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.3603, allocations: 4 kB / 487 MB, free: 11 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.0008934/0.3612, allocations: 0.6287 MB / 487.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3612, allocations: 8.031 kB / 487.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.179e-05/0.3613, allocations: 35.62 kB / 487.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.3617, allocations: 294.2 kB / 487.9 MB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.3618, allocations: 50.14 kB / 488 MB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.3618, allocations: 16 kB / 488 MB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004911/0.3623, allocations: 322.2 kB / 488.3 MB, free: 9.516 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.3624, allocations: 0 / 488.3 MB, free: 9.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.3624, allocations: 15.95 kB / 488.3 MB, free: 9.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.3624, allocations: 4 kB / 488.3 MB, free: 9.496 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.3628, allocations: 209.6 kB / 488.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.3642, allocations: 0.8104 MB / 489.3 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/0.3649, allocations: 308.6 kB / 489.6 MB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.3649, allocations: 4 kB / 489.6 MB, free: 8.117 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.365, allocations: 38.56 kB / 489.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.365, allocations: 0 / 489.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001045/0.366, allocations: 0.4884 MB / 490.2 MB, free: 7.555 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.3662, allocations: 316.4 kB / 490.5 MB, free: 7.172 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.3664, allocations: 246.1 kB / 490.7 MB, free: 6.926 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.3665, allocations: 33.7 kB / 490.8 MB, free: 6.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3666, allocations: 172.8 kB / 490.9 MB, free: 6.715 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.3667, allocations: 106.4 kB / 491 MB, free: 6.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.731e-05/0.3667, allocations: 8 kB / 491 MB, free: 6.602 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3668, allocations: 342.7 kB / 491.4 MB, free: 6.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.3671, allocations: 95.95 kB / 491.5 MB, free: 6.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.3674, allocations: 216.1 kB / 491.7 MB, free: 5.906 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.3676, allocations: 146.7 kB / 491.8 MB, free: 5.762 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3676, allocations: 0 / 491.8 MB, free: 5.762 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006075/0.3682, allocations: 373.9 kB / 492.2 MB, free: 5.383 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.3683, allocations: 32.52 kB / 492.2 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.3683, allocations: 7.953 kB / 492.2 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.3684, allocations: 36.83 kB / 492.3 MB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.3695, allocations: 211.8 kB / 492.5 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003487/0.373, allocations: 3.107 MB / 495.6 MB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.3732, allocations: 39.72 kB / 495.6 MB, free: 1.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.3732, allocations: 12 kB / 495.6 MB, free: 1.672 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.000147/0.3734, allocations: 149.8 kB / 495.8 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.3735, allocations: 35.58 kB / 495.8 MB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.512e-05/0.3736, allocations: 39.08 kB / 495.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.3736, allocations: 8 kB / 495.8 MB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.3736, allocations: 0 / 495.8 MB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006547/0.3742, allocations: 0.6594 MB / 496.5 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003998/0.3746, allocations: 381.2 kB / 496.9 MB, free: 248 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3747, allocations: 0 / 496.9 MB, free: 248 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.3761, allocations: 259.8 kB / 497.1 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.387e-05/0.3761, allocations: 24.75 kB / 497.2 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.3762, allocations: 11.98 kB / 497.2 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003088/0.3793, allocations: 2.926 MB / 0.4884 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3793, allocations: 4.031 kB / 0.4884 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008232/0.3801, allocations: 0.5197 MB / 0.4889 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.3803, allocations: 140.6 kB / 0.489 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.324e-05/0.3803, allocations: 12 kB / 0.489 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.3806, allocations: 20 kB / 0.489 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.948e-05/0.3806, allocations: 23.95 kB / 0.4891 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.3807, allocations: 8.375 kB / 0.4891 GB, free: 12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001943/0.3809, allocations: 198 kB / 0.4893 GB, free: 11.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3809, allocations: 3.938 kB / 0.4893 GB, free: 11.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004154/0.3813, allocations: 107.9 kB / 0.4894 GB, free: 11.69 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.0001751/0.3815, allocations: 134.6 kB / 0.4895 GB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.3829, allocations: 0.5643 MB / 0.4901 GB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.383, allocations: 0 / 0.4901 GB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.3844, allocations: 430.4 kB / 0.4905 GB, free: 10.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004345/0.3848, allocations: 88.22 kB / 0.4905 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.3866, allocations: 1.028 MB / 0.4916 GB, free: 9.395 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.3869, allocations: 0.7801 MB / 0.4923 GB, free: 8.586 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.3871, allocations: 34.97 kB / 0.4923 GB, free: 8.547 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.534e-05/0.3871, allocations: 31.36 kB / 0.4924 GB, free: 8.516 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3871, allocations: 0 / 0.4924 GB, free: 8.516 MB / 378.7 MB Notification: Performance of Templates: time 0.009321/0.3965, allocations: 5.463 MB / 0.4977 GB, free: 3.141 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/jenkins/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