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.00136/0.00136, allocations: 106.5 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.001461/0.001461, allocations: 212.6 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.432/1.432, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.001922/0.001922, allocations: 60.78 kB / 378.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2483, allocations: 53.37 MB / 431.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004254/0.2526, allocations: 2.781 MB / 434.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2541, allocations: 0.8724 MB / 435.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.2543, allocations: 3.938 kB / 435.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003168/0.2546, allocations: 75.41 kB / 435.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000308/0.2549, allocations: 138.9 kB / 435.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.2552, allocations: 87.83 kB / 435.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000553/0.2557, allocations: 453.1 kB / 436.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.2559, allocations: 59.91 kB / 436.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2561, allocations: 159.5 kB / 436.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.2563, allocations: 187.2 kB / 436.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.925e-05/0.2564, allocations: 36 kB / 436.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.717e-05/0.2565, allocations: 36 kB / 436.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.285e-05/0.2565, allocations: 71.75 kB / 436.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001955/0.2567, allocations: 191.1 kB / 437 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005466/0.2573, allocations: 451.1 kB / 437.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2573, allocations: 0 / 437.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2573, allocations: 0 / 437.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2573, allocations: 0 / 437.5 MB, free: 1.359 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.001157/0.2584, allocations: 0.6118 MB / 438.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2585, allocations: 12.03 kB / 438.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.2586, allocations: 71.11 kB / 438.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.831e-05/0.2587, allocations: 44.7 kB / 438.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.2592, allocations: 246.4 kB / 438.4 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.2593, allocations: 102.2 kB / 438.5 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.2594, allocations: 24.38 kB / 438.6 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005752/0.2599, allocations: 334.4 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.26, allocations: 0 / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.26, allocations: 12 kB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.26, allocations: 8 kB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004447/0.2604, allocations: 209.8 kB / 439.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.262, allocations: 0.7942 MB / 439.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.2625, allocations: 259.7 kB / 440.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.2628, allocations: 108.8 kB / 440.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.2628, allocations: 8 kB / 440.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.2628, allocations: 38.56 kB / 440.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.2628, allocations: 0 / 440.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001084/0.2639, allocations: 414.3 kB / 440.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002202/0.2641, allocations: 320.4 kB / 441 MB, free: 13.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.2645, allocations: 280.2 kB / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.609e-05/0.2645, allocations: 33.7 kB / 441.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.2647, allocations: 180.7 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.554e-05/0.2648, allocations: 103.1 kB / 441.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.2649, allocations: 69.66 kB / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.2651, allocations: 346.7 kB / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.2653, allocations: 95.95 kB / 442.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.2656, allocations: 208.6 kB / 442.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.2661, allocations: 267.5 kB / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.2661, allocations: 0 / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006485/0.2667, allocations: 369.8 kB / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.2667, allocations: 33.69 kB / 443 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2668, allocations: 0 / 443 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.2669, allocations: 40.84 kB / 443 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009756/0.2679, allocations: 159.9 kB / 443.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003812/0.2717, allocations: 3.037 MB / 446.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.272, allocations: 35.81 kB / 446.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.272, allocations: 12 kB / 446.3 MB, free: 7.941 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.0002167/0.2723, allocations: 153.8 kB / 446.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.874e-05/0.2723, allocations: 31.81 kB / 446.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.282e-05/0.2724, allocations: 39.08 kB / 446.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.2724, allocations: 4 kB / 446.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.2724, allocations: 3.938 kB / 446.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007473/0.2732, allocations: 0.6501 MB / 447.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.2736, allocations: 356.4 kB / 447.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2736, allocations: 192 / 447.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.2749, allocations: 215.7 kB / 447.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001112/0.275, allocations: 28.84 kB / 447.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.275, allocations: 4 kB / 447.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003283/0.2783, allocations: 2.838 MB / 450.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2783, allocations: 0 / 450.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009156/0.2792, allocations: 0.5052 MB / 451.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.2794, allocations: 71.81 kB / 451.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.2794, allocations: 4 kB / 451.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.2797, allocations: 19.92 kB / 451.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.296e-05/0.2798, allocations: 27.89 kB / 451.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.2798, allocations: 12 kB / 451.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002203/0.28, allocations: 199.1 kB / 451.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.28, allocations: 0 / 451.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004295/0.2804, allocations: 111.9 kB / 451.5 MB, free: 2.281 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.001205/0.2816, allocations: 1.061 MB / 452.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.2832, allocations: 0.5213 MB / 453.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.2832, allocations: 4.188 kB / 453.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.2846, allocations: 390.3 kB / 453.5 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005472/0.2852, allocations: 100.8 kB / 453.6 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005124/0.2903, allocations: 3.405 MB / 457 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.2907, allocations: 0.7799 MB / 457.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.2909, allocations: 34.95 kB / 457.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.291, allocations: 107.4 kB / 457.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.291, allocations: 0 / 457.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04014/0.3312, allocations: 9.884 MB / 467.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.72, allocations: 6.922 kB / 467.8 MB, free: 2.012 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 & /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: 15.03810710972175] Failed to read output from testmodel.py, exit status != 0: ['time', 'openTank1.H', 'openTank1.m', 'openTank2.H', 'openTank2.m'] 12.820979931857437 12.848776879 12.586324538 Calling exit ...