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.001402/0.001402, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 65.45 kB / 306.9 MB, free: 1.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09058/0.09195, allocations: 50.52 MB / 357.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003821/0.09581, allocations: 2.822 MB / 360.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.09731, allocations: 0.8452 MB / 361.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.09757, allocations: 8 kB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.09792, allocations: 63.59 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003305/0.09826, allocations: 123.1 kB / 361.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.09848, allocations: 71.92 kB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004541/0.09894, allocations: 413.9 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.09913, allocations: 99.34 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.09931, allocations: 147.4 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.09953, allocations: 171.2 kB / 362.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.843e-05/0.0996, allocations: 24 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.872e-05/0.09967, allocations: 27.94 kB / 362.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.925e-05/0.09975, allocations: 63.75 kB / 362.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.09993, allocations: 183.1 kB / 362.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.1002, allocations: 323.5 kB / 362.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1002, allocations: 0 / 362.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1002, allocations: 0 / 362.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1003, allocations: 0 / 362.8 MB, free: 9.164 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.001151/0.1014, allocations: 0.6855 MB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.1015, allocations: 12.03 kB / 363.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.336e-05/0.1016, allocations: 36.56 kB / 363.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.1019, allocations: 303.4 kB / 363.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.986e-05/0.102, allocations: 46.7 kB / 363.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.1021, allocations: 28.22 kB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.1026, allocations: 321.6 kB / 364.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1027, allocations: 3.984 kB / 364.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.1027, allocations: 12 kB / 364.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.1027, allocations: 4 kB / 364.2 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004207/0.1032, allocations: 205.6 kB / 364.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.1046, allocations: 0.7986 MB / 365.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005432/0.1051, allocations: 272.1 kB / 365.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.1054, allocations: 120.8 kB / 365.6 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.73e-05/0.1054, allocations: 7.984 kB / 365.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.1054, allocations: 42.5 kB / 365.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.573e-06/0.1055, allocations: 0 / 365.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001038/0.1065, allocations: 491.2 kB / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/0.1066, allocations: 312.4 kB / 366.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.1069, allocations: 283 kB / 366.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.107, allocations: 33.7 kB / 366.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.1071, allocations: 176.6 kB / 366.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.882e-05/0.1072, allocations: 98.56 kB / 367 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.1073, allocations: 65.7 kB / 367.1 MB, free: 4.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1074, allocations: 342.8 kB / 367.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.1077, allocations: 95.7 kB / 367.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.108, allocations: 204.2 kB / 367.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004593/0.1084, allocations: 267.4 kB / 368 MB, free: 3.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1084, allocations: 4 kB / 368 MB, free: 3.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006394/0.1091, allocations: 369.6 kB / 368.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.1091, allocations: 33.69 kB / 368.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1091, allocations: 0 / 368.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/0.1093, allocations: 40.84 kB / 368.4 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.1103, allocations: 159.9 kB / 368.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1707/0.2811, allocations: 2.993 MB / 371.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000411/0.2815, allocations: 35.8 kB / 371.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.2816, allocations: 11.67 kB / 371.6 MB, free: 19.29 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.0002151/0.2818, allocations: 156.3 kB / 371.7 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.2819, allocations: 36.22 kB / 371.8 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.844e-05/0.282, allocations: 38.64 kB / 371.8 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.282, allocations: 3.531 kB / 371.8 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.282, allocations: 0.6094 kB / 371.8 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006318/0.2827, allocations: 0.6548 MB / 372.5 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004794/0.2832, allocations: 391.5 kB / 372.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2832, allocations: 3.219 kB / 372.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.2846, allocations: 209.8 kB / 373.1 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.12e-05/0.2847, allocations: 22.19 kB / 373.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.2847, allocations: 7.625 kB / 373.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0027/0.2874, allocations: 2.829 MB / 375.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2874, allocations: 4.641 kB / 375.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000943/0.2884, allocations: 0.5095 MB / 376.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.2886, allocations: 138.1 kB / 376.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.968e-05/0.2887, allocations: 7.328 kB / 376.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.289, allocations: 23.89 kB / 376.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.632e-05/0.2891, allocations: 23.06 kB / 376.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.2891, allocations: 10.73 kB / 376.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002599/0.2894, allocations: 200.8 kB / 376.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2894, allocations: 0 / 376.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.2899, allocations: 102.9 kB / 376.9 MB, free: 15.55 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.0001503/0.2901, allocations: 109.6 kB / 377 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.2918, allocations: 0.5323 MB / 377.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/0.2919, allocations: 1.125 kB / 377.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.2933, allocations: 405.3 kB / 378 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.2941, allocations: 84.02 kB / 378 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.296, allocations: 0.9749 MB / 379 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.2963, allocations: 0.7736 MB / 379.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.2964, allocations: 33.11 kB / 379.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2964, allocations: 1.562 kB / 379.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01262/0.309, allocations: 6.789 MB / 386.6 MB, free: 12.11 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