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.001316/0.001316, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001306/0.001306, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.453/1.453, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.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.001608/0.001608, allocations: 55.91 kB / 365.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1094, allocations: 52.15 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01932/0.1287, allocations: 15.95 MB / 433.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.1399, allocations: 6.92 MB / 440.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008312/0.1407, allocations: 39.62 kB / 440.7 MB, free: 5.594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000917/0.1416, allocations: 329.9 kB / 441 MB, free: 5.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00255/0.1442, allocations: 1.096 MB / 442.1 MB, free: 4.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004516/0.1487, allocations: 1.794 MB / 443.9 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002851/0.1516, allocations: 2.152 MB / 446 MB, free: 224 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1983/0.3499, allocations: 0.5295 MB / 446.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.3513, allocations: 0.8194 MB / 447.4 MB, free: 8.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008978/0.3522, allocations: 0.8443 MB / 448.2 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.3523, allocations: 83.69 kB / 448.3 MB, free: 8.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002001/0.3543, allocations: 1.228 MB / 449.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002863/0.3546, allocations: 331.8 kB / 449.9 MB, free: 8.406 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.355, allocations: 449.2 kB / 450.3 MB, free: 8.293 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002316/0.3573, allocations: 1.853 MB / 452.2 MB, free: 8.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3573, allocations: 3.312 kB / 452.2 MB, free: 8.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3573, allocations: 0 / 452.2 MB, free: 8.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3573, allocations: 2.875 kB / 452.2 MB, free: 8.09 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.002528/0.3598, allocations: 1.295 MB / 453.5 MB, free: 7.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.3599, allocations: 11.03 kB / 453.5 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.36, allocations: 105.6 kB / 453.6 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003144/0.3603, allocations: 99.17 kB / 453.7 MB, free: 7.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009225/0.3612, allocations: 0.6265 MB / 454.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.3614, allocations: 109.2 kB / 454.4 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.3615, allocations: 59.83 kB / 454.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.3629, allocations: 0.8942 MB / 455.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.363, allocations: 0.5 kB / 455.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.13e-05/0.363, allocations: 26.83 kB / 455.4 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.945e-05/0.3631, allocations: 55.03 kB / 455.4 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.3645, allocations: 0.8395 MB / 456.3 MB, free: 6.797 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.005046/0.3695, allocations: 3.451 MB / 459.7 MB, free: 5.434 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009422/0.3705, allocations: 0.6358 MB / 460.4 MB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.371, allocations: 341.2 kB / 460.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002555/0.3736, allocations: 2.037 MB / 462.7 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.3736, allocations: 41.64 kB / 462.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.923e-06/0.3736, allocations: 1.125 kB / 462.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006503/0.3801, allocations: 2.851 MB / 465.6 MB, free: 3.609 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.3801, allocations: 86.27 kB / 465.7 MB, free: 3.516 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000734/0.3809, allocations: 0.6771 MB / 466.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.087e-05/0.3809, allocations: 40.02 kB / 466.4 MB, free: 3.352 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.3811, allocations: 343.2 kB / 466.8 MB, free: 3.184 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.3812, allocations: 236.3 kB / 467 MB, free: 3.035 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002398/0.3815, allocations: 153.2 kB / 467.1 MB, free: 3.012 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.173e-05/0.3816, allocations: 387.3 kB / 467.5 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005548/0.3821, allocations: 371.8 kB / 467.9 MB, free: 2.688 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000651/0.3828, allocations: 0.5216 MB / 468.4 MB, free: 2.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.3839, allocations: 0.8657 MB / 469.3 MB, free: 2.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.3839, allocations: 2.188 kB / 469.3 MB, free: 2.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001871/0.3858, allocations: 1.161 MB / 470.4 MB, free: 2.102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.3858, allocations: 7.125 kB / 470.4 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.3858, allocations: 4.844 kB / 470.5 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.3871, allocations: 456.1 kB / 470.9 MB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.3877, allocations: 160.9 kB / 471.1 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009794/0.3887, allocations: 1.025 MB / 472.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005935/0.3893, allocations: 28.08 kB / 472.1 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.42e-05/0.3893, allocations: 30.75 kB / 472.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007786/0.3901, allocations: 0.5324 MB / 472.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006092/0.3907, allocations: 0.5096 MB / 473.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001105/0.3918, allocations: 0.845 MB / 474 MB, free: 276 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.3918, allocations: 1.438 kB / 474 MB, free: 276 kB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002034/0.3939, allocations: 1.128 MB / 475.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.3939, allocations: 8.25 kB / 475.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3939, allocations: 4.938 kB / 475.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006722/0.3945, allocations: 311.4 kB / 475.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.3952, allocations: 168.9 kB / 475.6 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.3962, allocations: 0.9045 MB / 476.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005793/0.3968, allocations: 36.2 kB / 476.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.428e-05/0.3969, allocations: 37.14 kB / 476.6 MB, free: 15.19 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.000297/0.3972, allocations: 222.6 kB / 476.8 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/0.3973, allocations: 82.83 kB / 476.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.3994, allocations: 1.086 MB / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.3994, allocations: 11.19 kB / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3994, allocations: 0 / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.3994, allocations: 7.219 kB / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003332/0.4028, allocations: 2.001 MB / 480 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4028, allocations: 0 / 480 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.4033, allocations: 120.6 kB / 480.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/0.4045, allocations: 443 kB / 480.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.4045, allocations: 22.14 kB / 480.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001236/0.4058, allocations: 1.026 MB / 481.6 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4058, allocations: 0 / 481.6 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.4085, allocations: 1.601 MB / 483.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005033/0.409, allocations: 252.4 kB / 483.5 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.4091, allocations: 10.09 kB / 483.5 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.4097, allocations: 37.78 kB / 483.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.4098, allocations: 54.95 kB / 483.6 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.199e-05/0.4099, allocations: 32.98 kB / 483.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006068/0.4105, allocations: 477.4 kB / 484.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4105, allocations: 0 / 484.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001752/0.4123, allocations: 0.5875 MB / 484.6 MB, free: 10.66 MB / 382.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.003959/0.4162, allocations: 2.522 MB / 487.2 MB, free: 9.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.4191, allocations: 1.335 MB / 488.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.4191, allocations: 0 / 488.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000899/0.42, allocations: 442.3 kB / 488.9 MB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.4218, allocations: 390.5 kB / 489.3 MB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/0.435, allocations: 7.747 MB / 497.1 MB, free: 184 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007348/0.4358, allocations: 0.9911 MB / 498.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.4368, allocations: 312.8 kB / 498.4 MB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004297/0.4372, allocations: 279.3 kB / 498.6 MB, free: 14.57 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4372, allocations: 0 / 498.6 MB, free: 14.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0767/0.5139, allocations: 30.99 MB / 0.5172 GB, free: 15.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/14.04, allocations: 4 kB / 0.5172 GB, free: 15.88 MB / 430.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 & 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: 16.597298752050847] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 14.156300764996558 14.170699332 13.810383528 Calling exit ...