Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001893/0.001893, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 48.02 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2428, allocations: 52.2 MB / 422.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01924/0.262, allocations: 16.1 MB / 438.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.2733, allocations: 6.944 MB / 445.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008566/0.2741, allocations: 31.69 kB / 445.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.2754, allocations: 345.9 kB / 446 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003081/0.2784, allocations: 1.104 MB / 447.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005094/0.2835, allocations: 1.847 MB / 449 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003333/0.2869, allocations: 2.23 MB / 451.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.288, allocations: 0.5063 MB / 451.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001837/0.2899, allocations: 0.8371 MB / 452.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001676/0.2916, allocations: 0.8448 MB / 453.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004482/0.292, allocations: 83.98 kB / 453.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00318/0.2952, allocations: 1.24 MB / 454.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006366/0.2958, allocations: 323 kB / 455 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008757/0.2967, allocations: 469.8 kB / 455.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003643/0.3003, allocations: 1.842 MB / 457.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3003, allocations: 0 / 457.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3003, allocations: 3.938 kB / 457.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.043e-05/0.3004, allocations: 0 / 457.3 MB, free: 11.89 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003512/0.3039, allocations: 1.231 MB / 458.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.304, allocations: 8.031 kB / 458.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001884/0.3041, allocations: 98.69 kB / 458.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004131/0.3046, allocations: 96.42 kB / 458.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.3059, allocations: 0.5749 MB / 459.3 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.3061, allocations: 156.1 kB / 459.5 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.3062, allocations: 59.97 kB / 459.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.3079, allocations: 0.8923 MB / 460.4 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.308, allocations: 4 kB / 460.5 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.56e-05/0.308, allocations: 23.98 kB / 460.5 MB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-05/0.3081, allocations: 49.28 kB / 460.5 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.3097, allocations: 0.8405 MB / 461.4 MB, free: 7.75 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006462/0.3162, allocations: 3.318 MB / 464.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.3173, allocations: 0.6303 MB / 465.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005703/0.3179, allocations: 346.1 kB / 465.7 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002886/0.3207, allocations: 1.337 MB / 467 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.3208, allocations: 47 kB / 467 MB, free: 1.875 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.204e-06/0.3208, allocations: 4 kB / 467 MB, free: 1.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007205/0.328, allocations: 2.69 MB / 469.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.3281, allocations: 85.77 kB / 469.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009648/0.329, allocations: 0.6799 MB / 470.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.589e-05/0.3291, allocations: 37.7 kB / 470.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.3294, allocations: 337 kB / 470.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.3296, allocations: 249.9 kB / 471.1 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002619/0.3299, allocations: 146.6 kB / 471.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3301, allocations: 390.8 kB / 471.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006705/0.3307, allocations: 368.6 kB / 472 MB, free: 12.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007827/0.3315, allocations: 0.5152 MB / 472.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.3329, allocations: 0.8642 MB / 473.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3329, allocations: 0 / 473.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00219/0.3351, allocations: 1.158 MB / 474.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3351, allocations: 4 kB / 474.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.3352, allocations: 16.02 kB / 474.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/0.3365, allocations: 456.4 kB / 475 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006819/0.3372, allocations: 159.7 kB / 475.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.3385, allocations: 1.024 MB / 476.2 MB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000624/0.3391, allocations: 32.03 kB / 476.2 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-05/0.3392, allocations: 35.98 kB / 476.2 MB, free: 8.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000928/0.3402, allocations: 0.5331 MB / 476.8 MB, free: 7.895 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007667/0.3409, allocations: 0.5083 MB / 477.3 MB, free: 7.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001375/0.3423, allocations: 0.8493 MB / 478.1 MB, free: 6.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.147e-06/0.3423, allocations: 0 / 478.1 MB, free: 6.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002151/0.3445, allocations: 1.099 MB / 479.2 MB, free: 5.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.3445, allocations: 8 kB / 479.2 MB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3445, allocations: 8.031 kB / 479.2 MB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007521/0.3452, allocations: 320.6 kB / 479.6 MB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006723/0.3459, allocations: 167.7 kB / 479.7 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.347, allocations: 0.9113 MB / 480.6 MB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006004/0.3476, allocations: 27.98 kB / 480.7 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.499e-05/0.3477, allocations: 31.98 kB / 480.7 MB, free: 3.809 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002907/0.348, allocations: 228.1 kB / 480.9 MB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/0.3482, allocations: 83.47 kB / 481 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.3503, allocations: 1.088 MB / 482.1 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3503, allocations: 8 kB / 482.1 MB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3503, allocations: 0 / 482.1 MB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3503, allocations: 3.984 kB / 482.1 MB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003516/0.3538, allocations: 1.968 MB / 484.1 MB, free: 368 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/0.3539, allocations: 7.984 kB / 484.1 MB, free: 360 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00061/0.3545, allocations: 119.8 kB / 484.2 MB, free: 240 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.3557, allocations: 443.9 kB / 484.6 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.769e-05/0.3558, allocations: 16 kB / 484.6 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/0.3572, allocations: 1.032 MB / 485.7 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3572, allocations: 7.938 kB / 485.7 MB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.3599, allocations: 1.585 MB / 487.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005023/0.3604, allocations: 175.4 kB / 487.4 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.3605, allocations: 16 kB / 487.4 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006167/0.3612, allocations: 35.91 kB / 487.5 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3613, allocations: 60.55 kB / 487.5 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.3614, allocations: 35.91 kB / 487.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006695/0.3621, allocations: 479 kB / 488 MB, free: 12.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3621, allocations: 0 / 488 MB, free: 12.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001693/0.3637, allocations: 0.5887 MB / 488.6 MB, free: 11.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004104/0.3679, allocations: 2.515 MB / 491.1 MB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003219/0.3711, allocations: 1.33 MB / 492.5 MB, free: 7.871 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3711, allocations: 0 / 492.5 MB, free: 7.871 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3721, allocations: 435.5 kB / 492.9 MB, free: 7.445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.374, allocations: 401.1 kB / 493.3 MB, free: 7.062 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.3876, allocations: 7.755 MB / 0.4893 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007379/0.3883, allocations: 1.003 MB / 0.4903 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001039/0.3893, allocations: 302.6 kB / 0.4906 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/0.3898, allocations: 275.3 kB / 0.4908 GB, free: 13.5 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3898, allocations: 0 / 0.4908 GB, free: 13.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07897/0.4688, allocations: 31.72 MB / 0.5218 GB, free: 14.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.06, allocations: 6.969 kB / 0.5218 GB, free: 14.06 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --stepSize=0.00998801 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.411712879082188] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 14.200071328086779 14.218593143 13.91480774 Calling exit ...