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.001779/0.001779, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002183/0.002183, allocations: 206.6 kB / 24.47 MB, free: 3.977 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.505/1.505, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.001574/0.001574, allocations: 55.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2083, allocations: 53.35 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003788/0.2121, allocations: 2.569 MB / 434.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.2135, allocations: 0.81 MB / 435.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.2136, allocations: 7.938 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002458/0.2138, allocations: 79.42 kB / 435.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002894/0.2141, allocations: 134.9 kB / 435.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.2143, allocations: 83.88 kB / 436 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005185/0.2148, allocations: 442.3 kB / 436.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.215, allocations: 74.84 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.2152, allocations: 159.5 kB / 436.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.2154, allocations: 187.2 kB / 436.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.2155, allocations: 36 kB / 436.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.042e-05/0.2156, allocations: 32 kB / 436.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-05/0.2156, allocations: 75.7 kB / 437 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.2158, allocations: 159.4 kB / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004923/0.2163, allocations: 442 kB / 437.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2163, allocations: 11.94 kB / 437.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2163, allocations: 0 / 437.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.2163, allocations: 4 kB / 437.6 MB, free: 1.445 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.001194/0.2175, allocations: 0.604 MB / 438.2 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.2176, allocations: 8.031 kB / 438.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.19e-05/0.2177, allocations: 48.7 kB / 438.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004338/0.2181, allocations: 250.4 kB / 438.5 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.2182, allocations: 106.1 kB / 438.6 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.95e-05/0.2183, allocations: 16.38 kB / 438.6 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000785/0.2191, allocations: 0.6694 MB / 439.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.2191, allocations: 4 kB / 439.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.2191, allocations: 4 kB / 439.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.2191, allocations: 8 kB / 439.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.2196, allocations: 201.6 kB / 439.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.221, allocations: 0.6581 MB / 440.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.2216, allocations: 255.7 kB / 440.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.2218, allocations: 108.8 kB / 440.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.2218, allocations: 8 kB / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.2219, allocations: 38.56 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.2219, allocations: 96 / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001099/0.223, allocations: 418.2 kB / 440.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001782/0.2231, allocations: 312.4 kB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.2235, allocations: 292.2 kB / 441.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.302e-05/0.2235, allocations: 33.7 kB / 441.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.2237, allocations: 168.8 kB / 441.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.2238, allocations: 115 kB / 441.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.2239, allocations: 61.7 kB / 441.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.2241, allocations: 342.8 kB / 442.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.2243, allocations: 125.7 kB / 442.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005245/0.2248, allocations: 0.492 MB / 442.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004857/0.2253, allocations: 267.5 kB / 443.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2253, allocations: 0 / 443.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007191/0.226, allocations: 391.4 kB / 443.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.2261, allocations: 33.7 kB / 443.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.2261, allocations: 0 / 443.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.2262, allocations: 48.81 kB / 443.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.2273, allocations: 155.8 kB / 443.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003864/0.2312, allocations: 2.968 MB / 446.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.2315, allocations: 31.88 kB / 446.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.2315, allocations: 16.08 kB / 446.7 MB, free: 7.531 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.0001827/0.2317, allocations: 163.8 kB / 446.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.2317, allocations: 35.75 kB / 446.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.594e-05/0.2318, allocations: 39.08 kB / 447 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.2318, allocations: 4 kB / 447 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.2318, allocations: 0 / 447 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007512/0.2326, allocations: 0.6462 MB / 447.6 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.233, allocations: 273 kB / 447.9 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.233, allocations: 4 kB / 447.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/0.2345, allocations: 211.7 kB / 448.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.139e-05/0.2345, allocations: 24.84 kB / 448.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.2345, allocations: 4 kB / 448.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003402/0.2379, allocations: 2.777 MB / 450.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.2379, allocations: 4 kB / 450.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008865/0.2388, allocations: 0.5132 MB / 451.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.239, allocations: 63.75 kB / 451.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/0.239, allocations: 11.94 kB / 451.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002837/0.2393, allocations: 19.98 kB / 451.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.147e-05/0.2394, allocations: 23.95 kB / 451.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.2394, allocations: 12.06 kB / 451.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.2396, allocations: 199.1 kB / 451.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2396, allocations: 0 / 451.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004206/0.24, allocations: 107.9 kB / 451.9 MB, free: 2.047 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.0001264/0.2402, allocations: 111.2 kB / 452 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.2418, allocations: 0.5502 MB / 452.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2418, allocations: 0 / 452.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.2434, allocations: 398.3 kB / 452.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.2439, allocations: 87.44 kB / 453 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.2457, allocations: 0.8635 MB / 453.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.2459, allocations: 173.6 kB / 454 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.246, allocations: 34.97 kB / 454.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.813e-05/0.2461, allocations: 31.42 kB / 454.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2461, allocations: 0 / 454.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01294/0.259, allocations: 7.241 MB / 461.3 MB, free: 8.645 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 -s gbode -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: 4.587451884988695]