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.001137/0.001137, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001138/0.001138, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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.049/1.049, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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 2.394e-06/2.394e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.98e-05/4.219e-05, allocations: 9.203 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003258/0.0033, allocations: 2.792 MB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.004742, allocations: 0.845 MB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.004912, allocations: 0 / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002865/0.005198, allocations: 75.41 kB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.005471, allocations: 142.9 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.005689, allocations: 95.69 kB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004592/0.006148, allocations: 454.2 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.006312, allocations: 67.94 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.006574, allocations: 247.4 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.006751, allocations: 131.7 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.705e-05/0.006798, allocations: 36 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.545e-05/0.006844, allocations: 36 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.006898, allocations: 79.67 kB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.007024, allocations: 131.8 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000308/0.007332, allocations: 302.9 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.007336, allocations: 0 / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.007337, allocations: 0 / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.007344, allocations: 0 / 278.3 MB, free: 12.05 MB / 266.7 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.0009181/0.008262, allocations: 0.7157 MB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.008306, allocations: 11.98 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.354e-05/0.008399, allocations: 60.7 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.008718, allocations: 240.5 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-05/0.008817, allocations: 106.2 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.008863, allocations: 28.38 kB / 279.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004374/0.0093, allocations: 0.6471 MB / 280.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.009314, allocations: 192 / 280.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.009338, allocations: 16.12 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.009347, allocations: 4 kB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.009519, allocations: 110.8 kB / 280.2 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000971/0.01049, allocations: 0.6888 MB / 280.9 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.01079, allocations: 178.5 kB / 281.1 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.01089, allocations: 71.66 kB / 281.1 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.01093, allocations: 7.984 kB / 281.2 MB, free: 8.902 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.01096, allocations: 49.36 kB / 281.2 MB, free: 8.844 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.956e-06/0.01096, allocations: 0 / 281.2 MB, free: 8.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006025/0.01157, allocations: 301.8 kB / 281.5 MB, free: 8.539 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.01167, allocations: 312.4 kB / 281.8 MB, free: 8.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.01191, allocations: 330.3 kB / 282.1 MB, free: 7.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.01194, allocations: 33.7 kB / 282.2 MB, free: 7.781 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.01205, allocations: 223.5 kB / 282.4 MB, free: 7.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.314e-05/0.01211, allocations: 107.1 kB / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.01219, allocations: 75.25 kB / 282.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003851/0.01258, allocations: 0.5157 MB / 283.1 MB, free: 6.844 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.01269, allocations: 81.67 kB / 283.2 MB, free: 6.758 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002535/0.01294, allocations: 478.3 kB / 283.6 MB, free: 6.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.01317, allocations: 194 kB / 283.8 MB, free: 5.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.01318, allocations: 0 / 283.8 MB, free: 5.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004199/0.0136, allocations: 326.2 kB / 284.1 MB, free: 5.609 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.01364, allocations: 29.7 kB / 284.2 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.01365, allocations: 4.094 kB / 284.2 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001806/0.01383, allocations: 35.67 kB / 284.2 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/0.01426, allocations: 131.8 kB / 284.3 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.01645, allocations: 3.741 MB / 288.1 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.0166, allocations: 27.84 kB / 288.1 MB, free: 1.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.01662, allocations: 15.98 kB / 288.1 MB, free: 1.379 MB / 266.7 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.0001247/0.01674, allocations: 176.5 kB / 288.3 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.619e-05/0.0168, allocations: 47.84 kB / 288.3 MB, free: 1.148 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.022e-05/0.01685, allocations: 39.02 kB / 288.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01685, allocations: 4 kB / 288.4 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.01686, allocations: 4.188 kB / 288.4 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003557/0.01721, allocations: 0.5828 MB / 289 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.01746, allocations: 272.4 kB / 289.2 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01746, allocations: 0 / 289.2 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005779/0.01804, allocations: 187.8 kB / 289.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.609e-05/0.0181, allocations: 23.62 kB / 289.4 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.01812, allocations: 3.984 kB / 289.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001914/0.02004, allocations: 3.632 MB / 293.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.02004, allocations: 3.938 kB / 293.1 MB, free: 12.01 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.02045, allocations: 435.2 kB / 293.5 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.763e-05/0.02054, allocations: 63.8 kB / 293.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/0.02057, allocations: 8 kB / 293.6 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.0207, allocations: 15.98 kB / 293.6 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.64e-05/0.02077, allocations: 27.89 kB / 293.6 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.02079, allocations: 12 kB / 293.6 MB, free: 11.44 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001356/0.02092, allocations: 223 kB / 293.8 MB, free: 11.22 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02092, allocations: 0 / 293.8 MB, free: 11.22 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002986/0.02122, allocations: 104 kB / 293.9 MB, free: 11.12 MB / 282.7 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.0001244/0.02135, allocations: 111.2 kB / 294 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007827/0.02213, allocations: 0.5061 MB / 294.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.02213, allocations: 4.188 kB / 294.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006166/0.02275, allocations: 401.7 kB / 294.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.0231, allocations: 88.62 kB / 295 MB, free: 9.949 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.02461, allocations: 0.7636 MB / 295.8 MB, free: 9.156 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.7e-05/0.02469, allocations: 97.3 kB / 295.9 MB, free: 9.043 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.0248, allocations: 34.97 kB / 295.9 MB, free: 9.004 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.11e-05/0.02486, allocations: 32.48 kB / 296 MB, free: 8.973 MB / 282.7 MB Notification: Performance of SimCode: time 1.192e-06/0.02487, allocations: 0 / 296 MB, free: 8.973 MB / 282.7 MB Notification: Performance of Templates: time 0.009196/0.03406, allocations: 6.737 MB / 302.7 MB, free: 2.398 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3740116260014474]