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.001652/0.001652, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002152/0.002152, allocations: 212 kB / 24.47 MB, free: 3.547 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.453/1.453, allocations: 207.7 MB / 235.3 MB, free: 9.809 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.001846/0.001846, allocations: 55.92 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2735, allocations: 49.15 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01524/0.2888, allocations: 14.57 MB / 410.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.3001, allocations: 6.212 MB / 417.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.3013, allocations: 32.72 kB / 417.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.3024, allocations: 326.5 kB / 417.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003013/0.3054, allocations: 1.094 MB / 418.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005277/0.3107, allocations: 1.836 MB / 420.4 MB, free: 8.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00363/0.3143, allocations: 2.206 MB / 422.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008947/0.3152, allocations: 0.5281 MB / 423.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0015/0.3167, allocations: 0.837 MB / 424 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.3179, allocations: 0.8348 MB / 424.8 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.3181, allocations: 79 kB / 424.9 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002296/0.3204, allocations: 1.002 MB / 425.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003809/0.3208, allocations: 324.1 kB / 426.2 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000455/0.3212, allocations: 388.2 kB / 426.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002665/0.3239, allocations: 1.811 MB / 428.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3239, allocations: 0 / 428.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.529e-06/0.3239, allocations: 4 kB / 428.4 MB, free: 3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.3239, allocations: 0 / 428.4 MB, free: 3 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.002672/0.3266, allocations: 1.228 MB / 429.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3266, allocations: 11.98 kB / 429.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001553/0.3268, allocations: 106.7 kB / 429.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003244/0.3271, allocations: 104.4 kB / 429.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.3283, allocations: 0.5708 MB / 430.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.3285, allocations: 156.1 kB / 430.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.3286, allocations: 55.98 kB / 430.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.3303, allocations: 1.172 MB / 431.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.3303, allocations: 3.938 kB / 431.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-05/0.3304, allocations: 19.98 kB / 431.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.86e-05/0.3305, allocations: 49.28 kB / 431.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.332, allocations: 0.8443 MB / 432.7 MB, free: 14.5 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.005775/0.3377, allocations: 2.738 MB / 435.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.3388, allocations: 0.6259 MB / 436.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005498/0.3393, allocations: 342.2 kB / 436.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002574/0.3419, allocations: 1.224 MB / 437.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.813e-05/0.3419, allocations: 46.98 kB / 437.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.084e-06/0.3419, allocations: 0 / 437.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.007182/0.3491, allocations: 2.686 MB / 440.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.664e-05/0.3492, allocations: 89.7 kB / 440.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.3504, allocations: 0.6954 MB / 441.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.008e-05/0.3504, allocations: 37.7 kB / 441.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.3508, allocations: 337.1 kB / 441.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002915/0.3511, allocations: 237.9 kB / 441.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/0.3514, allocations: 154.6 kB / 441.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002832/0.3517, allocations: 382.8 kB / 442.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000719/0.3524, allocations: 372.6 kB / 442.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009039/0.3533, allocations: 0.5519 MB / 443.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.3548, allocations: 0.8603 MB / 444 MB, free: 2.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.3548, allocations: 4 kB / 444 MB, free: 2.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002342/0.3572, allocations: 1.154 MB / 445.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.3572, allocations: 11.98 kB / 445.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/0.3572, allocations: 7.938 kB / 445.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.3587, allocations: 452.6 kB / 445.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007027/0.3594, allocations: 151.8 kB / 445.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.3608, allocations: 1.036 MB / 446.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000684/0.3615, allocations: 28.03 kB / 446.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.084e-05/0.3615, allocations: 31.98 kB / 446.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009567/0.3625, allocations: 0.5331 MB / 447.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008643/0.3634, allocations: 0.5449 MB / 448 MB, free: 14.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00134/0.3647, allocations: 0.8416 MB / 448.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.787e-06/0.3647, allocations: 4 kB / 448.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002106/0.3668, allocations: 1.095 MB / 449.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3668, allocations: 8 kB / 449.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3668, allocations: 4 kB / 449.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007333/0.3676, allocations: 312.7 kB / 450.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/0.3682, allocations: 167.8 kB / 450.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.3693, allocations: 0.9112 MB / 451.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005579/0.3699, allocations: 28.03 kB / 451.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.489e-05/0.37, allocations: 35.98 kB / 451.4 MB, free: 11.28 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.0003039/0.3703, allocations: 224.1 kB / 451.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.3705, allocations: 87.42 kB / 451.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/0.3726, allocations: 1.095 MB / 452.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3726, allocations: 8 kB / 452.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3726, allocations: 0 / 452.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.3726, allocations: 3.984 kB / 452.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/0.376, allocations: 1.84 MB / 454.6 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.376, allocations: 0 / 454.6 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005752/0.3765, allocations: 115.9 kB / 454.7 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.3778, allocations: 453.7 kB / 455.2 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/0.3778, allocations: 19.98 kB / 455.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.3792, allocations: 1.036 MB / 456.2 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3792, allocations: 0 / 456.2 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002678/0.3819, allocations: 1.589 MB / 457.8 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004917/0.3823, allocations: 171.4 kB / 458 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.3825, allocations: 16 kB / 458 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.383, allocations: 39.91 kB / 458.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.3832, allocations: 56.55 kB / 458.1 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.905e-05/0.3832, allocations: 31.97 kB / 458.1 MB, free: 4.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006412/0.3839, allocations: 479 kB / 458.6 MB, free: 3.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3839, allocations: 0 / 458.6 MB, free: 3.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001629/0.3855, allocations: 0.5887 MB / 459.2 MB, free: 3.348 MB / 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.004006/0.3895, allocations: 2.53 MB / 461.7 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002962/0.3925, allocations: 1.318 MB / 463 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.3925, allocations: 4.547 kB / 463 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009826/0.3934, allocations: 447.7 kB / 463.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.3951, allocations: 394 kB / 463.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01249/0.4076, allocations: 7.748 MB / 471.6 MB, free: 6.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.4081, allocations: 404.7 kB / 472 MB, free: 6.258 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001044/0.4091, allocations: 302.5 kB / 472.3 MB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004448/0.4096, allocations: 283.3 kB / 472.6 MB, free: 5.68 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4096, allocations: 0 / 472.6 MB, free: 5.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07543/0.485, allocations: 32.21 MB / 0.493 GB, free: 5.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.85/14.33, allocations: 3.938 kB / 0.493 GB, free: 5.324 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.88551748590544] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 14.478635871782899 14.508369211 14.178969689 Calling exit ...