Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001133, allocations: 97.73 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 203.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.7 MB / 247.5 MB, free: 11.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002442, allocations: 4 kB / 308.4 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09434/0.0946, allocations: 51.53 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002545/0.09719, allocations: 2.445 MB / 362.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.09853, allocations: 0.7752 MB / 363.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.09869, allocations: 4 kB / 363.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002263/0.09893, allocations: 67.59 kB / 363.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002729/0.09921, allocations: 123.1 kB / 363.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.0994, allocations: 75.91 kB / 363.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003898/0.0998, allocations: 418 kB / 363.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.09997, allocations: 95.34 kB / 363.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.1001, allocations: 139.4 kB / 364 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.1003, allocations: 175.2 kB / 364.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.582e-05/0.1004, allocations: 24 kB / 364.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.816e-05/0.1004, allocations: 20 kB / 364.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.411e-05/0.1005, allocations: 67.69 kB / 364.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.1007, allocations: 196.9 kB / 364.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.101, allocations: 315.4 kB / 364.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.101, allocations: 0 / 364.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.101, allocations: 0 / 364.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.101, allocations: 4 kB / 364.8 MB, free: 8.301 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.0009199/0.1019, allocations: 0.6211 MB / 365.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.102, allocations: 19.97 kB / 365.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.81e-05/0.1021, allocations: 40.47 kB / 365.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.1024, allocations: 303.4 kB / 365.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.792e-05/0.1025, allocations: 54.69 kB / 365.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.471e-05/0.1026, allocations: 20.38 kB / 365.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005066/0.1031, allocations: 325.6 kB / 366.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1031, allocations: 0 / 366.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.1031, allocations: 8 kB / 366.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.1031, allocations: 4 kB / 366.2 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004099/0.1036, allocations: 213.6 kB / 366.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.1049, allocations: 0.8064 MB / 367.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005466/0.1054, allocations: 288 kB / 367.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.1057, allocations: 128.8 kB / 367.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.1057, allocations: 11.97 kB / 367.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.1057, allocations: 38.56 kB / 367.7 MB, free: 5.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 3.086e-06/0.1057, allocations: 3.984 kB / 367.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001026/0.1068, allocations: 499.3 kB / 368.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.1069, allocations: 312.4 kB / 368.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/0.1072, allocations: 290.9 kB / 368.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.1073, allocations: 33.7 kB / 368.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1074, allocations: 168.7 kB / 368.9 MB, free: 3.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.208e-05/0.1075, allocations: 102.5 kB / 369 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.703e-05/0.1075, allocations: 29.7 kB / 369.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1077, allocations: 338.8 kB / 369.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.1079, allocations: 99.95 kB / 369.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.1082, allocations: 215.9 kB / 369.7 MB, free: 3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.1087, allocations: 275.5 kB / 370 MB, free: 2.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1087, allocations: 0 / 370 MB, free: 2.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006423/0.1093, allocations: 377.6 kB / 370.4 MB, free: 2.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.1094, allocations: 33.64 kB / 370.4 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1094, allocations: 0 / 370.4 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.1095, allocations: 40.84 kB / 370.4 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.1106, allocations: 199.9 kB / 370.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1743/0.2849, allocations: 3.068 MB / 373.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005783/0.2855, allocations: 44.12 kB / 373.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.2855, allocations: 11.94 kB / 373.7 MB, free: 17.91 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.0002592/0.2858, allocations: 155.8 kB / 373.9 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.286, allocations: 33.81 kB / 373.9 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.2861, allocations: 39.41 kB / 374 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.2861, allocations: 3.766 kB / 374 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2861, allocations: 0.625 kB / 374 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009672/0.2871, allocations: 0.6618 MB / 374.6 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006756/0.2878, allocations: 388.7 kB / 375 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2878, allocations: 4.656 kB / 375 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002093/0.2899, allocations: 253.1 kB / 375.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.29, allocations: 22.95 kB / 375.3 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.539e-05/0.2901, allocations: 10.69 kB / 375.3 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003986/0.2941, allocations: 2.902 MB / 378.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2941, allocations: 1.156 kB / 378.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.2956, allocations: 0.5182 MB / 378.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.2959, allocations: 137.3 kB / 378.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.293e-05/0.296, allocations: 12.42 kB / 378.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.2964, allocations: 20.7 kB / 378.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.2965, allocations: 27.2 kB / 378.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.2966, allocations: 8.875 kB / 378.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003811/0.297, allocations: 203.5 kB / 379.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.297, allocations: 0 / 379.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007681/0.2978, allocations: 103.3 kB / 379.2 MB, free: 14.15 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.0001738/0.298, allocations: 111.2 kB / 379.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002358/0.3003, allocations: 0.5871 MB / 379.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.3004, allocations: 1.375 kB / 379.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002189/0.3026, allocations: 453.7 kB / 380.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.3036, allocations: 84.42 kB / 380.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.3063, allocations: 1.082 MB / 381.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.3066, allocations: 0.7734 MB / 382.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.3068, allocations: 29.86 kB / 382.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3068, allocations: 3.938 kB / 382.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of Templates: time 0.01655/0.3234, allocations: 6.753 MB / 389.1 MB, free: 10.63 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches