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.0008185/0.0008185, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007564/0.0007564, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8829/0.8829, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 1.914e-06/1.914e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.252e-05/2.444e-05, allocations: 2.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01287/0.01289, allocations: 14.45 MB / 332.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006914/0.01981, allocations: 6.285 MB / 339.2 MB, free: 1.543 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007718/0.02058, allocations: 35.69 kB / 339.2 MB, free: 1.508 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008976/0.02148, allocations: 321.9 kB / 339.5 MB, free: 1.191 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002429/0.02391, allocations: 1.13 MB / 340.6 MB, free: 52 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00399/0.0279, allocations: 1.924 MB / 342.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003015/0.03091, allocations: 2.17 MB / 344.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001094/0.032, allocations: 0.5024 MB / 345.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001944/0.03395, allocations: 1.06 MB / 346.3 MB, free: 10.38 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.03525, allocations: 0.783 MB / 347.1 MB, free: 9.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.03542, allocations: 80 kB / 347.2 MB, free: 9.512 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001868/0.03728, allocations: 1.006 MB / 348.2 MB, free: 8.504 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003652/0.03765, allocations: 346.9 kB / 348.5 MB, free: 8.164 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004061/0.03805, allocations: 331.2 kB / 348.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002372/0.04043, allocations: 1.979 MB / 350.8 MB, free: 5.855 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.04043, allocations: 4 kB / 350.8 MB, free: 5.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.04043, allocations: 4 kB / 350.8 MB, free: 5.848 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.179e-05/0.04046, allocations: 0 / 350.8 MB, free: 5.848 MB / 314.7 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.00208/0.04254, allocations: 1.208 MB / 352 MB, free: 4.605 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.04258, allocations: 12.92 kB / 352 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.04269, allocations: 106.7 kB / 352.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002324/0.04292, allocations: 96.42 kB / 352.2 MB, free: 4.387 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007534/0.04367, allocations: 0.5671 MB / 352.8 MB, free: 3.793 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.04378, allocations: 160 kB / 353 MB, free: 3.613 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.813e-05/0.04386, allocations: 55.98 kB / 353 MB, free: 3.559 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.04497, allocations: 1.176 MB / 354.2 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.04498, allocations: 0 / 354.2 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.457e-05/0.04504, allocations: 27.91 kB / 354.2 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.203e-05/0.0451, allocations: 53.28 kB / 354.3 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009656/0.04606, allocations: 0.8365 MB / 355.1 MB, free: 1.375 MB / 314.7 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.003555/0.04962, allocations: 2.742 MB / 357.8 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007187/0.05034, allocations: 0.6297 MB / 358.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.0507, allocations: 338.2 kB / 358.8 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001669/0.05236, allocations: 1.216 MB / 360 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.0524, allocations: 43.05 kB / 360.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 2.314e-06/0.0524, allocations: 0 / 360.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.004405/0.0568, allocations: 2.698 MB / 362.8 MB, free: 9.578 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.05685, allocations: 85.77 kB / 362.8 MB, free: 9.477 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006341/0.05748, allocations: 0.6876 MB / 363.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.05754, allocations: 37.7 kB / 363.6 MB, free: 8.738 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000198/0.05773, allocations: 345 kB / 363.9 MB, free: 8.398 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/0.05793, allocations: 238 kB / 364.1 MB, free: 8.164 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/0.05818, allocations: 150.5 kB / 364.3 MB, free: 8.008 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.05835, allocations: 390.7 kB / 364.7 MB, free: 7.617 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006234/0.05898, allocations: 368.6 kB / 365 MB, free: 7.254 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007441/0.05972, allocations: 0.5481 MB / 365.6 MB, free: 6.637 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.06104, allocations: 0.8642 MB / 366.4 MB, free: 5.711 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.06104, allocations: 4 kB / 366.4 MB, free: 5.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001709/0.06275, allocations: 1.154 MB / 367.6 MB, free: 4.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.06278, allocations: 8 kB / 367.6 MB, free: 4.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.06279, allocations: 7.984 kB / 367.6 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.06381, allocations: 452.4 kB / 368.1 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/0.0642, allocations: 159.8 kB / 368.2 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008713/0.06507, allocations: 1.024 MB / 369.2 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004039/0.06547, allocations: 28.03 kB / 369.3 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.06553, allocations: 35.98 kB / 369.3 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006013/0.06613, allocations: 0.537 MB / 369.8 MB, free: 2.277 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000496/0.06663, allocations: 0.5401 MB / 370.4 MB, free: 1.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001247/0.06787, allocations: 0.8338 MB / 371.2 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.589e-06/0.06788, allocations: 4 kB / 371.2 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001338/0.06921, allocations: 1.11 MB / 372.3 MB, free: 15.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.06923, allocations: 4 kB / 372.3 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.06924, allocations: 8.562 kB / 372.3 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004799/0.06972, allocations: 308.7 kB / 372.6 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.07007, allocations: 175.7 kB / 372.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006962/0.07077, allocations: 0.9035 MB / 373.7 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/0.07116, allocations: 31.98 kB / 373.7 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.07121, allocations: 39.92 kB / 373.8 MB, free: 14.16 MB / 346.7 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.0002424/0.07145, allocations: 224.1 kB / 374 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.07156, allocations: 87.42 kB / 374.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.07293, allocations: 1.076 MB / 375.2 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.07294, allocations: 8 kB / 375.2 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.07295, allocations: 3.938 kB / 375.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.07296, allocations: 7.984 kB / 375.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/0.07526, allocations: 1.855 MB / 377 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.07526, allocations: 0 / 377 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.07558, allocations: 111.9 kB / 377.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007886/0.07637, allocations: 444.5 kB / 377.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.143e-05/0.07642, allocations: 12 kB / 377.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008557/0.07727, allocations: 1.04 MB / 378.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.07728, allocations: 0 / 378.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.07951, allocations: 1.589 MB / 380.2 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003348/0.07984, allocations: 171.4 kB / 380.4 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.073e-05/0.07992, allocations: 16 kB / 380.4 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.08023, allocations: 35.91 kB / 380.4 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.08034, allocations: 60.48 kB / 380.5 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.651e-05/0.08038, allocations: 31.97 kB / 380.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004629/0.08085, allocations: 487 kB / 381 MB, free: 6.816 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.08085, allocations: 0 / 381 MB, free: 6.816 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001454/0.0823, allocations: 0.5926 MB / 381.6 MB, free: 6.223 MB / 346.7 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.003078/0.08538, allocations: 2.55 MB / 384.1 MB, free: 3.641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.08749, allocations: 1.325 MB / 385.5 MB, free: 2.316 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.0875, allocations: 4 kB / 385.5 MB, free: 2.312 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005575/0.08806, allocations: 449.1 kB / 385.9 MB, free: 1.875 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.08923, allocations: 375.8 kB / 386.3 MB, free: 1.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009163/0.09839, allocations: 7.669 MB / 394 MB, free: 9.625 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.09865, allocations: 404.8 kB / 394.3 MB, free: 9.199 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007008/0.09935, allocations: 306.5 kB / 394.6 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003067/0.09966, allocations: 284.4 kB / 394.9 MB, free: 8.617 MB / 362.7 MB Notification: Performance of SimCode: time 1.272e-06/0.09966, allocations: 0 / 394.9 MB, free: 8.617 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04901/0.1487, allocations: 32.3 MB / 427.2 MB, free: 8.707 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.667/8.816, allocations: 4.062 kB / 427.2 MB, free: 8.703 MB / 394.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00998801 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: 10.538292680867016] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 8.91884521394968 8.926860687 8.884519055 Calling exit ...