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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001957/0.001957, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002201/0.002201, allocations: 207.9 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 230.5 MB / 257.4 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 63.91 kB / 378.2 MB, free: 2.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2437, allocations: 53.4 MB / 431.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003924/0.2476, allocations: 2.574 MB / 434.2 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2493, allocations: 0.8062 MB / 435 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.2494, allocations: 4 kB / 435 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002676/0.2497, allocations: 67.42 kB / 435.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003372/0.25, allocations: 146.9 kB / 435.2 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.2502, allocations: 79.83 kB / 435.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005391/0.2507, allocations: 446.3 kB / 435.7 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.2509, allocations: 59.61 kB / 435.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.2511, allocations: 163.5 kB / 435.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.2513, allocations: 159.2 kB / 436.1 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.731e-05/0.2514, allocations: 35.94 kB / 436.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.193e-05/0.2515, allocations: 36 kB / 436.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.381e-05/0.2516, allocations: 83.73 kB / 436.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.2517, allocations: 159.3 kB / 436.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004897/0.2522, allocations: 444.8 kB / 436.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2522, allocations: 0 / 436.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2522, allocations: 0 / 436.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.485e-06/0.2522, allocations: 0 / 436.8 MB, free: 1.262 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.001143/0.2534, allocations: 0.6118 MB / 437.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.2534, allocations: 15.97 kB / 437.5 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.456e-05/0.2535, allocations: 44.7 kB / 437.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004878/0.254, allocations: 250.4 kB / 437.8 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.2541, allocations: 98.11 kB / 437.8 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.935e-05/0.2542, allocations: 24.38 kB / 437.9 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007805/0.255, allocations: 0.6655 MB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.255, allocations: 0 / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.255, allocations: 23.92 kB / 438.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.255, allocations: 4 kB / 438.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.2555, allocations: 197.6 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.2569, allocations: 0.6581 MB / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.2575, allocations: 259.6 kB / 439.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.2577, allocations: 112.8 kB / 439.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.2577, allocations: 4 kB / 439.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.2578, allocations: 38.56 kB / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.493e-06/0.2578, allocations: 0 / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001089/0.2589, allocations: 415 kB / 440.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/0.2591, allocations: 324.4 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.2594, allocations: 276.2 kB / 440.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.2594, allocations: 33.7 kB / 440.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.2596, allocations: 172.8 kB / 441 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.2597, allocations: 111 kB / 441.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.2598, allocations: 69.69 kB / 441.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.26, allocations: 338.8 kB / 441.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.2602, allocations: 121.7 kB / 441.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.2607, allocations: 499.3 kB / 442.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/0.2612, allocations: 263.8 kB / 442.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2612, allocations: 0 / 442.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007116/0.2619, allocations: 403.4 kB / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.2619, allocations: 29.7 kB / 442.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2619, allocations: 4 kB / 442.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000156/0.2621, allocations: 36.84 kB / 442.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009921/0.2631, allocations: 159.8 kB / 443 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003787/0.2669, allocations: 2.972 MB / 446 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.2672, allocations: 35.83 kB / 446 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.2672, allocations: 8 kB / 446 MB, free: 7.34 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.0002038/0.2674, allocations: 153.7 kB / 446.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.477e-05/0.2675, allocations: 39.75 kB / 446.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.618e-05/0.2676, allocations: 39.08 kB / 446.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2676, allocations: 0 / 446.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.2676, allocations: 11.94 kB / 446.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007498/0.2684, allocations: 0.65 MB / 446.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003763/0.2687, allocations: 265.1 kB / 447.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2687, allocations: 0 / 447.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.27, allocations: 211.7 kB / 447.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.571e-05/0.2701, allocations: 20.84 kB / 447.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.2701, allocations: 8 kB / 447.4 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003247/0.2734, allocations: 2.784 MB / 450.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2734, allocations: 0 / 450.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009085/0.2743, allocations: 0.5091 MB / 450.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.2745, allocations: 67.88 kB / 450.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/0.2745, allocations: 7.938 kB / 450.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002675/0.2748, allocations: 19.98 kB / 450.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.546e-05/0.2748, allocations: 24.05 kB / 450.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.2749, allocations: 11.94 kB / 450.8 MB, free: 2.156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.2751, allocations: 207.1 kB / 451 MB, free: 1.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2751, allocations: 0 / 451 MB, free: 1.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004482/0.2755, allocations: 99.89 kB / 451.1 MB, free: 1.859 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.0001511/0.2757, allocations: 124.6 kB / 451.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.2773, allocations: 0.5508 MB / 451.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2773, allocations: 0 / 451.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.2787, allocations: 394.3 kB / 452.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005304/0.2792, allocations: 84.59 kB / 452.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.281, allocations: 0.8671 MB / 453.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.2812, allocations: 173.6 kB / 453.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.2814, allocations: 38.95 kB / 453.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.269e-05/0.2814, allocations: 27.44 kB / 453.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2814, allocations: 0 / 453.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of Templates: time 0.01346/0.2949, allocations: 7.145 MB / 460.5 MB, free: 8.527 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.846205106005073]