Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000925/0.0009251, allocations: 199.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 226.5 MB / 244.7 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007278/0.0007278, allocations: 97.06 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002222/0.0002222, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1777, allocations: 51.28 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.009504/0.1872, allocations: 15.36 MB / 423.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006052/0.1933, allocations: 6.617 MB / 430.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004773/0.1938, allocations: 31.75 kB / 430.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005271/0.1943, allocations: 274.3 kB / 430.4 MB, free: 5.367 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001542/0.1959, allocations: 1.077 MB / 431.5 MB, free: 4.285 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.1982, allocations: 1.39 MB / 432.9 MB, free: 2.906 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001524/0.1998, allocations: 2.627 MB / 435.5 MB, free: 276 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004977/0.2003, allocations: 0.5216 MB / 436 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007685/0.2011, allocations: 0.7006 MB / 436.7 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007731/0.2019, allocations: 0.759 MB / 437.5 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.202, allocations: 44 kB / 437.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.2036, allocations: 1.162 MB / 438.7 MB, free: 13.06 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002415/0.2038, allocations: 267.2 kB / 438.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003686/0.2042, allocations: 431.8 kB / 439.4 MB, free: 12.37 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.2054, allocations: 1.311 MB / 440.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2054, allocations: 0 / 440.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2055, allocations: 0 / 440.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.2055, allocations: 0 / 440.7 MB, free: 11.06 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.001912/0.2074, allocations: 1.107 MB / 441.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.2074, allocations: 15.97 kB / 441.8 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.2075, allocations: 98.69 kB / 441.9 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.2078, allocations: 95.98 kB / 442 MB, free: 9.688 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007316/0.2085, allocations: 0.5892 MB / 442.6 MB, free: 9.055 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.256e-05/0.2086, allocations: 108.7 kB / 442.7 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.028e-05/0.2087, allocations: 55.86 kB / 442.7 MB, free: 8.883 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.21, allocations: 0.8924 MB / 443.6 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.21, allocations: 0 / 443.6 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.2101, allocations: 27.98 kB / 443.7 MB, free: 7.938 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.888e-05/0.2102, allocations: 57.2 kB / 443.7 MB, free: 7.883 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.2114, allocations: 0.8365 MB / 444.6 MB, free: 7.043 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.004694/0.2161, allocations: 3.478 MB / 448 MB, free: 3.367 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008878/0.217, allocations: 0.6492 MB / 448.7 MB, free: 2.711 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004808/0.2175, allocations: 370.3 kB / 449 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002362/0.2198, allocations: 2.055 MB / 451.1 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.2199, allocations: 39.12 kB / 451.1 MB, free: 52 kB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 1.402e-06/0.2199, allocations: 0 / 451.1 MB, free: 52 kB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.005996/0.2259, allocations: 2.859 MB / 454 MB, free: 13.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.2259, allocations: 85.61 kB / 454.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000669/0.2266, allocations: 0.6759 MB / 454.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.43e-05/0.2267, allocations: 41.7 kB / 454.8 MB, free: 12.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.2269, allocations: 332.4 kB / 455.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.2271, allocations: 224.8 kB / 455.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.2271, allocations: 16 kB / 455.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.2272, allocations: 386.8 kB / 455.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005233/0.2278, allocations: 361.7 kB / 456.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000598/0.2284, allocations: 0.5112 MB / 456.6 MB, free: 10.4 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.2295, allocations: 0.8482 MB / 457.4 MB, free: 9.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.2295, allocations: 4 kB / 457.4 MB, free: 9.492 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001695/0.2312, allocations: 1.138 MB / 458.6 MB, free: 8.344 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.957e-05/0.2313, allocations: 219.1 kB / 458.8 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2313, allocations: 7.984 kB / 458.8 MB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.2325, allocations: 444.4 kB / 459.2 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000586/0.2331, allocations: 163.7 kB / 459.4 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.2341, allocations: 1.017 MB / 460.4 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/0.2346, allocations: 43.83 kB / 460.5 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.708e-05/0.2347, allocations: 43.92 kB / 460.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.362e-06/0.2347, allocations: 4 kB / 460.5 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001537/0.2362, allocations: 0.9923 MB / 461.5 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2362, allocations: 8 kB / 461.5 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006187/0.2369, allocations: 308.8 kB / 461.8 MB, free: 5.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005759/0.2374, allocations: 171.7 kB / 462 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008303/0.2383, allocations: 0.8994 MB / 462.9 MB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004582/0.2388, allocations: 47.88 kB / 462.9 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.18e-05/0.2388, allocations: 31.98 kB / 463 MB, free: 3.855 MB / 330.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 (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 initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003082/0.2391, allocations: 332.8 kB / 463.3 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.2393, allocations: 83.06 kB / 463.4 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.241, allocations: 1.088 MB / 464.4 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.241, allocations: 8 kB / 464.5 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2411, allocations: 3.938 kB / 464.5 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2411, allocations: 3.984 kB / 464.5 MB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.2438, allocations: 2.002 MB / 466.5 MB, free: 264 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.2438, allocations: 4 kB / 466.5 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005361/0.2443, allocations: 127.8 kB / 466.6 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/0.2454, allocations: 440.5 kB / 467 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.547e-05/0.2455, allocations: 15.98 kB / 467 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.2466, allocations: 1.032 MB / 468.1 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2466, allocations: 3.938 kB / 468.1 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.2487, allocations: 1.588 MB / 469.7 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000326/0.2491, allocations: 256.1 kB / 469.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.2492, allocations: 12 kB / 469.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005532/0.2497, allocations: 51.95 kB / 470 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.2499, allocations: 56.58 kB / 470 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.738e-05/0.25, allocations: 27.97 kB / 470.1 MB, free: 12.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005163/0.2505, allocations: 479 kB / 470.5 MB, free: 12.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2505, allocations: 0 / 470.5 MB, free: 12.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001276/0.2518, allocations: 0.5818 MB / 471.1 MB, free: 11.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003345/0.2551, allocations: 2.516 MB / 473.6 MB, free: 9.008 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002512/0.2577, allocations: 1.373 MB / 475 MB, free: 7.637 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2577, allocations: 4 kB / 475 MB, free: 7.633 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00083/0.2585, allocations: 463.9 kB / 475.5 MB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001589/0.2601, allocations: 377.9 kB / 475.8 MB, free: 6.816 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008339/0.2685, allocations: 5.625 MB / 481.4 MB, free: 1.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.269, allocations: 0.9835 MB / 482.4 MB, free: 60 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.2694, allocations: 295.3 kB / 482.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2694, allocations: 0 / 482.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.294/4.564, allocations: 20.1 MB / 0.491 GB, free: 11.65 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)