Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001557/0.001557, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.943/1.943, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001127/0.001127, allocations: 95.48 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005202/0.0005203, allocations: 8 kB / 327 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3309, allocations: 47.56 MB / 374.5 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.4608, allocations: 80.02 MB / 454.5 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.4612, allocations: 75.97 kB / 454.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02664/0.4879, allocations: 6.146 MB / 460.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4879, allocations: 0 / 460.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.488, allocations: 12 kB / 460.8 MB, free: 10.5 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.001362/0.4893, allocations: 0.6249 MB / 461.4 MB, free: 9.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.4894, allocations: 12.03 kB / 461.4 MB, free: 9.805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.4895, allocations: 39.61 kB / 461.5 MB, free: 9.766 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.49, allocations: 291 kB / 461.7 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.4902, allocations: 58.09 kB / 461.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.4903, allocations: 19.94 kB / 461.8 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007976/0.4911, allocations: 317.4 kB / 462.1 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.4911, allocations: 7.984 kB / 462.1 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.32e-05/0.4912, allocations: 8 kB / 462.1 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.4912, allocations: 8 kB / 462.1 MB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007345/0.4919, allocations: 209.6 kB / 462.3 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.4941, allocations: 0.8031 MB / 463.2 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.4953, allocations: 312.5 kB / 463.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.462e-05/0.4954, allocations: 7.984 kB / 463.5 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.4954, allocations: 38.56 kB / 463.5 MB, free: 7.562 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.836e-06/0.4954, allocations: 0 / 463.5 MB, free: 7.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001762/0.4972, allocations: 489 kB / 464 MB, free: 7.059 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.4974, allocations: 320.4 kB / 464.3 MB, free: 6.672 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004127/0.4978, allocations: 250 kB / 464.5 MB, free: 6.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.441e-05/0.4979, allocations: 33.7 kB / 464.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.4981, allocations: 219.1 kB / 464.8 MB, free: 6.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.4982, allocations: 106.4 kB / 464.9 MB, free: 6.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.844e-05/0.4982, allocations: 8 kB / 464.9 MB, free: 6.055 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4984, allocations: 328.8 kB / 465.2 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/0.4988, allocations: 91.95 kB / 465.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004877/0.4993, allocations: 220.4 kB / 465.5 MB, free: 5.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004364/0.4997, allocations: 143 kB / 465.7 MB, free: 5.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4997, allocations: 0 / 465.7 MB, free: 5.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001068/0.5008, allocations: 358 kB / 466 MB, free: 4.867 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.5009, allocations: 29.7 kB / 466 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.5009, allocations: 8.094 kB / 466 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.5011, allocations: 32.84 kB / 466.1 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/0.5031, allocations: 211.8 kB / 466.3 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006026/0.5091, allocations: 3.106 MB / 469.4 MB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004883/0.5097, allocations: 35.81 kB / 469.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.065e-05/0.5097, allocations: 16 kB / 469.4 MB, free: 1.16 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.0002906/0.51, allocations: 153.7 kB / 469.6 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.79e-05/0.5102, allocations: 35.56 kB / 469.6 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.5103, allocations: 39.08 kB / 469.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.5103, allocations: 4 kB / 469.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.5103, allocations: 0 / 469.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001142/0.5115, allocations: 0.666 MB / 470.3 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007413/0.5122, allocations: 385.2 kB / 470.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5123, allocations: 0 / 470.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002589/0.5149, allocations: 255.7 kB / 471 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001389/0.515, allocations: 24.84 kB / 471 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/0.5151, allocations: 8 kB / 471 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005155/0.5203, allocations: 2.938 MB / 473.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5203, allocations: 0 / 473.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.5218, allocations: 0.5233 MB / 474.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002406/0.5221, allocations: 132.7 kB / 474.6 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.778e-05/0.5222, allocations: 11.98 kB / 474.6 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003638/0.5226, allocations: 16 kB / 474.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.5227, allocations: 27.95 kB / 474.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.5228, allocations: 8 kB / 474.6 MB, free: 11.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003193/0.5231, allocations: 198 kB / 474.8 MB, free: 11.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5231, allocations: 0 / 474.8 MB, free: 11.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006122/0.5237, allocations: 111.8 kB / 475 MB, free: 11.17 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.0002399/0.524, allocations: 123.1 kB / 475.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.5266, allocations: 0.5683 MB / 475.6 MB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.926e-06/0.5266, allocations: 3.938 kB / 475.6 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002432/0.5291, allocations: 418.9 kB / 476.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007959/0.5299, allocations: 95.39 kB / 476.1 MB, free: 9.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.5329, allocations: 1.053 MB / 477.2 MB, free: 8.848 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.5334, allocations: 0.7879 MB / 478 MB, free: 8.031 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.5336, allocations: 27.44 kB / 478 MB, free: 8.004 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5336, allocations: 0 / 478 MB, free: 8.004 MB / 362.7 MB Notification: Performance of Templates: time 0.01379/0.5474, allocations: 6.474 MB / 484.5 MB, free: 1.555 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches