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.001715/0.001715, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002226/0.002226, allocations: 206 kB / 23.73 MB, free: 4.523 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.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001693/0.001693, allocations: 51.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2569, allocations: 53.37 MB / 431.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003934/0.2609, allocations: 2.571 MB / 434.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.2623, allocations: 0.8139 MB / 434.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.2624, allocations: 0 / 434.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002731/0.2627, allocations: 79.41 kB / 435 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.263, allocations: 138.9 kB / 435.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002085/0.2632, allocations: 83.83 kB / 435.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005212/0.2637, allocations: 438.4 kB / 435.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.2639, allocations: 70.47 kB / 435.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.2641, allocations: 159.4 kB / 435.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.2643, allocations: 183.2 kB / 436.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.556e-05/0.2644, allocations: 36 kB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.541e-05/0.2645, allocations: 36 kB / 436.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.2645, allocations: 71.77 kB / 436.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.2647, allocations: 167.2 kB / 436.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.2652, allocations: 449.9 kB / 436.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2652, allocations: 0 / 436.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2652, allocations: 0 / 436.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.2652, allocations: 4 kB / 436.8 MB, free: 1.461 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.001176/0.2664, allocations: 0.6079 MB / 437.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.2664, allocations: 12.03 kB / 437.4 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.014e-05/0.2665, allocations: 40.7 kB / 437.5 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004413/0.267, allocations: 254.5 kB / 437.7 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.2671, allocations: 102 kB / 437.8 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.2672, allocations: 20.38 kB / 437.8 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007764/0.2679, allocations: 0.6694 MB / 438.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.268, allocations: 0 / 438.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.268, allocations: 12 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.268, allocations: 4 kB / 438.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004378/0.2684, allocations: 197.6 kB / 438.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.2698, allocations: 0.662 MB / 439.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.2704, allocations: 255.7 kB / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.2706, allocations: 108.8 kB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.2706, allocations: 8 kB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.2707, allocations: 38.56 kB / 439.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.523e-06/0.2707, allocations: 0 / 439.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001032/0.2717, allocations: 418.2 kB / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.2719, allocations: 312.4 kB / 440.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.2722, allocations: 288.2 kB / 440.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.2722, allocations: 37.7 kB / 440.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.2724, allocations: 168.8 kB / 441 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.618e-05/0.2725, allocations: 111 kB / 441.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.2726, allocations: 65.7 kB / 441.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.2727, allocations: 346.8 kB / 441.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.273, allocations: 113.7 kB / 441.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004853/0.2734, allocations: 496 kB / 442.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004809/0.2739, allocations: 267.5 kB / 442.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2739, allocations: 0 / 442.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006654/0.2746, allocations: 403.3 kB / 442.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.2746, allocations: 29.7 kB / 442.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.2746, allocations: 0 / 442.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001554/0.2748, allocations: 36.94 kB / 442.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000988/0.2758, allocations: 163.8 kB / 443 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003803/0.2796, allocations: 2.972 MB / 445.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.2799, allocations: 31.88 kB / 446 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.2799, allocations: 12.09 kB / 446 MB, free: 7.555 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.0002118/0.2801, allocations: 164 kB / 446.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.428e-05/0.2802, allocations: 43.73 kB / 446.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.397e-05/0.2803, allocations: 35.08 kB / 446.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.2803, allocations: 4 kB / 446.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.2803, allocations: 0 / 446.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007612/0.281, allocations: 0.6462 MB / 446.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003978/0.2814, allocations: 269.2 kB / 447.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.2814, allocations: 8 kB / 447.1 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.2828, allocations: 211.7 kB / 447.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.5e-05/0.2828, allocations: 24.84 kB / 447.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.2829, allocations: 4 kB / 447.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003261/0.2861, allocations: 2.784 MB / 450.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2861, allocations: 0 / 450.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008743/0.287, allocations: 0.5091 MB / 450.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.2871, allocations: 67.69 kB / 450.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.051e-05/0.2872, allocations: 11.94 kB / 450.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.2875, allocations: 15.98 kB / 450.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.601e-05/0.2875, allocations: 23.95 kB / 450.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.2876, allocations: 12.06 kB / 450.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002283/0.2878, allocations: 203.1 kB / 451 MB, free: 2.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2878, allocations: 0 / 451 MB, free: 2.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004469/0.2882, allocations: 107.9 kB / 451.1 MB, free: 2.062 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.0001483/0.2884, allocations: 107.2 kB / 451.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.29, allocations: 0.5469 MB / 451.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.29, allocations: 0 / 451.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/0.2914, allocations: 390.3 kB / 452.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.292, allocations: 100.5 kB / 452.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.2939, allocations: 0.8658 MB / 453.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.2941, allocations: 173.6 kB / 453.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.2943, allocations: 38.95 kB / 453.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.821e-05/0.2944, allocations: 31.42 kB / 453.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.2944, allocations: 0 / 453.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of Templates: time 0.01376/0.3081, allocations: 7.236 MB / 460.6 MB, free: 8.66 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/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.867021441925317]