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.0008466/0.0008466, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003482/0.003482, allocations: 165.1 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8766/0.8766, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 2.335e-06/2.335e-06, allocations: 0 / 325.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.289e-05/3.523e-05, allocations: 10.22 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004134/0.00417, allocations: 2.578 MB / 328.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.005786, allocations: 0.8178 MB / 329.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002107/0.005997, allocations: 11.94 kB / 329.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.006291, allocations: 67.42 kB / 329.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003354/0.006626, allocations: 134.9 kB / 329.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.006883, allocations: 95.73 kB / 329.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005361/0.007419, allocations: 466.7 kB / 330 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.007602, allocations: 56.02 kB / 330 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002906/0.007892, allocations: 251.4 kB / 330.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.008094, allocations: 131.7 kB / 330.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-05/0.008155, allocations: 36 kB / 330.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.461e-05/0.008219, allocations: 32 kB / 330.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.331e-05/0.008293, allocations: 79.69 kB / 330.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.008447, allocations: 131.7 kB / 330.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005049/0.008952, allocations: 458.6 kB / 331.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.008957, allocations: 0 / 331.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.008958, allocations: 4 kB / 331.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.008966, allocations: 0 / 331.1 MB, free: 10.13 MB / 298.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.001079/0.01004, allocations: 0.615 MB / 331.7 MB, free: 9.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.01009, allocations: 8.031 kB / 331.7 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.0102, allocations: 44.7 kB / 331.8 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.01067, allocations: 245.7 kB / 332 MB, free: 9.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.0108, allocations: 106.1 kB / 332.1 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.01085, allocations: 24.38 kB / 332.1 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.01152, allocations: 0.6627 MB / 332.8 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.01154, allocations: 4.172 kB / 332.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.01157, allocations: 16.12 kB / 332.8 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.01158, allocations: 4 kB / 332.8 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004078/0.01199, allocations: 205.9 kB / 333 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.01333, allocations: 0.6583 MB / 333.7 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005474/0.01387, allocations: 250.9 kB / 333.9 MB, free: 7.062 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.01407, allocations: 112.8 kB / 334 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.01411, allocations: 4 kB / 334.1 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.01414, allocations: 42.5 kB / 334.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.284e-06/0.01415, allocations: 0 / 334.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001057/0.0152, allocations: 406.2 kB / 334.5 MB, free: 6.488 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001712/0.01538, allocations: 320.4 kB / 334.8 MB, free: 6.102 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.01568, allocations: 280.2 kB / 335.1 MB, free: 5.816 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.01571, allocations: 33.7 kB / 335.1 MB, free: 5.777 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.01584, allocations: 168.8 kB / 335.3 MB, free: 5.609 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.487e-05/0.01592, allocations: 111.1 kB / 335.4 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.01604, allocations: 73.44 kB / 335.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.01616, allocations: 338.8 kB / 335.8 MB, free: 5.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.01639, allocations: 117.7 kB / 335.9 MB, free: 4.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/0.01679, allocations: 495 kB / 336.4 MB, free: 4.363 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.01723, allocations: 267.2 kB / 336.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.01723, allocations: 0 / 336.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006756/0.01791, allocations: 399.4 kB / 337 MB, free: 3.676 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.01795, allocations: 37.7 kB / 337.1 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.01796, allocations: 4.094 kB / 337.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.01813, allocations: 40.83 kB / 337.1 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007635/0.01889, allocations: 155.8 kB / 337.3 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003158/0.02205, allocations: 2.976 MB / 340.2 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.02227, allocations: 28.02 kB / 340.3 MB, free: 232 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.02229, allocations: 16 kB / 340.3 MB, free: 216 kB / 298.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.0001511/0.02244, allocations: 149.8 kB / 340.4 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.02248, allocations: 35.77 kB / 340.5 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.516e-05/0.02255, allocations: 43.09 kB / 340.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.02255, allocations: 4 kB / 340.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.02255, allocations: 0 / 340.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004518/0.023, allocations: 0.6501 MB / 341.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.02325, allocations: 269 kB / 341.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.02325, allocations: 0 / 341.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005628/0.02382, allocations: 211.9 kB / 341.6 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.719e-05/0.02387, allocations: 20.84 kB / 341.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.02389, allocations: 12 kB / 341.7 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001618/0.02551, allocations: 2.777 MB / 344.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.02551, allocations: 3.938 kB / 344.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005043/0.02601, allocations: 0.5016 MB / 344.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.798e-05/0.02611, allocations: 67.64 kB / 345 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.02613, allocations: 12.03 kB / 345 MB, free: 11.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.02626, allocations: 19.92 kB / 345 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.047e-05/0.02632, allocations: 32.02 kB / 345.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.02634, allocations: 7.984 kB / 345.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001303/0.02647, allocations: 207.1 kB / 345.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02647, allocations: 0 / 345.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.02677, allocations: 99.95 kB / 345.4 MB, free: 10.74 MB / 314.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.0001201/0.02689, allocations: 109.6 kB / 345.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008411/0.02773, allocations: 0.5583 MB / 346 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.02773, allocations: 0 / 346 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006098/0.02834, allocations: 382.4 kB / 346.4 MB, free: 9.648 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.02869, allocations: 100.5 kB / 346.5 MB, free: 9.551 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.02978, allocations: 0.7777 MB / 347.3 MB, free: 8.738 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.02988, allocations: 169.8 kB / 347.5 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.721e-05/0.02995, allocations: 28.5 kB / 347.5 MB, free: 8.516 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02995, allocations: 4 kB / 347.5 MB, free: 8.512 MB / 314.7 MB Notification: Performance of Templates: time 0.005904/0.03585, allocations: 7.009 MB / 354.5 MB, free: 1.539 MB / 314.7 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/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_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.728694673627615]