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.0008215/0.0008215, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007632/0.0007632, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.853/0.853, allocations: 173.3 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.553e-06/1.553e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/2.01e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01057/0.01059, allocations: 14.44 MB / 332.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006067/0.01666, allocations: 6.301 MB / 339.2 MB, free: 1.527 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003028/0.01696, allocations: 31.75 kB / 339.2 MB, free: 1.496 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000629/0.01759, allocations: 325.9 kB / 339.5 MB, free: 1.176 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00189/0.01948, allocations: 1.126 MB / 340.6 MB, free: 40 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003012/0.02249, allocations: 1.915 MB / 342.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001789/0.02428, allocations: 2.174 MB / 344.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007333/0.02501, allocations: 0.5056 MB / 345.2 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008655/0.02588, allocations: 1.06 MB / 346.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006519/0.02653, allocations: 0.787 MB / 347.1 MB, free: 9.578 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.422e-05/0.02661, allocations: 80 kB / 347.2 MB, free: 9.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001235/0.02785, allocations: 1.01 MB / 348.2 MB, free: 8.488 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.02807, allocations: 343 kB / 348.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.0283, allocations: 331.2 kB / 348.8 MB, free: 7.828 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001443/0.02974, allocations: 1.987 MB / 350.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.02974, allocations: 0 / 350.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.02974, allocations: 0 / 350.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.02975, allocations: 0 / 350.8 MB, free: 5.836 MB / 314.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.001761/0.03151, allocations: 1.204 MB / 352 MB, free: 4.598 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.03155, allocations: 16.91 kB / 352 MB, free: 4.582 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.517e-05/0.03165, allocations: 102.6 kB / 352.1 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.03182, allocations: 96.42 kB / 352.2 MB, free: 4.379 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006327/0.03246, allocations: 0.571 MB / 352.8 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.511e-05/0.03255, allocations: 160.1 kB / 353 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-05/0.03263, allocations: 55.98 kB / 353 MB, free: 3.547 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009924/0.03362, allocations: 1.172 MB / 354.2 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.03363, allocations: 0 / 354.2 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.63e-05/0.03368, allocations: 23.98 kB / 354.2 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.821e-05/0.03373, allocations: 53.28 kB / 354.3 MB, free: 2.207 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008796/0.03461, allocations: 0.8365 MB / 355.1 MB, free: 1.371 MB / 314.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.00326/0.03787, allocations: 2.75 MB / 357.8 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006659/0.03853, allocations: 0.6336 MB / 358.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.03887, allocations: 346.2 kB / 358.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001578/0.04045, allocations: 1.205 MB / 360 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.04047, allocations: 43.06 kB / 360.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 1.292e-06/0.04047, allocations: 4 kB / 360.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.003713/0.04419, allocations: 2.701 MB / 362.8 MB, free: 9.559 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.04423, allocations: 81.77 kB / 362.8 MB, free: 9.461 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004997/0.04473, allocations: 0.6837 MB / 363.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.403e-05/0.04477, allocations: 41.7 kB / 363.6 MB, free: 8.723 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.04494, allocations: 337 kB / 363.9 MB, free: 8.391 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.04506, allocations: 238 kB / 364.1 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.04521, allocations: 150.5 kB / 364.3 MB, free: 8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.04532, allocations: 390.7 kB / 364.7 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.0457, allocations: 376.6 kB / 365 MB, free: 7.238 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004531/0.04616, allocations: 0.5403 MB / 365.6 MB, free: 6.629 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.04721, allocations: 0.8681 MB / 366.4 MB, free: 5.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.04721, allocations: 0 / 366.4 MB, free: 5.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001181/0.04839, allocations: 1.161 MB / 367.6 MB, free: 4.527 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.04841, allocations: 8 kB / 367.6 MB, free: 4.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.04842, allocations: 4 kB / 367.6 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007134/0.04913, allocations: 452 kB / 368.1 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.04946, allocations: 167.7 kB / 368.2 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007733/0.05023, allocations: 1.017 MB / 369.2 MB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002386/0.05047, allocations: 28.03 kB / 369.3 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/0.05052, allocations: 35.98 kB / 369.3 MB, free: 2.805 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005122/0.05103, allocations: 0.537 MB / 369.8 MB, free: 2.266 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004508/0.05148, allocations: 0.5362 MB / 370.4 MB, free: 1.664 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007779/0.05226, allocations: 0.8455 MB / 371.2 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.014e-06/0.05226, allocations: 0 / 371.2 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001209/0.05347, allocations: 1.115 MB / 372.3 MB, free: 15.63 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.407e-06/0.05348, allocations: 8 kB / 372.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.05348, allocations: 4 kB / 372.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004131/0.0539, allocations: 304.8 kB / 372.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.05423, allocations: 171.7 kB / 372.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009571/0.05519, allocations: 0.9035 MB / 373.7 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.05542, allocations: 28.03 kB / 373.7 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.159e-05/0.05546, allocations: 39.92 kB / 373.8 MB, free: 14.15 MB / 346.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.0001544/0.05562, allocations: 232.1 kB / 374 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.05571, allocations: 87.42 kB / 374.1 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.05694, allocations: 1.072 MB / 375.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.05694, allocations: 8.031 kB / 375.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.05695, allocations: 11.92 kB / 375.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.05696, allocations: 3.984 kB / 375.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.05884, allocations: 1.851 MB / 377 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.05884, allocations: 0 / 377 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002953/0.05913, allocations: 115.9 kB / 377.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006203/0.05975, allocations: 440.5 kB / 377.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.11e-05/0.0598, allocations: 23.98 kB / 377.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007473/0.06054, allocations: 1.025 MB / 378.6 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.06054, allocations: 0 / 378.6 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.06213, allocations: 1.597 MB / 380.2 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002235/0.06235, allocations: 167.4 kB / 380.4 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.498e-05/0.06242, allocations: 19.98 kB / 380.4 MB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.06267, allocations: 31.98 kB / 380.4 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004126/0.06308, allocations: 64.66 kB / 380.5 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.06312, allocations: 27.98 kB / 380.5 MB, free: 7.277 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000357/0.06348, allocations: 483 kB / 381 MB, free: 6.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06348, allocations: 0 / 381 MB, free: 6.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001048/0.06453, allocations: 0.5925 MB / 381.6 MB, free: 6.215 MB / 346.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.002347/0.06688, allocations: 2.561 MB / 384.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.06844, allocations: 1.319 MB / 385.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.06844, allocations: 0 / 385.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004992/0.06894, allocations: 447.5 kB / 385.9 MB, free: 1.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009175/0.06986, allocations: 388 kB / 386.3 MB, free: 1.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007423/0.07728, allocations: 7.668 MB / 394 MB, free: 9.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.07752, allocations: 400.8 kB / 394.3 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005519/0.07807, allocations: 310.5 kB / 394.7 MB, free: 8.883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004509/0.07852, allocations: 276.4 kB / 394.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.07852, allocations: 0 / 394.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03895/0.1175, allocations: 32.3 MB / 427.2 MB, free: 8.695 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.053, allocations: 7.047 kB / 427.2 MB, free: 8.695 MB / 394.7 MB " [Timeout remaining time 652] (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: 9.671402603387833] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'tank2.ports[1].m_flow'] 8.155850949697196 8.164706267 8.133282531 Calling exit ...