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.001629/0.001629, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002041/0.002041, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.472/1.472, allocations: 230.3 MB / 258 MB, free: 8.234 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.00192/0.00192, allocations: 71.88 kB / 378.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2248, allocations: 53.36 MB / 432.1 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004303/0.2291, allocations: 2.791 MB / 434.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.2306, allocations: 0.8723 MB / 435.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.2308, allocations: 3.938 kB / 435.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.231, allocations: 79.41 kB / 435.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002979/0.2313, allocations: 138.9 kB / 436 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.2315, allocations: 79.91 kB / 436.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005292/0.232, allocations: 450.3 kB / 436.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.2322, allocations: 59.95 kB / 436.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000235/0.2324, allocations: 159.5 kB / 436.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.2327, allocations: 179.2 kB / 436.9 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.923e-05/0.2328, allocations: 40 kB / 436.9 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.226e-05/0.2328, allocations: 36 kB / 437 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.043e-05/0.2329, allocations: 75.75 kB / 437 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.2331, allocations: 191.1 kB / 437.2 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.2336, allocations: 451.9 kB / 437.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2336, allocations: 0 / 437.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2336, allocations: 0 / 437.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.2336, allocations: 0 / 437.7 MB, free: 1.555 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.001127/0.2347, allocations: 0.6118 MB / 438.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2348, allocations: 12.03 kB / 438.3 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.763e-05/0.2348, allocations: 40.7 kB / 438.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.2353, allocations: 246.5 kB / 438.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.2354, allocations: 46.7 kB / 438.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.2354, allocations: 24.38 kB / 438.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005596/0.236, allocations: 325.5 kB / 439 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.236, allocations: 0 / 439 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.236, allocations: 12 kB / 439 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.2361, allocations: 4 kB / 439 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.2365, allocations: 205.6 kB / 439.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.238, allocations: 0.7744 MB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.2386, allocations: 255.8 kB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.2388, allocations: 104.8 kB / 440.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.2389, allocations: 4 kB / 440.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.2389, allocations: 38.59 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.2389, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001125/0.24, allocations: 418.2 kB / 440.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001877/0.2402, allocations: 312.4 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.2405, allocations: 280.2 kB / 441.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.2406, allocations: 33.7 kB / 441.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.2407, allocations: 180.8 kB / 441.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.17e-05/0.2408, allocations: 107 kB / 441.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.2409, allocations: 69.7 kB / 441.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.2411, allocations: 338.8 kB / 442 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.2413, allocations: 99.89 kB / 442.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/0.2417, allocations: 208.6 kB / 442.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004915/0.2422, allocations: 267.2 kB / 442.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2422, allocations: 0 / 442.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006955/0.2429, allocations: 361.8 kB / 443 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/0.2429, allocations: 37.69 kB / 443 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.2429, allocations: 0 / 443 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.2431, allocations: 48.78 kB / 443 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.2442, allocations: 155.9 kB / 443.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004106/0.2483, allocations: 3.029 MB / 446.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.2486, allocations: 27.92 kB / 446.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.2486, allocations: 12 kB / 446.3 MB, free: 8.359 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.0002254/0.2489, allocations: 162.3 kB / 446.4 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.467e-05/0.2489, allocations: 35.95 kB / 446.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.852e-05/0.249, allocations: 39.08 kB / 446.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.249, allocations: 4 kB / 446.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.249, allocations: 4 kB / 446.5 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007961/0.2498, allocations: 0.6539 MB / 447.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004661/0.2503, allocations: 364.2 kB / 447.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2503, allocations: 0 / 447.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/0.2517, allocations: 211.7 kB / 447.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.74e-05/0.2518, allocations: 20.95 kB / 447.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.2518, allocations: 15.92 kB / 447.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003419/0.2552, allocations: 2.819 MB / 450.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2552, allocations: 0 / 450.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009374/0.2562, allocations: 0.5249 MB / 451.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.2563, allocations: 63.75 kB / 451.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.699e-05/0.2564, allocations: 8 kB / 451.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.2567, allocations: 15.98 kB / 451.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/0.2567, allocations: 23.95 kB / 451.2 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.2568, allocations: 8.234 kB / 451.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.257, allocations: 203.1 kB / 451.4 MB, free: 2.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.257, allocations: 4 kB / 451.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004563/0.2574, allocations: 107.8 kB / 451.5 MB, free: 2.688 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.0001414/0.2576, allocations: 118.2 kB / 451.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.2593, allocations: 0.529 MB / 452.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2593, allocations: 0 / 452.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.2608, allocations: 386.4 kB / 452.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.2613, allocations: 92.45 kB / 452.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/0.2631, allocations: 0.8654 MB / 453.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.2635, allocations: 0.7799 MB / 454.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001494/0.2637, allocations: 34.95 kB / 454.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.697e-05/0.2638, allocations: 27.44 kB / 454.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2638, allocations: 0 / 454.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of Templates: time 0.01321/0.277, allocations: 6.505 MB / 460.8 MB, free: 9.348 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.6755041452124715]