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.006438/0.006438, allocations: 109.7 kB / 21.98 MB, free: 5.184 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.001765/0.001765, allocations: 220.6 kB / 25.29 MB, free: 3.203 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.454/1.454, allocations: 230.6 MB / 259 MB, free: 8.016 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.001994/0.001994, allocations: 67.88 kB / 379.8 MB, free: 2.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.262, allocations: 53.37 MB / 433.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00427/0.2662, allocations: 2.791 MB / 435.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.2679, allocations: 0.8606 MB / 436.8 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/0.2681, allocations: 7.938 kB / 436.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.2684, allocations: 75.47 kB / 436.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003297/0.2688, allocations: 142.8 kB / 437 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.269, allocations: 87.88 kB / 437.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005766/0.2696, allocations: 434.3 kB / 437.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.2698, allocations: 67.61 kB / 437.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.27, allocations: 167.5 kB / 437.8 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.2702, allocations: 187.2 kB / 438 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.275e-05/0.2703, allocations: 36 kB / 438 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.212e-05/0.2704, allocations: 32 kB / 438 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.408e-05/0.2704, allocations: 71.77 kB / 438.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000216/0.2707, allocations: 195.1 kB / 438.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005209/0.2712, allocations: 440.8 kB / 438.7 MB, free: 1.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2712, allocations: 3.938 kB / 438.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2712, allocations: 0 / 438.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.2712, allocations: 0 / 438.7 MB, free: 1.434 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.001178/0.2724, allocations: 0.6118 MB / 439.3 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.2724, allocations: 15.97 kB / 439.3 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.2725, allocations: 40.7 kB / 439.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.273, allocations: 246.5 kB / 439.6 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.2731, allocations: 54.69 kB / 439.7 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.871e-05/0.2732, allocations: 20.38 kB / 439.7 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006043/0.2738, allocations: 321.6 kB / 440 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.2738, allocations: 0 / 440 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.2738, allocations: 12 kB / 440 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2738, allocations: 7.984 kB / 440 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004513/0.2743, allocations: 201.7 kB / 440.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.2758, allocations: 0.7744 MB / 441 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005942/0.2764, allocations: 255.7 kB / 441.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000219/0.2767, allocations: 104.8 kB / 441.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.126e-05/0.2767, allocations: 4 kB / 441.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.2767, allocations: 38.56 kB / 441.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.693e-06/0.2767, allocations: 3.938 kB / 441.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0011/0.2778, allocations: 418.2 kB / 441.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002019/0.278, allocations: 316.4 kB / 442.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.2784, allocations: 280.2 kB / 442.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.2784, allocations: 33.7 kB / 442.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.2786, allocations: 168.8 kB / 442.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.2787, allocations: 123 kB / 442.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.2788, allocations: 61.7 kB / 442.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.279, allocations: 342.8 kB / 443.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.2792, allocations: 91.95 kB / 443.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.2795, allocations: 212.6 kB / 443.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.28, allocations: 271.4 kB / 443.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.28, allocations: 0 / 443.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006905/0.2807, allocations: 361.8 kB / 444 MB, free: 11.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.962e-05/0.2808, allocations: 32.36 kB / 444 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2808, allocations: 4 kB / 444.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.2809, allocations: 36.84 kB / 444.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.2819, allocations: 171.8 kB / 444.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003931/0.2859, allocations: 3.025 MB / 447.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003192/0.2862, allocations: 35.92 kB / 447.3 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.2862, allocations: 8.188 kB / 447.3 MB, free: 8.227 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.0002282/0.2864, allocations: 157.8 kB / 447.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.97e-05/0.2865, allocations: 43.7 kB / 447.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.915e-05/0.2866, allocations: 43.08 kB / 447.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2866, allocations: 0 / 447.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.2866, allocations: 0 / 447.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007876/0.2874, allocations: 0.6579 MB / 448.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004913/0.2879, allocations: 360.3 kB / 448.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2879, allocations: 0 / 448.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.2892, allocations: 203.8 kB / 448.8 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.962e-05/0.2893, allocations: 24.78 kB / 448.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.2893, allocations: 8 kB / 448.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003385/0.2927, allocations: 2.827 MB / 451.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2927, allocations: 0 / 451.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009382/0.2936, allocations: 0.5249 MB / 452.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.2938, allocations: 59.77 kB / 452.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.965e-05/0.2939, allocations: 8 kB / 452.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.2941, allocations: 19.98 kB / 452.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.2942, allocations: 24.19 kB / 452.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.2942, allocations: 15.98 kB / 452.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000242/0.2945, allocations: 203.1 kB / 452.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2945, allocations: 0 / 452.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000464/0.2949, allocations: 111.8 kB / 452.6 MB, free: 2.551 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.0001658/0.2951, allocations: 111.2 kB / 452.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.2967, allocations: 0.5252 MB / 453.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2967, allocations: 0 / 453.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.2981, allocations: 386.3 kB / 453.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.2987, allocations: 84.55 kB / 453.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.3005, allocations: 0.8922 MB / 454.6 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.301, allocations: 0.776 MB / 455.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.003e-05/0.3011, allocations: 31.38 kB / 455.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3011, allocations: 3.938 kB / 455.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of Templates: time 0.0104/0.3115, allocations: 6.857 MB / 462.2 MB, free: 8.824 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 8.043731980025768]