Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.002058/0.002064, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 92.42 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.032e-05/2.041e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.329, allocations: 47.56 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.144/1.473, allocations: 320.4 MB / 0.6668 GB, free: 117.9 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/1.473, allocations: 79.39 kB / 0.6669 GB, free: 117.9 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227/2.7, allocations: 267.8 MB / 0.9285 GB, free: 65.2 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.334e-06/2.701, allocations: 0 / 0.9285 GB, free: 65.2 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0002262/2.701, allocations: 35.75 kB / 0.9285 GB, free: 65.16 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008075/2.709, allocations: 1.816 MB / 0.9303 GB, free: 63.32 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/2.709, allocations: 12.03 kB / 0.9303 GB, free: 63.31 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001298/2.71, allocations: 178.1 kB / 0.9305 GB, free: 63.13 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004283/2.715, allocations: 1.118 MB / 0.9316 GB, free: 62 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002102/2.715, allocations: 137.8 kB / 0.9317 GB, free: 61.85 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005115/2.715, allocations: 60 kB / 0.9317 GB, free: 61.79 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004131/2.719, allocations: 1.593 MB / 0.9333 GB, free: 60.19 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004217/2.724, allocations: 1.598 MB / 0.9349 GB, free: 58.54 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.351e-05/2.724, allocations: 7.469 kB / 0.9349 GB, free: 58.54 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002296/2.724, allocations: 4 kB / 0.9349 GB, free: 58.53 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002446/2.724, allocations: 113.9 kB / 0.935 GB, free: 58.42 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01831/2.743, allocations: 6.119 MB / 0.941 GB, free: 52.12 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/2.745, allocations: 1.115 MB / 0.942 GB, free: 50.99 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/2.747, allocations: 0.6828 MB / 0.9427 GB, free: 50.31 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009046/2.756, allocations: 4.189 MB / 0.9468 GB, free: 45.74 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/2.756, allocations: 47.34 kB / 0.9468 GB, free: 45.69 MB / 427.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001765/2.758, allocations: 171 kB / 0.947 GB, free: 45.52 MB / 427.1 MB Notification: Performance of pre-optimization done (n=97): time 4.789e-06/2.758, allocations: 0 / 0.947 GB, free: 45.52 MB / 427.1 MB Notification: Performance of matching and sorting (n=112): time 0.02033/2.778, allocations: 4.107 MB / 0.951 GB, free: 41.37 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/2.778, allocations: 141.8 kB / 0.9512 GB, free: 41.2 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001563/2.78, allocations: 0.8159 MB / 0.952 GB, free: 40.37 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003657/2.78, allocations: 29.64 kB / 0.952 GB, free: 40.34 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/2.781, allocations: 0.6067 MB / 0.9526 GB, free: 39.72 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004645/2.781, allocations: 370.5 kB / 0.9529 GB, free: 39.36 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/2.781, allocations: 0 / 0.9529 GB, free: 39.36 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/2.781, allocations: 366.7 kB / 0.9533 GB, free: 38.99 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/2.783, allocations: 0.6169 MB / 0.9539 GB, free: 38.37 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/2.784, allocations: 0.9237 MB / 0.9548 GB, free: 37.31 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0184/2.803, allocations: 2.327 MB / 0.9571 GB, free: 34.98 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.268e-05/2.803, allocations: 4 kB / 0.9571 GB, free: 34.98 MB / 427.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.02192/2.825, allocations: 3.482 MB / 0.9605 GB, free: 31.49 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006761/2.826, allocations: 3.492 MB / 0.9639 GB, free: 27.73 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/2.826, allocations: 8 kB / 0.9639 GB, free: 27.72 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01128/2.837, allocations: 1.065 MB / 0.9649 GB, free: 26.66 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002356/2.839, allocations: 295.5 kB / 0.9652 GB, free: 26.38 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/2.845, allocations: 1.896 MB / 0.967 GB, free: 24.45 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002512/2.848, allocations: 59.8 kB / 0.9671 GB, free: 24.39 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003511/2.848, allocations: 71.95 kB / 0.9672 GB, free: 24.32 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/2.848, allocations: 4 kB / 0.9672 GB, free: 24.32 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02101/2.869, allocations: 3.246 MB / 0.9703 GB, free: 21.07 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-05/2.869, allocations: 15.88 kB / 0.9704 GB, free: 21.06 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/2.88, allocations: 0.9971 MB / 0.9713 GB, free: 20.07 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002511/2.883, allocations: 295.6 kB / 0.9716 GB, free: 19.78 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005191/2.888, allocations: 1.606 MB / 0.9732 GB, free: 18.15 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/2.89, allocations: 63.78 kB / 0.9732 GB, free: 18.09 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004656/2.891, allocations: 63.97 kB / 0.9733 GB, free: 18.02 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005589/2.892, allocations: 140.7 kB / 0.9734 GB, free: 17.88 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007977/2.9, allocations: 1.812 MB / 0.9752 GB, free: 16.05 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004909/2.9, allocations: 134.5 kB / 0.9753 GB, free: 15.92 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008892/2.909, allocations: 2.131 MB / 0.9774 GB, free: 13.79 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/2.909, allocations: 19.95 kB / 0.9774 GB, free: 13.77 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/2.909, allocations: 0 / 0.9774 GB, free: 13.77 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.597e-05/2.909, allocations: 7.969 kB / 0.9774 GB, free: 13.76 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/2.921, allocations: 3.447 MB / 0.9808 GB, free: 10.29 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/2.921, allocations: 0 / 0.9808 GB, free: 10.29 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001738/2.922, allocations: 191.8 kB / 0.981 GB, free: 10.11 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005001/2.927, allocations: 0.8003 MB / 0.9818 GB, free: 9.312 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000362/2.928, allocations: 19.66 kB / 0.9818 GB, free: 9.297 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005617/2.933, allocations: 1.892 MB / 0.9836 GB, free: 7.375 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/2.933, allocations: 4.188 kB / 0.9836 GB, free: 7.371 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009838/2.943, allocations: 2.855 MB / 0.9864 GB, free: 4.492 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/2.945, allocations: 387.2 kB / 0.9868 GB, free: 4.094 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005962/2.945, allocations: 0 / 0.9868 GB, free: 4.094 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002419/2.948, allocations: 63.84 kB / 0.9869 GB, free: 4.031 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005124/2.948, allocations: 101.2 kB / 0.987 GB, free: 3.934 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002405/2.949, allocations: 47.97 kB / 0.987 GB, free: 3.887 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.001208/2.95, allocations: 0.6006 MB / 0.9876 GB, free: 3.277 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.342e-06/2.95, allocations: 96 / 0.9876 GB, free: 3.277 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.005756/2.956, allocations: 1.167 MB / 0.9887 GB, free: 2.109 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.306/3.262, allocations: 4.349 MB / 0.993 GB, free: 68.66 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.01096/3.273, allocations: 2.426 MB / 0.9954 GB, free: 68.65 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-05/3.273, allocations: 3.5 kB / 0.9954 GB, free: 68.65 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004107/3.277, allocations: 0.7938 MB / 0.9961 GB, free: 68.64 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006571/3.284, allocations: 0.5212 MB / 0.9966 GB, free: 68.64 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/3.297, allocations: 3.003 MB / 0.9996 GB, free: 68.06 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009158/3.298, allocations: 1.312 MB / 1.001 GB, free: 67.35 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/3.299, allocations: 0.5491 MB / 1.001 GB, free: 67.34 MB / 427.1 MB Notification: Performance of SimCode: time 2.315e-06/3.299, allocations: 0 / 1.001 GB, free: 67.34 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.507/6.806, allocations: 40.68 MB / 1.041 GB, free: 65.03 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)