Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008195/0.0008195, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004162/0.004162, allocations: 165.8 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8807/0.8807, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.736e-05/2.863e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1565/0.1565, allocations: 14.48 MB / 312.9 MB, free: 7.543 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00755/0.1641, allocations: 6.215 MB / 319.1 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005304/0.1646, allocations: 33.84 kB / 319.2 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008012/0.1654, allocations: 330.5 kB / 319.5 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002771/0.1682, allocations: 1.128 MB / 320.6 MB, free: 2.625 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004194/0.1724, allocations: 1.912 MB / 322.5 MB, free: 1.762 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002015/0.1744, allocations: 2.17 MB / 324.7 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005734/0.175, allocations: 0.5012 MB / 325.2 MB, free: 148 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.1761, allocations: 1.059 MB / 326.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001789/0.1779, allocations: 0.7745 MB / 327 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.1781, allocations: 84.09 kB / 327.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001784/0.1799, allocations: 1.009 MB / 328.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002708/0.1801, allocations: 349.1 kB / 328.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003468/0.1805, allocations: 327.8 kB / 328.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002068/0.1825, allocations: 1.993 MB / 330.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1826, allocations: 0 / 330.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1826, allocations: 0 / 330.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1826, allocations: 4 kB / 330.8 MB, free: 12.91 MB / 298.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.001931/0.1845, allocations: 1.202 MB / 332 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1845, allocations: 17.17 kB / 332 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.1846, allocations: 105.4 kB / 332.1 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.1849, allocations: 103.4 kB / 332.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007092/0.1856, allocations: 0.5736 MB / 332.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.1857, allocations: 158.4 kB / 332.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.482e-05/0.1857, allocations: 54.89 kB / 333 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.1869, allocations: 1.178 MB / 334.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.1869, allocations: 5.156 kB / 334.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.529e-05/0.1869, allocations: 21.8 kB / 334.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.049e-05/0.187, allocations: 52.25 kB / 334.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009795/0.188, allocations: 0.8366 MB / 335.1 MB, free: 9.887 MB / 298.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.003217/0.1912, allocations: 2.748 MB / 337.8 MB, free: 7.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006735/0.1919, allocations: 0.622 MB / 338.4 MB, free: 6.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003349/0.1922, allocations: 345 kB / 338.8 MB, free: 6.234 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001445/0.1936, allocations: 1.216 MB / 340 MB, free: 4.996 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1937, allocations: 39.69 kB / 340 MB, free: 4.949 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 1.363e-06/0.1937, allocations: 0 / 340 MB, free: 4.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.003941/0.1976, allocations: 2.699 MB / 342.7 MB, free: 2.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.1977, allocations: 89.77 kB / 342.8 MB, free: 2.109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.1982, allocations: 0.6876 MB / 343.5 MB, free: 1.414 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.781e-05/0.1983, allocations: 41.7 kB / 343.5 MB, free: 1.367 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.1984, allocations: 341 kB / 343.9 MB, free: 1.031 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.1986, allocations: 234 kB / 344.1 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.1987, allocations: 146.6 kB / 344.2 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1989, allocations: 390.7 kB / 344.6 MB, free: 264 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/0.1993, allocations: 376.7 kB / 345 MB, free: 15.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004804/0.1998, allocations: 0.5441 MB / 345.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008461/0.2006, allocations: 0.8603 MB / 346.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.2006, allocations: 7.562 kB / 346.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001305/0.2019, allocations: 1.15 MB / 347.6 MB, free: 13.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2019, allocations: 15.97 kB / 347.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2019, allocations: 4 kB / 347.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008276/0.2028, allocations: 446.7 kB / 348 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003621/0.2031, allocations: 163.7 kB / 348.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009491/0.2041, allocations: 1.024 MB / 349.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.2044, allocations: 28.03 kB / 349.2 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/0.2044, allocations: 31.98 kB / 349.3 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006071/0.205, allocations: 0.537 MB / 349.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005342/0.2056, allocations: 0.5373 MB / 350.3 MB, free: 10.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008608/0.2064, allocations: 0.8454 MB / 351.2 MB, free: 9.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.126e-06/0.2064, allocations: 0 / 351.2 MB, free: 9.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001253/0.2077, allocations: 1.103 MB / 352.3 MB, free: 8.297 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.2077, allocations: 8 kB / 352.3 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2077, allocations: 4.562 kB / 352.3 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004158/0.2081, allocations: 304.7 kB / 352.6 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.2085, allocations: 175.7 kB / 352.8 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006573/0.2091, allocations: 0.9035 MB / 353.7 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.2094, allocations: 32.03 kB / 353.7 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.65e-05/0.2094, allocations: 35.98 kB / 353.7 MB, free: 6.816 MB / 314.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.0001924/0.2096, allocations: 228 kB / 354 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.759e-05/0.2097, allocations: 83.48 kB / 354 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/0.2111, allocations: 1.091 MB / 355.1 MB, free: 5.398 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.2111, allocations: 7.938 kB / 355.1 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2111, allocations: 3.938 kB / 355.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2111, allocations: 11.98 kB / 355.1 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.213, allocations: 1.836 MB / 357 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.213, allocations: 0 / 357 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003073/0.2133, allocations: 116.8 kB / 357.1 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006544/0.214, allocations: 444.5 kB / 357.5 MB, free: 2.941 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.214, allocations: 23.98 kB / 357.6 MB, free: 2.918 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007869/0.2148, allocations: 1.028 MB / 358.6 MB, free: 1.863 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2148, allocations: 4 kB / 358.6 MB, free: 1.859 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.2164, allocations: 1.597 MB / 360.2 MB, free: 248 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.2166, allocations: 167.4 kB / 360.3 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.493e-05/0.2167, allocations: 16.86 kB / 360.4 MB, free: 64 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.2169, allocations: 27.98 kB / 360.4 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.217, allocations: 60.62 kB / 360.5 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.2171, allocations: 31.91 kB / 360.5 MB, free: 15.94 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003967/0.2175, allocations: 483 kB / 361 MB, free: 15.47 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2175, allocations: 7.938 kB / 361 MB, free: 15.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001191/0.2187, allocations: 0.5849 MB / 361.5 MB, free: 14.88 MB / 330.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.002453/0.2211, allocations: 2.553 MB / 364.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.2228, allocations: 1.325 MB / 365.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2228, allocations: 0 / 365.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005366/0.2234, allocations: 445 kB / 365.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009418/0.2243, allocations: 387 kB / 366.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007712/0.232, allocations: 7.672 MB / 373.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.2323, allocations: 408.7 kB / 374.3 MB, free: 1.859 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005731/0.2328, allocations: 306.5 kB / 374.6 MB, free: 1.555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002869/0.2331, allocations: 280.4 kB / 374.9 MB, free: 1.277 MB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2331, allocations: 0 / 374.9 MB, free: 1.277 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04613/0.2793, allocations: 32.29 MB / 407.2 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.426/8.705, allocations: 3.938 kB / 407.2 MB, free: 0.8594 MB / 362.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.380813335999846] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 8.808039028197527 8.81727558 8.632829886 Calling exit ...