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.001286/0.001286, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001431/0.001431, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.409/1.409, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.001924/0.001924, allocations: 60.78 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2481, allocations: 53.36 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003912/0.252, allocations: 2.787 MB / 434.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.2534, allocations: 0.8607 MB / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.2536, allocations: 11.88 kB / 435.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002584/0.2538, allocations: 75.42 kB / 435.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.2541, allocations: 142.9 kB / 435.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.2543, allocations: 83.83 kB / 435.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005265/0.2548, allocations: 445 kB / 436.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.255, allocations: 63.89 kB / 436.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.2552, allocations: 159.4 kB / 436.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.2554, allocations: 183.2 kB / 436.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.782e-05/0.2555, allocations: 40 kB / 436.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.203e-05/0.2556, allocations: 36 kB / 436.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.2556, allocations: 79.73 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2558, allocations: 191 kB / 437 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005036/0.2563, allocations: 451.1 kB / 437.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2563, allocations: 0 / 437.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2563, allocations: 0 / 437.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2563, allocations: 0 / 437.5 MB, free: 1.32 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.001111/0.2575, allocations: 0.6079 MB / 438.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.2575, allocations: 16.02 kB / 438.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.2576, allocations: 63.19 kB / 438.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.429e-05/0.2577, allocations: 44.7 kB / 438.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.2581, allocations: 250.4 kB / 438.4 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.2582, allocations: 110.2 kB / 438.5 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.2583, allocations: 24.38 kB / 438.6 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000569/0.2589, allocations: 334.4 kB / 438.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.2589, allocations: 0 / 438.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/0.2589, allocations: 15.98 kB / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2589, allocations: 4 kB / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.2594, allocations: 205.9 kB / 439.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.2608, allocations: 0.798 MB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.2614, allocations: 254.7 kB / 440.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.2616, allocations: 112.8 kB / 440.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.2616, allocations: 7.984 kB / 440.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.2617, allocations: 38.56 kB / 440.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.2617, allocations: 0 / 440.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001059/0.2627, allocations: 414.2 kB / 440.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.2629, allocations: 312.4 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/0.2632, allocations: 284.2 kB / 441.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.2632, allocations: 33.7 kB / 441.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.2634, allocations: 180.7 kB / 441.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.661e-05/0.2635, allocations: 107.1 kB / 441.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.2636, allocations: 69.66 kB / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2637, allocations: 346.7 kB / 442 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.2639, allocations: 91.95 kB / 442.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.2643, allocations: 212.6 kB / 442.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004656/0.2647, allocations: 263.5 kB / 442.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2648, allocations: 4 kB / 442.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000665/0.2654, allocations: 365.8 kB / 442.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.2655, allocations: 29.7 kB / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2655, allocations: 0 / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001568/0.2656, allocations: 44.77 kB / 443 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009979/0.2666, allocations: 159.9 kB / 443.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003795/0.2704, allocations: 3.037 MB / 446.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.2707, allocations: 43.75 kB / 446.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.2707, allocations: 16 kB / 446.3 MB, free: 7.895 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.0001912/0.2709, allocations: 149.8 kB / 446.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-05/0.271, allocations: 31.81 kB / 446.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.906e-05/0.2711, allocations: 39.08 kB / 446.5 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.2711, allocations: 4 kB / 446.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2711, allocations: 3.938 kB / 446.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007306/0.2718, allocations: 0.6579 MB / 447.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004577/0.2723, allocations: 356.4 kB / 447.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2723, allocations: 0 / 447.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.2736, allocations: 207.8 kB / 447.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.957e-05/0.2736, allocations: 24.78 kB / 447.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.2737, allocations: 8 kB / 447.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003188/0.2768, allocations: 2.834 MB / 450.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2768, allocations: 0 / 450.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008574/0.2777, allocations: 0.5169 MB / 451.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.2778, allocations: 67.75 kB / 451.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.2779, allocations: 4 kB / 451.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.2781, allocations: 23.92 kB / 451.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.2782, allocations: 23.95 kB / 451.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.2782, allocations: 12 kB / 451.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.2784, allocations: 203.1 kB / 451.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2784, allocations: 0 / 451.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004186/0.2789, allocations: 107.9 kB / 451.5 MB, free: 2.234 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.001181/0.28, allocations: 1.065 MB / 452.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.2816, allocations: 0.5137 MB / 453.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2816, allocations: 0 / 453.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.283, allocations: 394.3 kB / 453.5 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.2835, allocations: 96.42 kB / 453.6 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005051/0.2885, allocations: 3.413 MB / 457 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.2889, allocations: 0.776 MB / 457.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.2891, allocations: 38.95 kB / 457.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.2893, allocations: 111.4 kB / 457.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2893, allocations: 0 / 457.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03965/0.3289, allocations: 9.874 MB / 467.8 MB, free: 1.973 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.63, allocations: 6.75 kB / 467.8 MB, free: 1.969 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.062327288091183] Failed to read output from testmodel.py, exit status != 0: ['time', 'openTank1.H', 'openTank1.m', 'openTank2.H', 'openTank2.m'] 12.728913601953536 12.757475717 12.496445613 Calling exit ...