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.001504/0.001503, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.228/2.228, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001104, allocations: 98.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.877e-05/1.878e-05, allocations: 3.984 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3219, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4462, allocations: 79.28 MB / 441.6 MB, free: 7.039 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.4465, allocations: 71.97 kB / 441.7 MB, free: 6.969 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02665/0.4732, allocations: 6.062 MB / 447.7 MB, free: 0.9258 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4733, allocations: 0 / 447.7 MB, free: 0.9258 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.001e-05/0.4733, allocations: 9.203 kB / 447.7 MB, free: 0.918 MB / 331.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.00121/0.4745, allocations: 0.5766 MB / 448.3 MB, free: 300 kB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.4746, allocations: 13.44 kB / 448.3 MB, free: 288 kB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.4748, allocations: 39.53 kB / 448.4 MB, free: 248 kB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005531/0.4753, allocations: 287 kB / 448.7 MB, free: 15.92 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.4755, allocations: 46.12 kB / 448.7 MB, free: 15.87 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.501e-05/0.4755, allocations: 19.95 kB / 448.7 MB, free: 15.85 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005122/0.4761, allocations: 168.8 kB / 448.9 MB, free: 15.68 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005801/0.4767, allocations: 266.3 kB / 449.1 MB, free: 15.38 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.4767, allocations: 7.938 kB / 449.1 MB, free: 15.38 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.692e-05/0.4768, allocations: 0 / 449.1 MB, free: 15.38 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.4768, allocations: 4 kB / 449.2 MB, free: 15.37 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.479, allocations: 0.7516 MB / 449.9 MB, free: 14.58 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008015/0.4798, allocations: 251 kB / 450.1 MB, free: 14.32 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.4801, allocations: 100.8 kB / 450.2 MB, free: 14.22 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.046e-05/0.4802, allocations: 7.984 kB / 450.3 MB, free: 14.21 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.4802, allocations: 38.56 kB / 450.3 MB, free: 14.17 MB / 347.1 MB Notification: Performance of pre-optimization done (n=29): time 3.236e-06/0.4802, allocations: 8.969 kB / 450.3 MB, free: 14.16 MB / 347.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009189/0.4812, allocations: 265.4 kB / 450.6 MB, free: 13.89 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001586/0.4813, allocations: 312.4 kB / 450.9 MB, free: 13.52 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.4818, allocations: 238.3 kB / 451.1 MB, free: 13.28 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.91e-05/0.4818, allocations: 25.7 kB / 451.1 MB, free: 13.25 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.482, allocations: 218.9 kB / 451.3 MB, free: 13.04 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.4822, allocations: 102.5 kB / 451.4 MB, free: 12.93 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.081e-05/0.4822, allocations: 0 / 451.4 MB, free: 12.93 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.4823, allocations: 326.8 kB / 451.8 MB, free: 12.61 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.4826, allocations: 76 kB / 451.8 MB, free: 12.53 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/0.4829, allocations: 186.8 kB / 452 MB, free: 12.3 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.4832, allocations: 93.31 kB / 452.1 MB, free: 12.21 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.4832, allocations: 0 / 452.1 MB, free: 12.21 MB / 347.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009028/0.4842, allocations: 296.4 kB / 452.4 MB, free: 11.92 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.795e-05/0.4842, allocations: 29.7 kB / 452.4 MB, free: 11.88 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.4842, allocations: 8 kB / 452.4 MB, free: 11.88 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003239/0.4846, allocations: 42.98 kB / 452.5 MB, free: 11.83 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.4865, allocations: 203.8 kB / 452.7 MB, free: 11.63 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004594/0.4911, allocations: 2.836 MB / 455.5 MB, free: 8.566 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.4917, allocations: 35.97 kB / 455.5 MB, free: 8.531 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/0.4917, allocations: 16 kB / 455.6 MB, free: 8.516 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTank1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 () * 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.0002356/0.492, allocations: 114.7 kB / 455.7 MB, free: 8.398 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.4921, allocations: 31.67 kB / 455.7 MB, free: 8.367 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.4922, allocations: 35.52 kB / 455.7 MB, free: 8.336 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.4922, allocations: 7.938 kB / 455.7 MB, free: 8.328 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4923, allocations: 0 / 455.7 MB, free: 8.328 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00087/0.4931, allocations: 0.6191 MB / 456.4 MB, free: 7.602 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006754/0.4938, allocations: 345.7 kB / 456.7 MB, free: 7.227 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4939, allocations: 0 / 456.7 MB, free: 7.227 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002529/0.4964, allocations: 259.7 kB / 457 MB, free: 6.973 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001672/0.4966, allocations: 20.86 kB / 457 MB, free: 6.949 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.4967, allocations: 11.98 kB / 457 MB, free: 6.938 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.5006, allocations: 2.677 MB / 459.7 MB, free: 4.027 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.5006, allocations: 0 / 459.7 MB, free: 4.027 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.5018, allocations: 471.8 kB / 460.1 MB, free: 3.547 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002505/0.5021, allocations: 137.3 kB / 460.3 MB, free: 3.395 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.243e-05/0.5021, allocations: 8 kB / 460.3 MB, free: 3.387 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003812/0.5025, allocations: 16.05 kB / 460.3 MB, free: 3.371 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.5027, allocations: 23.97 kB / 460.3 MB, free: 3.348 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.521e-05/0.5027, allocations: 8 kB / 460.3 MB, free: 3.34 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.000282/0.503, allocations: 186 kB / 460.5 MB, free: 3.16 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.503, allocations: 0 / 460.5 MB, free: 3.16 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006482/0.5037, allocations: 102.3 kB / 460.6 MB, free: 3.062 MB / 347.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 () * 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.0002362/0.5039, allocations: 107.2 kB / 460.7 MB, free: 2.949 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.5062, allocations: 0.5056 MB / 461.2 MB, free: 2.422 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.5062, allocations: 0 / 461.2 MB, free: 2.422 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002252/0.5085, allocations: 397.9 kB / 461.6 MB, free: 2.023 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007363/0.5093, allocations: 72.69 kB / 461.7 MB, free: 1.949 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.5117, allocations: 0.6779 MB / 462.3 MB, free: 1.246 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.5121, allocations: 0.7921 MB / 463.1 MB, free: 444 kB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.5123, allocations: 31.44 kB / 463.2 MB, free: 416 kB / 347.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5123, allocations: 0 / 463.2 MB, free: 416 kB / 347.1 MB Notification: Performance of Templates: time 0.01443/0.5268, allocations: 6.441 MB / 469.6 MB, free: 10 MB / 363.1 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