Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.43/1.43, allocations: 230.6 MB / 258.3 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 47.92 kB / 379 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2328, allocations: 53.37 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004051/0.2369, allocations: 2.777 MB / 435.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.2383, allocations: 0.8646 MB / 436 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.2384, allocations: 7.938 kB / 436 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.2387, allocations: 83.39 kB / 436.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002781/0.239, allocations: 134.9 kB / 436.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.2392, allocations: 95.81 kB / 436.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005186/0.2397, allocations: 432.9 kB / 436.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2398, allocations: 66.48 kB / 436.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.24, allocations: 167.4 kB / 437 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000248/0.2403, allocations: 179.2 kB / 437.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.627e-05/0.2403, allocations: 39.94 kB / 437.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.026e-05/0.2404, allocations: 32 kB / 437.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.126e-05/0.2405, allocations: 75.75 kB / 437.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.2406, allocations: 195.1 kB / 437.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.2411, allocations: 441.9 kB / 437.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2411, allocations: 4 kB / 437.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2411, allocations: 0 / 437.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2411, allocations: 0 / 437.9 MB, free: 1.367 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.001124/0.2423, allocations: 0.6118 MB / 438.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.2423, allocations: 16.03 kB / 438.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.834e-05/0.2424, allocations: 40.7 kB / 438.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.2428, allocations: 242.5 kB / 438.8 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.243, allocations: 106.1 kB / 438.9 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.243, allocations: 20.38 kB / 439 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005241/0.2435, allocations: 321.6 kB / 439.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.2435, allocations: 0 / 439.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.2436, allocations: 12 kB / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.2436, allocations: 4 kB / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004183/0.244, allocations: 209.6 kB / 439.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.2454, allocations: 0.7706 MB / 440.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005404/0.2459, allocations: 255.6 kB / 440.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.2461, allocations: 104.9 kB / 440.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.2461, allocations: 4 kB / 440.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.2462, allocations: 54.56 kB / 440.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.343e-06/0.2462, allocations: 3.938 kB / 440.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009852/0.2472, allocations: 406.2 kB / 441.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001724/0.2474, allocations: 320.4 kB / 441.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.2476, allocations: 284.2 kB / 441.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.2477, allocations: 33.7 kB / 441.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.2478, allocations: 164.8 kB / 441.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.534e-05/0.2479, allocations: 119 kB / 442 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.248, allocations: 65.69 kB / 442 MB, free: 12.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2482, allocations: 338.8 kB / 442.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.2484, allocations: 95.89 kB / 442.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/0.2487, allocations: 213.2 kB / 442.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004549/0.2491, allocations: 271.4 kB / 442.9 MB, free: 12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2491, allocations: 0 / 442.9 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000632/0.2498, allocations: 361.8 kB / 443.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.2498, allocations: 29.7 kB / 443.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2498, allocations: 12.03 kB / 443.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001541/0.25, allocations: 32.94 kB / 443.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009466/0.2509, allocations: 163.7 kB / 443.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/0.2546, allocations: 3.03 MB / 446.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.2549, allocations: 31.92 kB / 446.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.2549, allocations: 11.98 kB / 446.6 MB, free: 8.094 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.0001778/0.2551, allocations: 157.7 kB / 446.8 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.871e-05/0.2552, allocations: 39.77 kB / 446.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.082e-05/0.2553, allocations: 43.08 kB / 446.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2553, allocations: 0 / 446.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.2553, allocations: 0 / 446.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007107/0.256, allocations: 0.6501 MB / 447.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004451/0.2564, allocations: 364.3 kB / 447.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.2564, allocations: 0 / 447.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.2577, allocations: 207.7 kB / 448 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.087e-05/0.2578, allocations: 24.92 kB / 448.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.2578, allocations: 8 kB / 448.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/0.261, allocations: 2.834 MB / 450.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.261, allocations: 0 / 450.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008497/0.2619, allocations: 0.5211 MB / 451.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.262, allocations: 63.75 kB / 451.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.2621, allocations: 8 kB / 451.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.2623, allocations: 24.05 kB / 451.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.2624, allocations: 23.95 kB / 451.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.2624, allocations: 8 kB / 451.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002037/0.2626, allocations: 199.1 kB / 451.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2626, allocations: 0 / 451.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004138/0.263, allocations: 111.8 kB / 451.9 MB, free: 2.422 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.0001374/0.2632, allocations: 112.8 kB / 452 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.2647, allocations: 0.5251 MB / 452.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2647, allocations: 0 / 452.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.266, allocations: 378.4 kB / 452.9 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/0.2665, allocations: 88.55 kB / 452.9 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.2682, allocations: 0.9038 MB / 453.9 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.2686, allocations: 0.776 MB / 454.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.018e-05/0.2687, allocations: 31.38 kB / 454.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of SimCode: time 5.72e-07/0.2687, allocations: 4 kB / 454.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Templates: time 0.009872/0.2786, allocations: 6.841 MB / 461.5 MB, free: 8.703 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.643541899044067]