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.001696/0.001696, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.00218/0.00218, allocations: 212.6 kB / 24.54 MB, free: 4.016 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.492/1.492, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.002/0.002, allocations: 64.77 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2469, allocations: 53.38 MB / 432.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003932/0.2508, allocations: 2.784 MB / 435.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2523, allocations: 0.8607 MB / 436 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.2524, allocations: 11.94 kB / 436.1 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000279/0.2527, allocations: 79.34 kB / 436.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002963/0.253, allocations: 138.9 kB / 436.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.2532, allocations: 87.81 kB / 436.3 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005301/0.2537, allocations: 438.4 kB / 436.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.2539, allocations: 59.95 kB / 436.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.2541, allocations: 167.4 kB / 437 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.2543, allocations: 183.2 kB / 437.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.679e-05/0.2544, allocations: 32 kB / 437.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.997e-05/0.2544, allocations: 36 kB / 437.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.059e-05/0.2545, allocations: 75.75 kB / 437.3 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002041/0.2547, allocations: 199.1 kB / 437.5 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.2552, allocations: 439.9 kB / 437.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2552, allocations: 0 / 437.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2552, allocations: 4 kB / 437.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.2552, allocations: 3.938 kB / 438 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.001139/0.2564, allocations: 0.6118 MB / 438.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.2564, allocations: 12.03 kB / 438.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.558e-05/0.2565, allocations: 48.69 kB / 438.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.257, allocations: 242.5 kB / 438.9 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.2571, allocations: 46.7 kB / 438.9 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.2571, allocations: 24.38 kB / 438.9 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005785/0.2577, allocations: 325.8 kB / 439.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.2577, allocations: 0 / 439.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.2577, allocations: 8 kB / 439.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.2577, allocations: 4 kB / 439.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/0.2582, allocations: 209.6 kB / 439.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.2596, allocations: 0.7589 MB / 440.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005598/0.2602, allocations: 263.7 kB / 440.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.2604, allocations: 108.8 kB / 440.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.2604, allocations: 4 kB / 440.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.2605, allocations: 46.5 kB / 440.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.333e-06/0.2605, allocations: 0 / 440.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001058/0.2615, allocations: 410.2 kB / 441 MB, free: 14.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/0.2617, allocations: 320.4 kB / 441.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003048/0.262, allocations: 280.2 kB / 441.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.959e-05/0.262, allocations: 37.7 kB / 441.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.2622, allocations: 172.8 kB / 441.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.899e-05/0.2623, allocations: 111 kB / 441.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.2624, allocations: 65.7 kB / 442 MB, free: 13.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.2625, allocations: 346.8 kB / 442.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002172/0.2628, allocations: 87.95 kB / 442.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.2631, allocations: 211.9 kB / 442.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.2635, allocations: 267.5 kB / 442.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.2636, allocations: 3.938 kB / 442.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006569/0.2642, allocations: 361.8 kB / 443.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.2642, allocations: 33.7 kB / 443.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2643, allocations: 4.094 kB / 443.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.2644, allocations: 44.83 kB / 443.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.2654, allocations: 155.8 kB / 443.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003784/0.2692, allocations: 3.037 MB / 446.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.2695, allocations: 27.92 kB / 446.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.2695, allocations: 12 kB / 446.6 MB, free: 8.191 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.0001885/0.2697, allocations: 161.7 kB / 446.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.2698, allocations: 35.77 kB / 446.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.005e-05/0.2698, allocations: 39.17 kB / 446.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.2699, allocations: 11.94 kB / 446.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.2699, allocations: 0 / 446.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007302/0.2706, allocations: 0.6462 MB / 447.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004436/0.271, allocations: 356.3 kB / 447.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.271, allocations: 4 kB / 447.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/0.2723, allocations: 207.7 kB / 448 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.431e-05/0.2724, allocations: 24.84 kB / 448 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.2724, allocations: 7.984 kB / 448 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003254/0.2757, allocations: 2.835 MB / 450.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2757, allocations: 4.031 kB / 450.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009071/0.2766, allocations: 0.5131 MB / 451.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.2768, allocations: 67.75 kB / 451.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.2768, allocations: 8 kB / 451.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.2771, allocations: 20.05 kB / 451.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.189e-05/0.2771, allocations: 27.89 kB / 451.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.2772, allocations: 8 kB / 451.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.2774, allocations: 199.1 kB / 451.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2774, allocations: 4 kB / 451.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004464/0.2778, allocations: 99.89 kB / 451.8 MB, free: 2.527 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.0001451/0.278, allocations: 111.4 kB / 451.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.2795, allocations: 0.529 MB / 452.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2795, allocations: 0 / 452.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.2809, allocations: 386.4 kB / 452.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.2814, allocations: 99.11 kB / 452.9 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.2832, allocations: 0.8641 MB / 453.8 MB, free: 488 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.2836, allocations: 0.7799 MB / 454.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001454/0.2837, allocations: 38.95 kB / 454.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.814e-05/0.2838, allocations: 27.44 kB / 454.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2838, allocations: 4 kB / 454.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Templates: time 0.012/0.2958, allocations: 6.509 MB / 461.1 MB, free: 9.188 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/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-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.758299894630909]