Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 115.9 kB / 20.44 MB, free: 1.465 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 212.9 kB / 23.74 MB, free: 4.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 51.92 kB / 378.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2649, allocations: 53.36 MB / 431.6 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004009/0.2689, allocations: 2.796 MB / 434.4 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.2703, allocations: 0.8684 MB / 435.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.2705, allocations: 0 / 435.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003005/0.2708, allocations: 87.39 kB / 435.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.271, allocations: 134.9 kB / 435.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.2713, allocations: 87.83 kB / 435.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005269/0.2718, allocations: 434.4 kB / 436 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.2719, allocations: 74.41 kB / 436.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.2721, allocations: 163.5 kB / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.2724, allocations: 175.2 kB / 436.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.818e-05/0.2725, allocations: 36 kB / 436.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.874e-05/0.2725, allocations: 36 kB / 436.5 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.621e-05/0.2726, allocations: 75.69 kB / 436.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.2728, allocations: 199.1 kB / 436.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004965/0.2733, allocations: 434 kB / 437.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2733, allocations: 0 / 437.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2733, allocations: 0 / 437.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.2733, allocations: 4 kB / 437.2 MB, free: 1.398 MB / 334.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.001134/0.2745, allocations: 0.6157 MB / 437.8 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2745, allocations: 8.031 kB / 437.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.079e-05/0.2746, allocations: 48.64 kB / 437.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004241/0.275, allocations: 254.4 kB / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.2751, allocations: 98.09 kB / 438.2 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.2752, allocations: 24.38 kB / 438.2 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005512/0.2757, allocations: 317.6 kB / 438.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.2757, allocations: 0 / 438.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.2758, allocations: 12 kB / 438.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.2758, allocations: 7.938 kB / 438.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.2762, allocations: 201.6 kB / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.2777, allocations: 0.7744 MB / 439.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005759/0.2783, allocations: 259.7 kB / 439.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.2785, allocations: 104.8 kB / 439.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.2786, allocations: 4 kB / 439.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.2786, allocations: 38.56 kB / 439.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.2786, allocations: 0 / 439.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001056/0.2796, allocations: 414.2 kB / 440.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/0.2798, allocations: 320.4 kB / 440.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003072/0.2801, allocations: 276.2 kB / 440.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.2802, allocations: 37.7 kB / 440.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.2803, allocations: 176.8 kB / 441.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.305e-05/0.2804, allocations: 111 kB / 441.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.2805, allocations: 69.69 kB / 441.3 MB, free: 13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2807, allocations: 334.8 kB / 441.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.2809, allocations: 95.95 kB / 441.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.2812, allocations: 217.2 kB / 441.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004817/0.2817, allocations: 267.5 kB / 442.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2817, allocations: 0 / 442.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006778/0.2824, allocations: 361.8 kB / 442.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.2824, allocations: 33.7 kB / 442.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2825, allocations: 0 / 442.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001563/0.2826, allocations: 36.94 kB / 442.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.2837, allocations: 163.8 kB / 442.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003965/0.2876, allocations: 3.033 MB / 445.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.2879, allocations: 31.92 kB / 445.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.288, allocations: 12 kB / 445.8 MB, free: 8.125 MB / 350.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.000191/0.2881, allocations: 157.7 kB / 446 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.203e-05/0.2882, allocations: 39.75 kB / 446 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.422e-05/0.2883, allocations: 39.08 kB / 446.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.2883, allocations: 4 kB / 446.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2883, allocations: 0 / 446.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007624/0.2891, allocations: 0.6579 MB / 446.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004601/0.2895, allocations: 364.4 kB / 447.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2895, allocations: 4 kB / 447.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.2909, allocations: 203.8 kB / 447.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.941e-05/0.291, allocations: 24.84 kB / 447.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.291, allocations: 4 kB / 447.3 MB, free: 6.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003438/0.2944, allocations: 2.826 MB / 450.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2945, allocations: 0 / 450.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008948/0.2953, allocations: 0.5208 MB / 450.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.2955, allocations: 67.75 kB / 450.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.816e-05/0.2955, allocations: 8 kB / 450.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.2958, allocations: 15.98 kB / 450.7 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.2959, allocations: 27.95 kB / 450.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.2959, allocations: 8 kB / 450.8 MB, free: 2.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000215/0.2961, allocations: 199.1 kB / 451 MB, free: 2.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2961, allocations: 0 / 451 MB, free: 2.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004545/0.2966, allocations: 111.8 kB / 451.1 MB, free: 2.457 MB / 350.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.0001528/0.2967, allocations: 111.2 kB / 451.2 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.2983, allocations: 0.5216 MB / 451.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2983, allocations: 4.188 kB / 451.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.2998, allocations: 390.3 kB / 452.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005819/0.3004, allocations: 95.33 kB / 452.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.3025, allocations: 0.8649 MB / 453.1 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.303, allocations: 0.776 MB / 453.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.3031, allocations: 38.95 kB / 453.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.756e-05/0.3032, allocations: 31.42 kB / 453.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3032, allocations: 0 / 453.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of Templates: time 0.01278/0.316, allocations: 6.51 MB / 460.4 MB, free: 9.125 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.85510554490611]