Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.000911/0.0009111, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007415/0.0007413, allocations: 85 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.0002851, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1937, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01118/0.2049, allocations: 15.31 MB / 390.5 MB, free: 33.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006874/0.2118, allocations: 6.542 MB / 397 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008895/0.2127, allocations: 27.75 kB / 397.1 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000714/0.2135, allocations: 286.2 kB / 397.4 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002209/0.2157, allocations: 1.065 MB / 398.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003045/0.2187, allocations: 1.401 MB / 399.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002198/0.2209, allocations: 2.623 MB / 402.4 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005665/0.2215, allocations: 0.519 MB / 403 MB, free: 20.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007895/0.2223, allocations: 0.6928 MB / 403.7 MB, free: 20.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006717/0.223, allocations: 0.7591 MB / 404.4 MB, free: 19.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.376e-05/0.2231, allocations: 43.94 kB / 404.5 MB, free: 19.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001745/0.2249, allocations: 1.143 MB / 405.6 MB, free: 18.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002021/0.2251, allocations: 267.1 kB / 405.9 MB, free: 17.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003126/0.2254, allocations: 431.9 kB / 406.3 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.2265, allocations: 1.302 MB / 407.6 MB, free: 16.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2265, allocations: 0 / 407.6 MB, free: 16.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2265, allocations: 4 kB / 407.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2265, allocations: 0 / 407.6 MB, free: 16.21 MB / 298.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.001839/0.2283, allocations: 1.107 MB / 408.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.2284, allocations: 8.031 kB / 408.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.2285, allocations: 102.7 kB / 408.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.2287, allocations: 95.73 kB / 408.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000654/0.2294, allocations: 0.5892 MB / 409.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.317e-05/0.2295, allocations: 116.7 kB / 409.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.162e-05/0.2295, allocations: 55.98 kB / 409.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.2307, allocations: 0.8962 MB / 410.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.2307, allocations: 4 kB / 410.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.64e-05/0.2308, allocations: 23.98 kB / 410.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.914e-05/0.2308, allocations: 49.28 kB / 410.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.2319, allocations: 0.8404 MB / 411.5 MB, free: 12.19 MB / 298.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.004172/0.2361, allocations: 3.466 MB / 414.9 MB, free: 8.535 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00076/0.2368, allocations: 0.6646 MB / 415.6 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004132/0.2373, allocations: 366.3 kB / 416 MB, free: 7.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002064/0.2393, allocations: 2.058 MB / 418 MB, free: 5.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.2394, allocations: 39.12 kB / 418 MB, free: 5.203 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 1.743e-06/0.2394, allocations: 0 / 418 MB, free: 5.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.005469/0.2449, allocations: 2.855 MB / 420.9 MB, free: 2.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.2449, allocations: 93.61 kB / 421 MB, free: 2.168 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.2455, allocations: 0.6682 MB / 421.7 MB, free: 1.492 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.77e-05/0.2455, allocations: 37.7 kB / 421.7 MB, free: 1.449 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.2457, allocations: 340.4 kB / 422 MB, free: 1.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.2458, allocations: 228.7 kB / 422.3 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.46e-05/0.2459, allocations: 16 kB / 422.3 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.462e-05/0.2459, allocations: 382.8 kB / 422.6 MB, free: 500 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004548/0.2464, allocations: 361.8 kB / 423 MB, free: 140 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006333/0.247, allocations: 0.5035 MB / 423.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.2482, allocations: 0.8559 MB / 424.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2482, allocations: 0 / 424.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001751/0.25, allocations: 1.149 MB / 425.5 MB, free: 13.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001166/0.2501, allocations: 219.3 kB / 425.7 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2501, allocations: 4 kB / 425.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.2513, allocations: 436.5 kB / 426.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005902/0.2519, allocations: 163.8 kB / 426.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.253, allocations: 1.018 MB / 427.3 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005263/0.2535, allocations: 55.8 kB / 427.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.006e-05/0.2536, allocations: 35.98 kB / 427.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.28e-06/0.2536, allocations: 4 kB / 427.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001595/0.2552, allocations: 0.9961 MB / 428.4 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.2552, allocations: 4.094 kB / 428.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006261/0.2558, allocations: 320.8 kB / 428.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/0.2564, allocations: 163.8 kB / 428.9 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008736/0.2573, allocations: 0.9113 MB / 429.8 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004782/0.2578, allocations: 39.89 kB / 429.8 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.203e-05/0.2579, allocations: 31.98 kB / 429.9 MB, free: 9 MB / 314.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.0003708/0.2583, allocations: 324.9 kB / 430.2 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.2584, allocations: 87.06 kB / 430.3 MB, free: 8.586 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.2602, allocations: 1.084 MB / 431.4 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.2602, allocations: 15.94 kB / 431.4 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2602, allocations: 0 / 431.4 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.2602, allocations: 4.078 kB / 431.4 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.263, allocations: 2.001 MB / 433.4 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.263, allocations: 7.984 kB / 433.4 MB, free: 5.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005287/0.2635, allocations: 115.8 kB / 433.5 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.2647, allocations: 452.4 kB / 433.9 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.066e-05/0.2647, allocations: 23.98 kB / 434 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.2658, allocations: 1.017 MB / 435 MB, free: 3.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2658, allocations: 0 / 435 MB, free: 3.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.268, allocations: 1.591 MB / 436.6 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/0.2683, allocations: 252 kB / 436.8 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.2684, allocations: 16 kB / 436.8 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005414/0.269, allocations: 43.97 kB / 436.9 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.2691, allocations: 56.56 kB / 436.9 MB, free: 1.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.111e-05/0.2692, allocations: 31.92 kB / 437 MB, free: 1.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005158/0.2697, allocations: 479 kB / 437.4 MB, free: 1.285 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2698, allocations: 0 / 437.4 MB, free: 1.285 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001302/0.2711, allocations: 0.5817 MB / 438 MB, free: 0.7031 MB / 314.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.003347/0.2744, allocations: 2.519 MB / 440.5 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.277, allocations: 1.373 MB / 441.9 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.277, allocations: 4.312 kB / 441.9 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000849/0.2779, allocations: 459.5 kB / 442.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/0.2796, allocations: 362.8 kB / 442.7 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008303/0.2879, allocations: 5.635 MB / 448.4 MB, free: 6.223 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.2884, allocations: 0.9874 MB / 449.3 MB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004342/0.2888, allocations: 287.3 kB / 449.6 MB, free: 4.926 MB / 330.7 MB Notification: Performance of SimCode: time 4.2e-07/0.2889, allocations: 0 / 449.6 MB, free: 4.926 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.342/4.631, allocations: 19.97 MB / 469.6 MB, free: 0.9297 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)