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.001632/0.001632, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.002001/0.002001, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.436/1.436, allocations: 230.4 MB / 254.7 MB, free: 15 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.001938/0.001938, allocations: 71.88 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09959, allocations: 53.31 MB / 426.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004067/0.1037, allocations: 2.786 MB / 429.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.1052, allocations: 0.8529 MB / 430.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.1054, allocations: 7.938 kB / 430.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002908/0.1057, allocations: 75.41 kB / 430.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003094/0.106, allocations: 138.9 kB / 430.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.1062, allocations: 87.81 kB / 430.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005534/0.1068, allocations: 442.3 kB / 431.2 MB, free: 464 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.1069, allocations: 59.39 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.1071, allocations: 163.4 kB / 431.5 MB, free: 236 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.1074, allocations: 175.2 kB / 431.6 MB, free: 60 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.9e-05/0.1074, allocations: 36 kB / 431.7 MB, free: 24 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1868/0.2942, allocations: 33.17 kB / 431.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.2943, allocations: 74.42 kB / 431.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.2946, allocations: 187.8 kB / 431.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.2951, allocations: 447.6 kB / 432.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2951, allocations: 0 / 432.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2951, allocations: 1.656 kB / 432.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2951, allocations: 2.625 kB / 432.4 MB, free: 7.984 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.001045/0.2962, allocations: 0.6907 MB / 433.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.2962, allocations: 9.75 kB / 433.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.983e-05/0.2963, allocations: 70.16 kB / 433.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.559e-05/0.2964, allocations: 48.47 kB / 433.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.2968, allocations: 300.7 kB / 433.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.846e-05/0.2969, allocations: 53.59 kB / 433.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.703e-05/0.297, allocations: 22.44 kB / 433.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004771/0.2974, allocations: 339 kB / 433.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.2975, allocations: 3.953 kB / 433.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.2975, allocations: 13.22 kB / 433.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.2975, allocations: 9.656 kB / 433.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003836/0.2979, allocations: 212.3 kB / 434.1 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2991, allocations: 0.8206 MB / 435 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005041/0.2996, allocations: 250.2 kB / 435.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.2998, allocations: 103.3 kB / 435.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.2998, allocations: 13.47 kB / 435.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.2999, allocations: 43.72 kB / 435.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.583e-06/0.2999, allocations: 1.156 kB / 435.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.00098/0.3008, allocations: 483.7 kB / 435.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.3009, allocations: 314.1 kB / 436.1 MB, free: 6.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.3012, allocations: 278.6 kB / 436.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.3012, allocations: 37.22 kB / 436.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.856e-05/0.3013, allocations: 179.5 kB / 436.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.235e-05/0.3013, allocations: 115.9 kB / 436.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.755e-05/0.3014, allocations: 64.62 kB / 436.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.3015, allocations: 344.5 kB / 437.1 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.3017, allocations: 93.56 kB / 437.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/0.3019, allocations: 206.4 kB / 437.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/0.3023, allocations: 264.9 kB / 437.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3023, allocations: 5.062 kB / 437.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000602/0.3029, allocations: 367.2 kB / 438.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/0.303, allocations: 33.08 kB / 438.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.303, allocations: 1.219 kB / 438.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001626/0.3031, allocations: 37.06 kB / 438.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009702/0.3041, allocations: 160.1 kB / 438.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/0.3069, allocations: 3.235 MB / 441.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.3072, allocations: 39.02 kB / 441.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.3073, allocations: 12.31 kB / 441.6 MB, free: 2.156 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.0001561/0.3074, allocations: 149 kB / 441.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/0.3075, allocations: 33.39 kB / 441.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.509e-05/0.3076, allocations: 40.98 kB / 441.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3076, allocations: 2.531 kB / 441.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3076, allocations: 5.25 kB / 441.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000539/0.3081, allocations: 0.652 MB / 442.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.3085, allocations: 388.3 kB / 442.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3085, allocations: 0.6094 kB / 442.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/0.3098, allocations: 211.2 kB / 443 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.832e-05/0.3098, allocations: 21.95 kB / 443 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.3098, allocations: 6.781 kB / 443.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/0.313, allocations: 3.043 MB / 446.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.313, allocations: 6.094 kB / 446.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008927/0.3139, allocations: 0.5151 MB / 446.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.3141, allocations: 140.6 kB / 446.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.3141, allocations: 7.844 kB / 446.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.3144, allocations: 17.14 kB / 446.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.835e-05/0.3145, allocations: 25.78 kB / 446.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3145, allocations: 6.75 kB / 446.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002373/0.3147, allocations: 208 kB / 447 MB, free: 13.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3147, allocations: 0 / 447 MB, free: 13.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004665/0.3152, allocations: 101.8 kB / 447.1 MB, free: 13.57 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.001365/0.3166, allocations: 1.066 MB / 448.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.3181, allocations: 0.5274 MB / 448.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3181, allocations: 1.344 kB / 448.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.3195, allocations: 387.6 kB / 449.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005587/0.32, allocations: 93.52 kB / 449.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005382/0.3254, allocations: 3.407 MB / 452.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.3259, allocations: 0.7806 MB / 453.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002341/0.3261, allocations: 39.56 kB / 453.4 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.3263, allocations: 105.5 kB / 453.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3263, allocations: 0 / 453.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04242/0.3687, allocations: 9.706 MB / 463.2 MB, free: 6.496 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.33, allocations: 5.109 kB / 463.2 MB, free: 6.492 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 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: 14.633567166980356] Failed to read output from testmodel.py, exit status != 0: ['time', 'openTank1.H', 'openTank1.m', 'openTank2.H', 'openTank2.m'] 12.422484837006778 12.436697601 12.138606419 Calling exit ...