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.001796/0.001796, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002179/0.002179, allocations: 211.9 kB / 23.73 MB, free: 4.164 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.526/1.526, allocations: 230.5 MB / 257.4 MB, free: 7.797 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.001965/0.001965, allocations: 67.91 kB / 377.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.253, allocations: 53.41 MB / 431.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003798/0.2568, allocations: 2.563 MB / 433.7 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.2583, allocations: 0.8139 MB / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.2584, allocations: 4 kB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.2587, allocations: 71.41 kB / 434.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002936/0.259, allocations: 142.9 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.2592, allocations: 83.83 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005315/0.2597, allocations: 441.8 kB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.2599, allocations: 60.62 kB / 435.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.2601, allocations: 171.3 kB / 435.4 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.2603, allocations: 159.2 kB / 435.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.291e-05/0.2604, allocations: 32 kB / 435.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.276e-05/0.2605, allocations: 36 kB / 435.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.721e-05/0.2606, allocations: 83.69 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.2607, allocations: 163.3 kB / 435.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004639/0.2612, allocations: 438.7 kB / 436.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2612, allocations: 0 / 436.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2612, allocations: 0 / 436.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.2612, allocations: 0 / 436.3 MB, free: 1.348 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.001075/0.2623, allocations: 0.6196 MB / 437 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.2623, allocations: 11.98 kB / 437 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.579e-05/0.2624, allocations: 71.19 kB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.368e-05/0.2625, allocations: 44.7 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004241/0.2629, allocations: 250.4 kB / 437.3 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.263, allocations: 106.2 kB / 437.4 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.52e-05/0.2631, allocations: 20.38 kB / 437.5 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007485/0.2638, allocations: 0.6818 MB / 438.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.2639, allocations: 0 / 438.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.2639, allocations: 12 kB / 438.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.2639, allocations: 8 kB / 438.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004629/0.2644, allocations: 213.8 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.2658, allocations: 0.7202 MB / 439.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.2664, allocations: 251 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.2666, allocations: 108.8 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.2666, allocations: 4 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.2667, allocations: 42.56 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.673e-06/0.2667, allocations: 0 / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001053/0.2677, allocations: 411 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.2679, allocations: 320.4 kB / 440.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.2682, allocations: 284.2 kB / 440.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.2682, allocations: 37.7 kB / 440.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.2684, allocations: 180.7 kB / 440.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.928e-05/0.2684, allocations: 107 kB / 440.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.2686, allocations: 73.64 kB / 440.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2687, allocations: 342.8 kB / 441.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000226/0.2689, allocations: 117.7 kB / 441.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.2694, allocations: 495.3 kB / 441.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004571/0.2698, allocations: 267.8 kB / 442.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2698, allocations: 0 / 442.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006593/0.2705, allocations: 395.6 kB / 442.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.2705, allocations: 33.64 kB / 442.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2705, allocations: 0 / 442.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.2707, allocations: 40.83 kB / 442.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009974/0.2717, allocations: 163.9 kB / 442.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003775/0.2755, allocations: 3.006 MB / 445.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.2758, allocations: 39.81 kB / 445.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.2758, allocations: 15.94 kB / 445.7 MB, free: 7.16 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.0001952/0.276, allocations: 160.5 kB / 445.9 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.795e-05/0.2761, allocations: 35.81 kB / 445.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.169e-05/0.2761, allocations: 43.02 kB / 446 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.2761, allocations: 0 / 446 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2761, allocations: 7.938 kB / 446 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000759/0.2769, allocations: 0.6462 MB / 446.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004266/0.2773, allocations: 312.5 kB / 446.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2773, allocations: 0 / 446.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.2786, allocations: 203.7 kB / 447.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.085e-05/0.2787, allocations: 28.84 kB / 447.2 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.2787, allocations: 8 kB / 447.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003233/0.2819, allocations: 2.83 MB / 450 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2819, allocations: 0 / 450 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008556/0.2828, allocations: 0.5052 MB / 450.5 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.2829, allocations: 63.77 kB / 450.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.26e-05/0.283, allocations: 7.938 kB / 450.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.2832, allocations: 23.92 kB / 450.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.2833, allocations: 27.89 kB / 450.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.2833, allocations: 7.984 kB / 450.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002099/0.2835, allocations: 203.1 kB / 450.8 MB, free: 1.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2835, allocations: 4.062 kB / 450.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.2839, allocations: 107.9 kB / 450.9 MB, free: 1.555 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.001162/0.2851, allocations: 1.057 MB / 452 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.2867, allocations: 0.5465 MB / 452.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2867, allocations: 3.938 kB / 452.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.288, allocations: 394.3 kB / 452.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005081/0.2885, allocations: 88.47 kB / 453 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005054/0.2936, allocations: 3.519 MB / 456.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.2938, allocations: 173.8 kB / 456.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001691/0.2939, allocations: 38.95 kB / 456.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.2941, allocations: 103.4 kB / 456.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2941, allocations: 4 kB / 456.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04428/0.3384, allocations: 10.88 MB / 467.7 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.45, allocations: 5.75 kB / 467.7 MB, free: 0.7734 MB / 366.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00029988 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.csv","/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.csv. Warning: Get data of variable openTank1.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank1.m in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.m from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.H in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.m in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.m from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.137686137109995]