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.001357/0.001357, allocations: 109.1 kB / 21.22 MB, free: 0.6445 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.001279/0.001279, allocations: 209.3 kB / 24.51 MB, free: 3.941 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.331/1.331, allocations: 230.5 MB / 258.2 MB, free: 7.805 MB / 206.1 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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 59.91 kB / 378.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.235, allocations: 53.41 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003667/0.2387, allocations: 2.567 MB / 434.5 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.2399, allocations: 0.8082 MB / 435.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.24, allocations: 11.88 kB / 435.3 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002353/0.2403, allocations: 79.41 kB / 435.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002697/0.2405, allocations: 138.9 kB / 435.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.2407, allocations: 79.91 kB / 435.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004912/0.2412, allocations: 446.3 kB / 436 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.2414, allocations: 63.95 kB / 436.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.2415, allocations: 155.5 kB / 436.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.2418, allocations: 183.2 kB / 436.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.977e-05/0.2418, allocations: 36 kB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.2419, allocations: 32 kB / 436.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.119e-05/0.242, allocations: 83.75 kB / 436.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.2422, allocations: 163.3 kB / 436.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004571/0.2426, allocations: 446.2 kB / 437.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2426, allocations: 0 / 437.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2426, allocations: 4 kB / 437.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.2426, allocations: 0 / 437.1 MB, free: 1.191 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.001072/0.2437, allocations: 0.6118 MB / 437.8 MB, free: 0.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2438, allocations: 12.03 kB / 437.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.844e-05/0.2438, allocations: 8.641 kB / 437.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.814e-05/0.2439, allocations: 67.22 kB / 437.8 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.205e-05/0.244, allocations: 48.66 kB / 437.9 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.2444, allocations: 254.4 kB / 438.1 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.2445, allocations: 110.1 kB / 438.2 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.63e-05/0.2446, allocations: 32.17 kB / 438.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007614/0.2453, allocations: 0.6896 MB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2453, allocations: 0 / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.2454, allocations: 12 kB / 439 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2454, allocations: 8 kB / 439 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004616/0.2458, allocations: 217.9 kB / 439.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.2473, allocations: 0.8061 MB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006158/0.248, allocations: 297.1 kB / 440.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.2482, allocations: 137.5 kB / 440.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.2482, allocations: 8.312 kB / 440.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.2483, allocations: 38.89 kB / 440.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.563e-06/0.2483, allocations: 4 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003802/0.2521, allocations: 1.427 MB / 441.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001825/0.2523, allocations: 320.9 kB / 442.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002911/0.2526, allocations: 276.2 kB / 442.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.31e-05/0.2526, allocations: 37.7 kB / 442.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.2527, allocations: 176.8 kB / 442.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.2529, allocations: 182.4 kB / 442.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.253, allocations: 94.19 kB / 443 MB, free: 10.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2532, allocations: 342.8 kB / 443.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003673/0.2536, allocations: 178.6 kB / 443.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005905/0.2541, allocations: 0.5509 MB / 444 MB, free: 9.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007046/0.2548, allocations: 398.8 kB / 444.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2549, allocations: 3.938 kB / 444.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000934/0.2558, allocations: 0.5365 MB / 445 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.2558, allocations: 33.73 kB / 445 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.2558, allocations: 7.984 kB / 445 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.256, allocations: 36.84 kB / 445 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002409/0.2584, allocations: 347.6 kB / 445.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003661/0.262, allocations: 3.002 MB / 448.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.2624, allocations: 32.11 kB / 448.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.2624, allocations: 16 kB / 448.4 MB, free: 5.098 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 (54): * Single equations (assignments): 51 * 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.0002075/0.2626, allocations: 160.8 kB / 448.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.283e-05/0.2627, allocations: 55.59 kB / 448.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.2628, allocations: 47.73 kB / 448.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2628, allocations: 4 kB / 448.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2628, allocations: 0 / 448.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009845/0.2638, allocations: 0.797 MB / 449.5 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00173/0.2655, allocations: 0.9431 MB / 450.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2655, allocations: 0 / 450.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001874/0.2674, allocations: 263.7 kB / 450.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.66e-05/0.2675, allocations: 28.84 kB / 450.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/0.2675, allocations: 8 kB / 450.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.2685, allocations: 1.323 MB / 452 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2685, allocations: 0 / 452 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.2698, allocations: 0.7463 MB / 452.8 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.27, allocations: 79.81 kB / 452.9 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.682e-05/0.27, allocations: 12 kB / 452.9 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.2703, allocations: 19.98 kB / 452.9 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.2704, allocations: 36.38 kB / 452.9 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.2704, allocations: 11.98 kB / 452.9 MB, free: 272 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002074/0.2707, allocations: 207.1 kB / 453.1 MB, free: 64 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2707, allocations: 0 / 453.1 MB, free: 64 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004275/0.2711, allocations: 120 kB / 453.3 MB, free: 15.94 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 ($outputAlias_V_flow,$outputAlias_T1,$outputAlias_level2,$outputAlias_T2) * 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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.00159/0.2727, allocations: 1.298 MB / 454.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.2745, allocations: 0.6846 MB / 455.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.2745, allocations: 4 kB / 455.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004908/0.275, allocations: 313 kB / 455.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005177/0.2755, allocations: 99.19 kB / 455.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/0.2813, allocations: 4.076 MB / 459.7 MB, free: 9.281 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/0.2815, allocations: 191.1 kB / 459.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001889/0.2817, allocations: 47.2 kB / 460 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/0.2819, allocations: 127.4 kB / 460.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2819, allocations: 0 / 460.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0391/0.321, allocations: 12.07 MB / 472.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.83, allocations: 19.84 kB / 472.2 MB, free: 13.07 MB / 382.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] "Error: Could not read variable openTank1.H in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.268258670927025]