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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001775/0.001775, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.403/1.403, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB 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.001896/0.001896, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2558, allocations: 50.53 MB / 409 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003928/0.2598, allocations: 2.778 MB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.2612, allocations: 0.8529 MB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.2613, allocations: 0 / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.2616, allocations: 83.33 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.2619, allocations: 134.9 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.2621, allocations: 87.83 kB / 413 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005132/0.2627, allocations: 438.4 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.2629, allocations: 99.33 kB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.2631, allocations: 155.4 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.2633, allocations: 187.2 kB / 413.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.585e-05/0.2634, allocations: 36 kB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.745e-05/0.2635, allocations: 32 kB / 413.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.172e-05/0.2636, allocations: 75.75 kB / 414 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002006/0.2638, allocations: 195.1 kB / 414.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004915/0.2643, allocations: 445.2 kB / 414.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2643, allocations: 0 / 414.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2643, allocations: 0 / 414.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2643, allocations: 0 / 414.6 MB, free: 11.79 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.001134/0.2654, allocations: 0.6871 MB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.2655, allocations: 12.03 kB / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.513e-05/0.2656, allocations: 63.23 kB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.289e-05/0.2657, allocations: 52.66 kB / 415.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.2661, allocations: 303.7 kB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.2662, allocations: 46.83 kB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.2663, allocations: 32.27 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005723/0.2669, allocations: 335.3 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.2669, allocations: 4 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.2669, allocations: 8 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.267, allocations: 4 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004554/0.2674, allocations: 214.1 kB / 416.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.2689, allocations: 0.8188 MB / 417.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000589/0.2695, allocations: 275 kB / 417.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.2697, allocations: 116.8 kB / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.2698, allocations: 8 kB / 417.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.2698, allocations: 42.5 kB / 417.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.2698, allocations: 0 / 417.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001104/0.271, allocations: 495.4 kB / 418 MB, free: 8.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/0.2711, allocations: 316.4 kB / 418.4 MB, free: 7.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.2715, allocations: 283 kB / 418.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.521e-05/0.2715, allocations: 33.7 kB / 418.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2716, allocations: 180.8 kB / 418.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.188e-05/0.2717, allocations: 115 kB / 419 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.2719, allocations: 65.7 kB / 419 MB, free: 7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.272, allocations: 346.7 kB / 419.4 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.2722, allocations: 91.95 kB / 419.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.2726, allocations: 212.2 kB / 419.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004654/0.2731, allocations: 267.5 kB / 419.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2731, allocations: 0 / 419.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006348/0.2737, allocations: 361.8 kB / 420.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.453e-05/0.2737, allocations: 29.7 kB / 420.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.2738, allocations: 4 kB / 420.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/0.2739, allocations: 36.84 kB / 420.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009765/0.2749, allocations: 167.8 kB / 420.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003866/0.2788, allocations: 3.232 MB / 423.7 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.2791, allocations: 36.12 kB / 423.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.2791, allocations: 16 kB / 423.8 MB, free: 1.855 MB / 334.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.0001992/0.2793, allocations: 153.7 kB / 423.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.818e-05/0.2794, allocations: 31.81 kB / 424 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.378e-05/0.2795, allocations: 39.08 kB / 424 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2795, allocations: 4 kB / 424 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2795, allocations: 3.938 kB / 424 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007478/0.2803, allocations: 0.6579 MB / 424.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004822/0.2808, allocations: 393.2 kB / 425.1 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2808, allocations: 0 / 425.1 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.2821, allocations: 207.8 kB / 425.3 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-05/0.2822, allocations: 24.78 kB / 425.3 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.2822, allocations: 8 kB / 425.3 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003406/0.2856, allocations: 3.026 MB / 428.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.2856, allocations: 8.016 kB / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008881/0.2865, allocations: 0.513 MB / 428.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.2867, allocations: 144.8 kB / 429 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.2868, allocations: 8 kB / 429 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.287, allocations: 19.92 kB / 429 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-05/0.2871, allocations: 24.3 kB / 429 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.2872, allocations: 19.92 kB / 429 MB, free: 12.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002287/0.2874, allocations: 202 kB / 429.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2874, allocations: 0 / 429.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004586/0.2879, allocations: 107.9 kB / 429.4 MB, free: 11.8 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.001231/0.2891, allocations: 1.061 MB / 430.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.2907, allocations: 0.5373 MB / 430.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.2907, allocations: 4 kB / 431 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.2921, allocations: 394.3 kB / 431.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.2926, allocations: 88.53 kB / 431.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004886/0.2975, allocations: 3.417 MB / 434.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.298, allocations: 0.7838 MB / 435.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.2981, allocations: 34.97 kB / 435.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.2983, allocations: 111.4 kB / 435.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2983, allocations: 0 / 435.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03824/0.3365, allocations: 9.624 MB / 445.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.69, allocations: 11.77 kB / 445.4 MB, free: 11.79 MB / 366.1 MB (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 --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)