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.001275/0.001275, allocations: 112.4 kB / 21.17 MB, free: 0.6172 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.001367/0.001367, allocations: 205.6 kB / 24.46 MB, free: 4.023 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.463/1.463, allocations: 230.4 MB / 258.1 MB, free: 8.133 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.001989/0.001989, allocations: 71.83 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.253, allocations: 53.31 MB / 432 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004171/0.2572, allocations: 2.788 MB / 434.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.2586, allocations: 0.8685 MB / 435.7 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.2588, allocations: 4 kB / 435.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002798/0.259, allocations: 67.42 kB / 435.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002998/0.2593, allocations: 146.9 kB / 435.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.2596, allocations: 83.81 kB / 436 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005442/0.2601, allocations: 438.4 kB / 436.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.2603, allocations: 55.39 kB / 436.5 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.2604, allocations: 167.4 kB / 436.6 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002709/0.2607, allocations: 179.2 kB / 436.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.2608, allocations: 32 kB / 436.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.305e-05/0.2608, allocations: 36 kB / 436.9 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.843e-05/0.2609, allocations: 75.75 kB / 436.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.2611, allocations: 195.1 kB / 437.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005012/0.2616, allocations: 448.2 kB / 437.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2616, allocations: 3.938 kB / 437.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2616, allocations: 0 / 437.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.2616, allocations: 4 kB / 437.6 MB, free: 1.797 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.001218/0.2628, allocations: 0.6871 MB / 438.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2629, allocations: 8.031 kB / 438.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.911e-05/0.263, allocations: 44.7 kB / 438.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004954/0.2635, allocations: 303.6 kB / 438.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.2636, allocations: 54.67 kB / 438.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.2636, allocations: 24.31 kB / 438.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005511/0.2642, allocations: 321.6 kB / 439 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.2642, allocations: 0 / 439 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.2642, allocations: 8 kB / 439 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.2642, allocations: 4 kB / 439 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.2647, allocations: 205.6 kB / 439.2 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.2662, allocations: 0.8026 MB / 440 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005844/0.2667, allocations: 255 kB / 440.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.267, allocations: 105.3 kB / 440.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.267, allocations: 11.98 kB / 440.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.267, allocations: 38.56 kB / 440.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.443e-06/0.267, allocations: 0 / 440.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001122/0.2682, allocations: 491.4 kB / 440.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000196/0.2684, allocations: 316.4 kB / 441.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.2687, allocations: 279 kB / 441.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.2687, allocations: 29.7 kB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.2689, allocations: 176.8 kB / 441.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.269, allocations: 107.1 kB / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.2691, allocations: 61.7 kB / 441.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2693, allocations: 342.8 kB / 442.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.2695, allocations: 95.95 kB / 442.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.2698, allocations: 212.6 kB / 442.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004899/0.2703, allocations: 267.4 kB / 442.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2703, allocations: 0 / 442.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00069/0.271, allocations: 369.8 kB / 443.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/0.2711, allocations: 29.7 kB / 443.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2711, allocations: 4 kB / 443.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001543/0.2712, allocations: 40.83 kB / 443.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.2723, allocations: 159.8 kB / 443.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/0.2766, allocations: 3.245 MB / 446.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.2769, allocations: 27.92 kB / 446.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.2769, allocations: 12 kB / 446.6 MB, free: 8.051 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.0002096/0.2772, allocations: 153.8 kB / 446.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.567e-05/0.2772, allocations: 43.7 kB / 446.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.607e-05/0.2773, allocations: 39.08 kB / 446.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2773, allocations: 4 kB / 446.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2773, allocations: 0 / 446.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008819/0.2782, allocations: 0.6501 MB / 447.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004883/0.2787, allocations: 381.4 kB / 447.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2787, allocations: 7.938 kB / 447.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/0.28, allocations: 211.7 kB / 448.1 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.317e-05/0.2801, allocations: 24.84 kB / 448.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.2801, allocations: 8 kB / 448.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003673/0.2838, allocations: 3.041 MB / 451.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2838, allocations: 0 / 451.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009904/0.2848, allocations: 0.513 MB / 451.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/0.285, allocations: 136.9 kB / 451.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.103e-05/0.285, allocations: 12.06 kB / 451.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.2853, allocations: 19.92 kB / 451.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-05/0.2854, allocations: 19.97 kB / 451.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.2854, allocations: 12 kB / 451.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.2857, allocations: 201.9 kB / 452.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2857, allocations: 0 / 452.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004533/0.2861, allocations: 107.9 kB / 452.2 MB, free: 2 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.000152/0.2863, allocations: 111.2 kB / 452.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.2879, allocations: 0.5293 MB / 452.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.2879, allocations: 0 / 452.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.2894, allocations: 386.3 kB / 453.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005829/0.29, allocations: 100.6 kB / 453.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.292, allocations: 0.8652 MB / 454.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.2924, allocations: 0.776 MB / 454.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.2926, allocations: 38.95 kB / 455 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.342e-05/0.2926, allocations: 35.44 kB / 455 MB, free: 15.07 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2926, allocations: 0 / 455 MB, free: 15.07 MB / 366.1 MB Notification: Performance of Templates: time 0.01262/0.3053, allocations: 6.437 MB / 461.4 MB, free: 8.734 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 -s cvode -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: 4.731378765311092]