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.001301/0.001301, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 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.001459/0.001459, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 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 1.416/1.416, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00233/0.00233, allocations: 51.92 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.313, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01861/0.3316, allocations: 16.11 MB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.3439, allocations: 6.89 MB / 419.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00132/0.3452, allocations: 33.91 kB / 419.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.3464, allocations: 339.6 kB / 419.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003563/0.3499, allocations: 1.1 MB / 420.8 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006016/0.356, allocations: 1.854 MB / 422.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004248/0.3602, allocations: 2.23 MB / 424.9 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.3613, allocations: 0.5128 MB / 425.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.3632, allocations: 0.8302 MB / 426.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.3648, allocations: 0.8584 MB / 427.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.3649, allocations: 79.47 kB / 427.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003119/0.368, allocations: 1.238 MB / 428.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004618/0.3685, allocations: 328.3 kB / 428.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006544/0.3691, allocations: 455.4 kB / 429.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003599/0.3727, allocations: 1.851 MB / 431 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3728, allocations: 0 / 431 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3728, allocations: 0 / 431 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.3728, allocations: 0 / 431 MB, free: 0.5664 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002977/0.3758, allocations: 1.225 MB / 432.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.3758, allocations: 11.98 kB / 432.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.3759, allocations: 98.69 kB / 432.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003266/0.3763, allocations: 106.8 kB / 432.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.3773, allocations: 0.5592 MB / 433 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.3775, allocations: 164.1 kB / 433.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.3776, allocations: 55.92 kB / 433.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.3793, allocations: 0.9078 MB / 434.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/0.3793, allocations: 0 / 434.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.159e-05/0.3794, allocations: 27.98 kB / 434.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-05/0.3795, allocations: 49.28 kB / 434.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.3809, allocations: 0.8405 MB / 435.1 MB, free: 12.41 MB / 350.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.006025/0.3869, allocations: 3.311 MB / 438.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.3881, allocations: 0.6254 MB / 439 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005753/0.3886, allocations: 346.2 kB / 439.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002779/0.3914, allocations: 1.352 MB / 440.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.3914, allocations: 47.06 kB / 440.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.134e-06/0.3915, allocations: 0 / 440.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.006892/0.3983, allocations: 2.686 MB / 443.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.3984, allocations: 85.77 kB / 443.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009018/0.3993, allocations: 0.676 MB / 444.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.651e-05/0.3994, allocations: 41.69 kB / 444.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002766/0.3997, allocations: 341 kB / 444.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.3999, allocations: 238 kB / 444.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002435/0.4001, allocations: 146.6 kB / 444.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.4003, allocations: 390.8 kB / 445.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000614/0.4009, allocations: 372.6 kB / 445.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007442/0.4017, allocations: 0.519 MB / 446.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.403, allocations: 0.8642 MB / 447.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.403, allocations: 0 / 447.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002095/0.4051, allocations: 1.161 MB / 448.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.4051, allocations: 4.062 kB / 448.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.4051, allocations: 8 kB / 448.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.4065, allocations: 456.4 kB / 448.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006823/0.4072, allocations: 163.8 kB / 448.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.4084, allocations: 1.013 MB / 449.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/0.409, allocations: 32.03 kB / 449.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.768e-05/0.4091, allocations: 39.98 kB / 449.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008556/0.4099, allocations: 0.5292 MB / 450.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007167/0.4107, allocations: 0.5082 MB / 451 MB, free: 11.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001279/0.4119, allocations: 0.8494 MB / 451.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.286e-06/0.4119, allocations: 0 / 451.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001966/0.4139, allocations: 1.103 MB / 452.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.4139, allocations: 8 kB / 452.9 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4139, allocations: 11.97 kB / 452.9 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007437/0.4147, allocations: 312.7 kB / 453.2 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006697/0.4154, allocations: 167.7 kB / 453.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.4164, allocations: 0.9035 MB / 454.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005945/0.417, allocations: 28.03 kB / 454.3 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/0.4171, allocations: 31.98 kB / 454.4 MB, free: 8.484 MB / 366.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.0003241/0.4174, allocations: 236 kB / 454.6 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.4176, allocations: 83.48 kB / 454.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.4196, allocations: 1.088 MB / 455.8 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.4196, allocations: 8 kB / 455.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4196, allocations: 0 / 455.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.4196, allocations: 7.922 kB / 455.8 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003274/0.4229, allocations: 1.968 MB / 457.7 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.4229, allocations: 8 kB / 457.7 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005987/0.4235, allocations: 111.9 kB / 457.9 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.4247, allocations: 445.4 kB / 458.3 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.769e-05/0.4248, allocations: 15.98 kB / 458.3 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.426, allocations: 1.034 MB / 459.3 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.426, allocations: 4 kB / 459.3 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.4286, allocations: 1.597 MB / 460.9 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004825/0.4291, allocations: 171.4 kB / 461.1 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.4292, allocations: 16 kB / 461.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000544/0.4298, allocations: 31.97 kB / 461.2 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.4299, allocations: 64.48 kB / 461.2 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.18e-05/0.43, allocations: 31.97 kB / 461.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006415/0.4306, allocations: 479 kB / 461.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4306, allocations: 0 / 461.7 MB, free: 1.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001686/0.4323, allocations: 0.5888 MB / 462.3 MB, free: 428 kB / 366.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.004046/0.4364, allocations: 2.514 MB / 464.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.4395, allocations: 1.33 MB / 466.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.4395, allocations: 0 / 466.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009721/0.4405, allocations: 439.3 kB / 466.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.4424, allocations: 395.2 kB / 467 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.4553, allocations: 7.764 MB / 474.7 MB, free: 3.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006841/0.456, allocations: 0.9949 MB / 475.7 MB, free: 2.723 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.4571, allocations: 306.5 kB / 476 MB, free: 2.418 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/0.4575, allocations: 283.3 kB / 476.3 MB, free: 2.141 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4575, allocations: 4 kB / 476.3 MB, free: 2.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07478/0.5323, allocations: 31.71 MB / 0.4961 GB, free: 2.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.48, allocations: 12 kB / 0.4961 GB, free: 2.309 MB / 414.1 MB " [Timeout remaining time 645] (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: 17.09176612900046] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 14.617939052004658 14.642513884 14.264791384 Calling exit ...