Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00183/0.00183, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.002212/0.002212, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.494/1.494, allocations: 230.5 MB / 254.8 MB, free: 15.11 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-beta.om/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_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 67.84 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1103, allocations: 53.33 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004162/0.1145, allocations: 2.788 MB / 429.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.116, allocations: 0.8568 MB / 430.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.1162, allocations: 7.938 kB / 430.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.1165, allocations: 67.41 kB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003116/0.1168, allocations: 146.9 kB / 430.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002218/0.117, allocations: 79.83 kB / 430.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005596/0.1176, allocations: 445.5 kB / 431.4 MB, free: 436 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.1177, allocations: 63.33 kB / 431.4 MB, free: 368 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.118, allocations: 159.4 kB / 431.6 MB, free: 208 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.1182, allocations: 179.3 kB / 431.8 MB, free: 28 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2066/0.3248, allocations: 32.77 kB / 431.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.3249, allocations: 33.94 kB / 431.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.325, allocations: 81.75 kB / 431.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002089/0.3252, allocations: 191.4 kB / 432.1 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005185/0.3257, allocations: 447 kB / 432.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3257, allocations: 1.094 kB / 432.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3257, allocations: 0 / 432.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.3257, allocations: 0 / 432.5 MB, free: 7.918 MB / 350.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.001007/0.3267, allocations: 0.6875 MB / 433.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3268, allocations: 10.31 kB / 433.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.986e-05/0.3269, allocations: 70.55 kB / 433.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.563e-05/0.3269, allocations: 47.78 kB / 433.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.3273, allocations: 299.2 kB / 433.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-05/0.3274, allocations: 53.38 kB / 433.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.3275, allocations: 25.41 kB / 433.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/0.3279, allocations: 338.8 kB / 434 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3279, allocations: 4.766 kB / 434 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.3279, allocations: 10.72 kB / 434.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.328, allocations: 6.281 kB / 434.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.3283, allocations: 209.9 kB / 434.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.3295, allocations: 0.8248 MB / 435.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.3301, allocations: 249.6 kB / 435.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.3302, allocations: 106.3 kB / 435.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.3303, allocations: 9.781 kB / 435.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.3303, allocations: 38.94 kB / 435.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.553e-06/0.3303, allocations: 3.062 kB / 435.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009957/0.3313, allocations: 487.6 kB / 436 MB, free: 6.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.3314, allocations: 317.6 kB / 436.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.3316, allocations: 280.3 kB / 436.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.3316, allocations: 33.14 kB / 436.6 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.128e-05/0.3317, allocations: 185.5 kB / 436.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.15e-05/0.3318, allocations: 107.3 kB / 436.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.3319, allocations: 72.11 kB / 436.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.14e-05/0.3319, allocations: 342.2 kB / 437.3 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.3321, allocations: 91.14 kB / 437.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002694/0.3324, allocations: 213.2 kB / 437.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004035/0.3328, allocations: 257.6 kB / 437.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.3328, allocations: 3.531 kB / 437.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005995/0.3334, allocations: 367.6 kB / 438.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.3335, allocations: 32.34 kB / 438.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3335, allocations: 1.062 kB / 438.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001657/0.3336, allocations: 40.28 kB / 438.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009842/0.3346, allocations: 160.2 kB / 438.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002992/0.3376, allocations: 3.231 MB / 441.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.3379, allocations: 36.2 kB / 441.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.338, allocations: 10.47 kB / 441.7 MB, free: 2.125 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.0001751/0.3381, allocations: 158 kB / 441.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.914e-05/0.3382, allocations: 34.56 kB / 441.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.409e-05/0.3383, allocations: 39.75 kB / 441.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.3383, allocations: 3.219 kB / 441.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3383, allocations: 4.734 kB / 441.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005693/0.3389, allocations: 0.6494 MB / 442.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004664/0.3393, allocations: 393.6 kB / 443 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3394, allocations: 0 / 443 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.3407, allocations: 206.7 kB / 443.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.102e-05/0.3407, allocations: 26.61 kB / 443.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.3408, allocations: 3.641 kB / 443.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003462/0.3442, allocations: 3.043 MB / 446.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3442, allocations: 3.938 kB / 446.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.3452, allocations: 0.5053 MB / 446.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.3455, allocations: 143.8 kB / 446.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.3455, allocations: 13.16 kB / 446.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.3458, allocations: 18.33 kB / 446.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.3459, allocations: 25.33 kB / 446.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.3459, allocations: 11.59 kB / 446.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002925/0.3462, allocations: 199.5 kB / 447.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3462, allocations: 5 kB / 447.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005551/0.3468, allocations: 105.1 kB / 447.2 MB, free: 13.53 MB / 366.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.001414/0.3482, allocations: 1.066 MB / 448.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.3499, allocations: 0.5247 MB / 448.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.3499, allocations: 1.125 kB / 448.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.3513, allocations: 391.2 kB / 449.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005652/0.3519, allocations: 88.53 kB / 449.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005457/0.3573, allocations: 3.404 MB / 452.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.3578, allocations: 0.784 MB / 453.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.3581, allocations: 40.59 kB / 453.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.3582, allocations: 105.4 kB / 453.6 MB, free: 9.32 MB / 366.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3582, allocations: 0 / 453.6 MB, free: 9.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04207/0.4003, allocations: 9.704 MB / 463.3 MB, free: 6.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.62, allocations: 5.172 kB / 463.3 MB, free: 6.488 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.229942683130503] Failed to read output from testmodel.py, exit status != 0: ['time', 'openTank1.H', 'openTank1.m', 'openTank2.H', 'openTank2.m'] 12.722682988736778 12.748063147 12.417715326 Calling exit ...