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.001273/0.001273, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001695/0.001695, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.367/1.367, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.001434/0.001434, allocations: 51.92 kB / 365.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09948, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.018/0.1175, allocations: 15.95 MB / 433.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.1279, allocations: 6.924 MB / 440.6 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008813/0.1288, allocations: 23.88 kB / 440.7 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009891/0.1297, allocations: 337.9 kB / 441 MB, free: 5.328 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002646/0.1324, allocations: 1.085 MB / 442.1 MB, free: 4.238 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004643/0.137, allocations: 1.806 MB / 443.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00295/0.14, allocations: 2.148 MB / 446 MB, free: 288 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1952/0.3352, allocations: 0.5343 MB / 446.6 MB, free: 8.605 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.3373, allocations: 0.8098 MB / 447.4 MB, free: 8.605 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001218/0.3385, allocations: 0.8383 MB / 448.2 MB, free: 8.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.3387, allocations: 80.03 kB / 448.3 MB, free: 8.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002547/0.3412, allocations: 1.238 MB / 449.5 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003823/0.3416, allocations: 325 kB / 449.8 MB, free: 8.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000501/0.3421, allocations: 460.8 kB / 450.3 MB, free: 8.406 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003377/0.3455, allocations: 1.853 MB / 452.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3455, allocations: 0 / 452.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3455, allocations: 0 / 452.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.3455, allocations: 1.562 kB / 452.2 MB, free: 8.203 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.003001/0.3485, allocations: 1.295 MB / 453.4 MB, free: 7.453 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.3485, allocations: 9.906 kB / 453.5 MB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.3487, allocations: 101.8 kB / 453.6 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003138/0.349, allocations: 98.16 kB / 453.7 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009835/0.35, allocations: 0.6306 MB / 454.3 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.3501, allocations: 107 kB / 454.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.3502, allocations: 53.34 kB / 454.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.3517, allocations: 0.8994 MB / 455.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.3517, allocations: 5 kB / 455.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.651e-05/0.3518, allocations: 24.88 kB / 455.4 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.151e-05/0.3519, allocations: 52.91 kB / 455.4 MB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.3532, allocations: 0.8423 MB / 456.3 MB, free: 6.91 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.005239/0.3584, allocations: 3.449 MB / 459.7 MB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009217/0.3594, allocations: 0.6353 MB / 460.3 MB, free: 5.516 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004906/0.3599, allocations: 347.7 kB / 460.7 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002616/0.3625, allocations: 2.035 MB / 462.7 MB, free: 4.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.3625, allocations: 44.94 kB / 462.8 MB, free: 4.285 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.964e-06/0.3625, allocations: 0 / 462.8 MB, free: 4.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006272/0.3688, allocations: 2.845 MB / 465.6 MB, free: 3.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.3688, allocations: 84.55 kB / 465.7 MB, free: 3.629 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008206/0.3696, allocations: 0.6791 MB / 466.4 MB, free: 3.496 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.407e-05/0.3697, allocations: 40.67 kB / 466.4 MB, free: 3.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.3699, allocations: 340.3 kB / 466.7 MB, free: 3.301 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.3701, allocations: 234.2 kB / 467 MB, free: 3.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.3703, allocations: 158 kB / 467.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3704, allocations: 394 kB / 467.5 MB, free: 2.809 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005399/0.371, allocations: 368 kB / 467.9 MB, free: 2.801 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006354/0.3716, allocations: 0.5157 MB / 468.4 MB, free: 2.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.3727, allocations: 0.862 MB / 469.3 MB, free: 2.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3727, allocations: 4.938 kB / 469.3 MB, free: 2.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001896/0.3746, allocations: 1.162 MB / 470.4 MB, free: 2.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3746, allocations: 17 kB / 470.4 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3747, allocations: 4.688 kB / 470.4 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.3759, allocations: 445.2 kB / 470.9 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006187/0.3765, allocations: 161 kB / 471 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000997/0.3775, allocations: 1.018 MB / 472 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000619/0.3781, allocations: 33.55 kB / 472.1 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.3782, allocations: 36.31 kB / 472.1 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007434/0.3789, allocations: 0.5317 MB / 472.6 MB, free: 1.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005681/0.3795, allocations: 0.5111 MB / 473.2 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001086/0.3806, allocations: 0.8411 MB / 474 MB, free: 348 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.887e-06/0.3806, allocations: 1.062 kB / 474 MB, free: 348 kB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001977/0.3826, allocations: 1.111 MB / 475.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.3826, allocations: 10.53 kB / 475.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3826, allocations: 7.156 kB / 475.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007028/0.3833, allocations: 307.7 kB / 475.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006433/0.3839, allocations: 171.6 kB / 475.6 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.385, allocations: 0.8998 MB / 476.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006001/0.3856, allocations: 32.98 kB / 476.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-05/0.3857, allocations: 35 kB / 476.6 MB, free: 15.2 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.0003163/0.386, allocations: 227.1 kB / 476.8 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.3861, allocations: 83.36 kB / 476.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.3882, allocations: 1.087 MB / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.3882, allocations: 11.16 kB / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3882, allocations: 1.531 kB / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.3882, allocations: 4.172 kB / 478 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00311/0.3913, allocations: 2.003 MB / 480 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3913, allocations: 0 / 480 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005275/0.3918, allocations: 113.2 kB / 480.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.3929, allocations: 442.6 kB / 480.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.085e-05/0.393, allocations: 23.3 kB / 480.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.3941, allocations: 1.028 MB / 481.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3941, allocations: 2.906 kB / 481.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002392/0.3965, allocations: 1.598 MB / 483.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005639/0.3971, allocations: 250.5 kB / 483.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.3972, allocations: 12.03 kB / 483.4 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005579/0.3978, allocations: 36.75 kB / 483.5 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.3979, allocations: 58.44 kB / 483.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.559e-05/0.398, allocations: 32.33 kB / 483.5 MB, free: 11.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006114/0.3986, allocations: 477.2 kB / 484 MB, free: 10.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3986, allocations: 0 / 484 MB, free: 10.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00193/0.4005, allocations: 0.5927 MB / 484.6 MB, free: 10.69 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.003779/0.4043, allocations: 2.522 MB / 487.1 MB, free: 9.105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.407, allocations: 1.326 MB / 488.5 MB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.407, allocations: 0 / 488.5 MB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008702/0.4079, allocations: 447.3 kB / 488.9 MB, free: 8.332 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.4094, allocations: 394.9 kB / 489.3 MB, free: 8.105 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.4217, allocations: 7.752 MB / 497 MB, free: 220 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006285/0.4223, allocations: 0.9911 MB / 498 MB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009861/0.4233, allocations: 302.6 kB / 498.3 MB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.4237, allocations: 281.9 kB / 498.6 MB, free: 14.62 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4237, allocations: 0 / 498.6 MB, free: 14.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06834/0.4921, allocations: 30.99 MB / 0.5172 GB, free: 15.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.71, allocations: 10.27 kB / 0.5172 GB, free: 15.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --stepSize=0.00998801 --timeout=50 --tolerance=1e-06 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.092359769158065] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 13.82059102319181 13.844449208 13.493889755 Calling exit ...