Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001546/0.001546, allocations: 119.3 kB / 21.17 MB, free: 0.7734 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.00167/0.00167, allocations: 215.5 kB / 24.46 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.403/1.403, allocations: 230.4 MB / 258.1 MB, free: 8.152 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 71.81 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2234, allocations: 53.32 MB / 432 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003931/0.2274, allocations: 2.784 MB / 434.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.2288, allocations: 0.8607 MB / 435.7 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2289, allocations: 4 kB / 435.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.2291, allocations: 75.41 kB / 435.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.2294, allocations: 134.9 kB / 435.9 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2296, allocations: 91.81 kB / 436 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005184/0.2301, allocations: 446.2 kB / 436.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.2303, allocations: 63.38 kB / 436.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.2305, allocations: 155.5 kB / 436.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.2307, allocations: 175.3 kB / 436.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-05/0.2308, allocations: 39.94 kB / 436.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.974e-05/0.2308, allocations: 32 kB / 436.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.472e-05/0.2309, allocations: 83.69 kB / 436.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002037/0.2311, allocations: 191.1 kB / 437.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004858/0.2316, allocations: 447.8 kB / 437.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2316, allocations: 0 / 437.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2316, allocations: 0 / 437.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.2316, allocations: 0 / 437.6 MB, free: 1.84 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.001189/0.2328, allocations: 0.691 MB / 438.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2328, allocations: 12.03 kB / 438.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.233, allocations: 40.7 kB / 438.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.2334, allocations: 307.6 kB / 438.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.2335, allocations: 50.7 kB / 438.7 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.505e-05/0.2336, allocations: 16.38 kB / 438.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000537/0.2341, allocations: 325.6 kB / 439 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2341, allocations: 7.969 kB / 439 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.2342, allocations: 8 kB / 439 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2342, allocations: 4 kB / 439 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004298/0.2346, allocations: 205.6 kB / 439.2 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.236, allocations: 0.7988 MB / 440 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.2366, allocations: 257.8 kB / 440.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.2368, allocations: 105.3 kB / 440.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.2369, allocations: 4 kB / 440.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.2369, allocations: 38.56 kB / 440.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.2369, allocations: 4 kB / 440.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001099/0.238, allocations: 487.4 kB / 440.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001785/0.2382, allocations: 316.4 kB / 441.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/0.2385, allocations: 279 kB / 441.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/0.2385, allocations: 37.64 kB / 441.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.2387, allocations: 176.8 kB / 441.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.739e-05/0.2388, allocations: 107.1 kB / 441.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.2389, allocations: 65.7 kB / 441.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.239, allocations: 338.8 kB / 442.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.2393, allocations: 99.95 kB / 442.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00033/0.2396, allocations: 212.6 kB / 442.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004694/0.2401, allocations: 271.4 kB / 442.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2401, allocations: 96 / 442.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006565/0.2407, allocations: 361.8 kB / 443.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.2408, allocations: 37.8 kB / 443.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2408, allocations: 3.984 kB / 443.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001487/0.2409, allocations: 40.84 kB / 443.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.2419, allocations: 159.8 kB / 443.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004013/0.246, allocations: 3.237 MB / 446.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.2462, allocations: 27.92 kB / 446.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.794e-05/0.2463, allocations: 12 kB / 446.6 MB, free: 8.09 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.0002041/0.2465, allocations: 153.7 kB / 446.8 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.665e-05/0.2465, allocations: 47.75 kB / 446.8 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.708e-05/0.2466, allocations: 31.09 kB / 446.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.2466, allocations: 7.984 kB / 446.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.2466, allocations: 0 / 446.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007528/0.2474, allocations: 0.6501 MB / 447.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004666/0.2479, allocations: 393.2 kB / 447.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.2479, allocations: 192 / 447.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.2491, allocations: 203.8 kB / 448.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.249e-05/0.2492, allocations: 24.84 kB / 448.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.2492, allocations: 8 kB / 448.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003359/0.2526, allocations: 3.042 MB / 451.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2526, allocations: 3.984 kB / 451.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008822/0.2535, allocations: 0.5129 MB / 451.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.2537, allocations: 136.9 kB / 451.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.2537, allocations: 8.062 kB / 451.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.254, allocations: 19.98 kB / 451.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.989e-05/0.254, allocations: 27.91 kB / 451.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.2541, allocations: 11.98 kB / 451.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002182/0.2543, allocations: 202 kB / 452.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2543, allocations: 0 / 452.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.2547, allocations: 107.9 kB / 452.2 MB, free: 2.035 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.000134/0.2548, allocations: 111.2 kB / 452.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.2564, allocations: 0.5255 MB / 452.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2564, allocations: 0 / 452.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.2577, allocations: 382.3 kB / 453.2 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005075/0.2582, allocations: 96.47 kB / 453.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.26, allocations: 0.8905 MB / 454.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004093/0.2605, allocations: 0.776 MB / 454.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.429e-05/0.2605, allocations: 39.44 kB / 455 MB, free: 15.12 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2605, allocations: 0 / 455 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Templates: time 0.009417/0.27, allocations: 6.859 MB / 461.8 MB, free: 8.305 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.458625918254256]