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.001621/0.001621, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 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.00211/0.00211, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 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.382/1.382, allocations: 230.5 MB / 257.4 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 55.91 kB / 377.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2465, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004722/0.2512, allocations: 2.799 MB / 434 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.2529, allocations: 0.8607 MB / 434.8 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002607/0.2532, allocations: 7.938 kB / 434.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003545/0.2536, allocations: 75.34 kB / 434.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004372/0.254, allocations: 146.9 kB / 435 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.2543, allocations: 83.83 kB / 435.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007018/0.255, allocations: 438.4 kB / 435.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.2552, allocations: 63.95 kB / 435.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.2555, allocations: 159.4 kB / 435.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003456/0.2558, allocations: 191.2 kB / 436 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.628e-05/0.2559, allocations: 36 kB / 436 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.085e-05/0.256, allocations: 32 kB / 436 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.089e-05/0.2561, allocations: 71.77 kB / 436.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.2563, allocations: 203 kB / 436.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005847/0.2569, allocations: 438.7 kB / 436.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2569, allocations: 4 kB / 436.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2569, allocations: 0 / 436.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.2569, allocations: 0 / 436.7 MB, free: 1.105 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.001366/0.2583, allocations: 0.6118 MB / 437.3 MB, free: 468 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2583, allocations: 8.031 kB / 437.3 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.2585, allocations: 71.17 kB / 437.4 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.2586, allocations: 44.7 kB / 437.5 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.2591, allocations: 246.4 kB / 437.7 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.2593, allocations: 106.2 kB / 437.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.2593, allocations: 24.38 kB / 437.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000607/0.2599, allocations: 334.4 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.2599, allocations: 0 / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.26, allocations: 16 kB / 438.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.26, allocations: 4 kB / 438.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.2604, allocations: 205.9 kB / 438.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.262, allocations: 0.8019 MB / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005531/0.2626, allocations: 247.6 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.2628, allocations: 104.9 kB / 439.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.2629, allocations: 11.92 kB / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.2629, allocations: 42.59 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 3.176e-06/0.2629, allocations: 3.984 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001014/0.2639, allocations: 415 kB / 440 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001816/0.2641, allocations: 316.4 kB / 440.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.2644, allocations: 280.2 kB / 440.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.2645, allocations: 33.7 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.2646, allocations: 184.7 kB / 440.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.112e-05/0.2647, allocations: 103.1 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.2648, allocations: 69.66 kB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.265, allocations: 350.7 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.2652, allocations: 95.89 kB / 441.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/0.2655, allocations: 208.6 kB / 441.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004796/0.266, allocations: 267.2 kB / 441.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.266, allocations: 0 / 441.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006589/0.2667, allocations: 361.8 kB / 442.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.2667, allocations: 33.8 kB / 442.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2667, allocations: 3.938 kB / 442.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001712/0.2669, allocations: 48.77 kB / 442.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009332/0.2678, allocations: 155.9 kB / 442.4 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003952/0.2718, allocations: 3.026 MB / 445.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.2721, allocations: 35.81 kB / 445.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-05/0.2721, allocations: 12 kB / 445.5 MB, free: 7.695 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.0002033/0.2723, allocations: 156.8 kB / 445.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.2724, allocations: 31.81 kB / 445.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.359e-05/0.2724, allocations: 39.08 kB / 445.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2724, allocations: 4 kB / 445.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.2724, allocations: 3.938 kB / 445.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007472/0.2732, allocations: 0.6539 MB / 446.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000478/0.2737, allocations: 356.4 kB / 446.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2737, allocations: 3.984 kB / 446.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.2749, allocations: 215.7 kB / 447 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.018e-05/0.275, allocations: 24.92 kB / 447 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.275, allocations: 8 kB / 447 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003239/0.2783, allocations: 2.822 MB / 449.8 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2783, allocations: 3.938 kB / 449.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008486/0.2791, allocations: 0.5132 MB / 450.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.2793, allocations: 71.83 kB / 450.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.537e-05/0.2793, allocations: 8 kB / 450.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.2796, allocations: 19.92 kB / 450.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.827e-05/0.2796, allocations: 23.95 kB / 450.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.2796, allocations: 12 kB / 450.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002162/0.2799, allocations: 199.1 kB / 450.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2799, allocations: 0 / 450.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.2803, allocations: 111.9 kB / 450.8 MB, free: 2.031 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.001196/0.2815, allocations: 1.061 MB / 451.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.283, allocations: 0.5254 MB / 452.4 MB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.283, allocations: 4 kB / 452.4 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.2844, allocations: 394.4 kB / 452.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005065/0.2849, allocations: 94.75 kB / 452.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004882/0.2898, allocations: 3.412 MB / 456.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.2902, allocations: 0.7799 MB / 457 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001388/0.2904, allocations: 38.95 kB / 457.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.2905, allocations: 107.4 kB / 457.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2905, allocations: 0 / 457.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04457/0.3351, allocations: 9.893 MB / 467.1 MB, free: 1.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.89, allocations: 12.53 kB / 467.1 MB, free: 1.715 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 15.31781856296584]