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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008256/0.0008257, allocations: 90.11 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008902/0.0008905, allocations: 177 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002434/0.0002434, allocations: 11.94 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08823/0.08849, allocations: 50.42 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002603/0.09112, allocations: 2.428 MB / 354.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.0924, allocations: 0.7518 MB / 355 MB, free: 272 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.09258, allocations: 7.938 kB / 355 MB, free: 264 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.09282, allocations: 59.59 kB / 355.1 MB, free: 204 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002901/0.09312, allocations: 119.1 kB / 355.2 MB, free: 84 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.09333, allocations: 79.92 kB / 355.3 MB, free: 4 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004479/0.09379, allocations: 417.5 kB / 355.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.09397, allocations: 83.38 kB / 355.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.09414, allocations: 147.4 kB / 355.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.09436, allocations: 171.2 kB / 356.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.09442, allocations: 20 kB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.82e-05/0.09448, allocations: 24 kB / 356.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.058e-05/0.09455, allocations: 67.69 kB / 356.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.09473, allocations: 208.8 kB / 356.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.09512, allocations: 410.7 kB / 356.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.09513, allocations: 0 / 356.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09514, allocations: 0 / 356.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.09515, allocations: 0 / 356.8 MB, free: 14.48 MB / 302.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.0009672/0.09613, allocations: 0.6211 MB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.09617, allocations: 12.03 kB / 357.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.267e-05/0.09627, allocations: 44.47 kB / 357.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.09662, allocations: 299.4 kB / 357.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.581e-05/0.09673, allocations: 54.69 kB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.488e-05/0.09678, allocations: 16.38 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.09732, allocations: 333.6 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.09735, allocations: 0 / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.09738, allocations: 8 kB / 358.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.09739, allocations: 4 kB / 358.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004508/0.09785, allocations: 213.6 kB / 358.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.09931, allocations: 0.8026 MB / 359.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.09991, allocations: 287 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.1001, allocations: 124.9 kB / 359.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.1002, allocations: 7.984 kB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.1002, allocations: 46.48 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.1002, allocations: 0 / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001058/0.1013, allocations: 495.1 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.1014, allocations: 320.3 kB / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.1017, allocations: 290.9 kB / 360.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.1018, allocations: 29.7 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1019, allocations: 164.7 kB / 360.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.623e-05/0.102, allocations: 110.5 kB / 361 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.102, allocations: 29.7 kB / 361 MB, free: 9.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1021, allocations: 338.8 kB / 361.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.1024, allocations: 95.95 kB / 361.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003083/0.1027, allocations: 216.6 kB / 361.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004841/0.1032, allocations: 279.5 kB / 362 MB, free: 8.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1032, allocations: 0 / 362 MB, free: 8.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006499/0.1038, allocations: 373.6 kB / 362.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.1039, allocations: 37.69 kB / 362.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1039, allocations: 0 / 362.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001485/0.1041, allocations: 48.83 kB / 362.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.1052, allocations: 199.9 kB / 362.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003693/0.1089, allocations: 3.07 MB / 365.7 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.1092, allocations: 39.84 kB / 365.7 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/0.1092, allocations: 12.19 kB / 365.7 MB, free: 4.855 MB / 302.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.0002152/0.1094, allocations: 149.8 kB / 365.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.1095, allocations: 35.56 kB / 365.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.268e-05/0.1096, allocations: 39.08 kB / 365.9 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1096, allocations: 8 kB / 365.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1096, allocations: 4 kB / 365.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007161/0.1103, allocations: 0.6627 MB / 366.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004336/0.1108, allocations: 377.2 kB / 367 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.1108, allocations: 0 / 367 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/0.1122, allocations: 255.7 kB / 367.2 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.054e-05/0.1123, allocations: 32.78 kB / 367.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.1124, allocations: 4 kB / 367.3 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1586/0.2709, allocations: 2.897 MB / 370.2 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.271, allocations: 1.031 kB / 370.2 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.272, allocations: 0.5279 MB / 370.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.2721, allocations: 132.8 kB / 370.8 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.2722, allocations: 8.25 kB / 370.8 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.2725, allocations: 22.77 kB / 370.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-05/0.2726, allocations: 21.83 kB / 370.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.2726, allocations: 13.33 kB / 370.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002191/0.2728, allocations: 201.6 kB / 371.1 MB, free: 24.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2728, allocations: 0 / 371.1 MB, free: 24.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000442/0.2733, allocations: 106.4 kB / 371.2 MB, free: 24.4 MB / 302.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.0001123/0.2734, allocations: 112.4 kB / 371.3 MB, free: 24.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.275, allocations: 0.5833 MB / 371.9 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.275, allocations: 1.312 kB / 371.9 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.2764, allocations: 459 kB / 372.3 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005321/0.277, allocations: 83.25 kB / 372.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.2785, allocations: 1.054 MB / 373.5 MB, free: 23.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.2787, allocations: 0.7736 MB / 374.2 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.2789, allocations: 41.22 kB / 374.3 MB, free: 22.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-05/0.279, allocations: 27.78 kB / 374.3 MB, free: 22.77 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.279, allocations: 1.094 kB / 374.3 MB, free: 22.77 MB / 302.1 MB Notification: Performance of Templates: time 0.009615/0.2886, allocations: 5.715 MB / 380 MB, free: 22.02 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches