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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 107.2 kB / 16.92 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002062/0.002062, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.321/2.321, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 45.92 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1847, allocations: 49.43 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0357/0.2205, allocations: 15.84 MB / 366 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3715/0.5921, allocations: 6.891 MB / 372.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.5943, allocations: 22.84 kB / 372.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002199/0.5965, allocations: 332.8 kB / 373.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006653/0.6032, allocations: 1.067 MB / 374.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01529/0.6186, allocations: 1.804 MB / 376.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007041/0.6257, allocations: 2.144 MB / 378.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002324/0.6281, allocations: 0.5957 MB / 378.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00349/0.6316, allocations: 0.7902 MB / 379.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003224/0.6348, allocations: 0.7962 MB / 380.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006696/0.6356, allocations: 79.72 kB / 380.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007002/0.6426, allocations: 1.216 MB / 381.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001507/0.6442, allocations: 311.7 kB / 382 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002447/0.6467, allocations: 463.5 kB / 382.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008991/0.6557, allocations: 1.821 MB / 384.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.033e-05/0.6558, allocations: 6.875 kB / 384.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.6558, allocations: 0 / 384.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.359e-05/0.6559, allocations: 1.062 kB / 384.3 MB, free: 8.133 MB / 302.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.007495/0.6634, allocations: 1.261 MB / 385.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.647e-05/0.6635, allocations: 9.844 kB / 385.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004965/0.664, allocations: 103.8 kB / 385.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.6651, allocations: 102.4 kB / 385.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.6674, allocations: 0.5953 MB / 386.4 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002404/0.6677, allocations: 112.9 kB / 386.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002972/0.668, allocations: 53.25 kB / 386.5 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003503/0.6716, allocations: 0.8939 MB / 387.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.183e-05/0.6717, allocations: 1.438 kB / 387.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/0.6719, allocations: 32.02 kB / 387.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001691/0.6721, allocations: 47.72 kB / 387.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002957/0.6751, allocations: 0.8415 MB / 388.4 MB, free: 5.938 MB / 302.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.01191/0.687, allocations: 3.462 MB / 391.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.6891, allocations: 0.6637 MB / 392.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.6902, allocations: 369.5 kB / 392.8 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00562/0.6959, allocations: 2.038 MB / 394.9 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.853e-05/0.696, allocations: 43.19 kB / 394.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 9.638e-06/0.696, allocations: 0 / 394.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.01412/0.7102, allocations: 2.836 MB / 397.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.7103, allocations: 86.2 kB / 397.8 MB, free: 15.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001884/0.7122, allocations: 0.6806 MB / 398.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001724/0.7124, allocations: 36.14 kB / 398.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004914/0.713, allocations: 337.7 kB / 398.9 MB, free: 14.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004209/0.7134, allocations: 225.6 kB / 399.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005482/0.714, allocations: 154 kB / 399.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003536/0.7143, allocations: 397.4 kB / 399.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.7154, allocations: 374.2 kB / 400 MB, free: 13.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.7167, allocations: 0.5199 MB / 400.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/0.7192, allocations: 0.8583 MB / 401.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.7192, allocations: 1.5 kB / 401.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003978/0.7232, allocations: 1.164 MB / 402.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.532e-05/0.7233, allocations: 8.562 kB / 402.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.666e-05/0.7233, allocations: 4 kB / 402.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.7258, allocations: 452.4 kB / 403 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.7271, allocations: 163.7 kB / 403.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003094/0.7302, allocations: 1.019 MB / 404.2 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.732, allocations: 36.03 kB / 404.2 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000275/0.7323, allocations: 31.98 kB / 404.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001977/0.7343, allocations: 0.5331 MB / 404.8 MB, free: 9.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001393/0.7358, allocations: 0.516 MB / 405.3 MB, free: 8.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002468/0.7383, allocations: 0.8353 MB / 406.1 MB, free: 7.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.874e-05/0.7383, allocations: 4 kB / 406.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003961/0.7423, allocations: 1.102 MB / 407.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.7424, allocations: 12 kB / 407.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.7424, allocations: 4 kB / 407.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001274/0.7437, allocations: 308.7 kB / 407.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.7449, allocations: 167.8 kB / 407.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.7467, allocations: 0.9111 MB / 408.6 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.748, allocations: 32.03 kB / 408.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.7482, allocations: 39.98 kB / 408.7 MB, free: 5.305 MB / 318.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.0004996/0.7487, allocations: 231.4 kB / 408.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005311/0.7492, allocations: 79.06 kB / 409 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004135/0.7534, allocations: 1.088 MB / 410.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/0.7534, allocations: 8 kB / 410.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.866e-05/0.7535, allocations: 0 / 410.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.128e-05/0.7535, allocations: 7.984 kB / 410.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006652/0.7602, allocations: 2.001 MB / 412.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.7602, allocations: 4 kB / 412.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.7614, allocations: 119.8 kB / 412.2 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002319/0.7637, allocations: 448.5 kB / 412.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.7639, allocations: 19.98 kB / 412.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.766, allocations: 1.017 MB / 413.7 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.7661, allocations: 3.938 kB / 413.7 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.7704, allocations: 1.602 MB / 415.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008541/0.7713, allocations: 248 kB / 415.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003542/0.7717, allocations: 12 kB / 415.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.7729, allocations: 39.97 kB / 415.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.7732, allocations: 60.52 kB / 415.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001735/0.7734, allocations: 27.97 kB / 415.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00124/0.7746, allocations: 483 kB / 416.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 4e-07/0.7747, allocations: 0 / 416.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003563/0.7782, allocations: 0.574 MB / 416.7 MB, free: 13.14 MB / 334.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.007931/0.7862, allocations: 2.526 MB / 419.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006712/0.7929, allocations: 1.564 MB / 420.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/0.793, allocations: 4 kB / 420.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.7949, allocations: 467.5 kB / 421.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00393/0.7989, allocations: 396.3 kB / 421.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04283/0.8418, allocations: 8.008 MB / 429.7 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/0.8431, allocations: 0.9911 MB / 430.7 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002816/0.846, allocations: 314.5 kB / 431 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009225/0.847, allocations: 283.3 kB / 431.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of SimCode: time 1.743e-06/0.847, allocations: 0 / 431.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1937/1.041, allocations: 30.53 MB / 461.8 MB, free: 148 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.42/20.46, allocations: 11.8 kB / 461.8 MB, free: 140 kB / 366.1 MB (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.02 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)