Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008375/0.008375, allocations: 166 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.329/1.329, allocations: 170.8 MB / 186.6 MB, free: 1.137 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001598/0.001598, allocations: 126.5 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004154/0.0004154, allocations: 8 kB / 274.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2614, allocations: 38.77 MB / 312.9 MB, free: 38.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8033/1.065, allocations: 311.4 MB / 0.6096 GB, free: 74.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003791/1.065, allocations: 83.78 kB / 0.6097 GB, free: 74.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.092/2.157, allocations: 267.7 MB / 0.8711 GB, free: 51.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/2.157, allocations: 0 / 0.8711 GB, free: 51.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002488/2.157, allocations: 49.61 kB / 0.8712 GB, free: 51.41 MB / 362.7 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.008963/2.166, allocations: 1.979 MB / 0.8731 GB, free: 50.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/2.166, allocations: 15.33 kB / 0.8731 GB, free: 50.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001451/2.168, allocations: 173.4 kB / 0.8733 GB, free: 50.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004038/2.172, allocations: 1.127 MB / 0.8744 GB, free: 50 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/2.172, allocations: 173.3 kB / 0.8746 GB, free: 49.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006996/2.173, allocations: 96.52 kB / 0.8746 GB, free: 49.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004271/2.177, allocations: 1.774 MB / 0.8764 GB, free: 49.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.936e-05/2.177, allocations: 1.5 kB / 0.8764 GB, free: 49.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001745/2.177, allocations: 41.66 kB / 0.8764 GB, free: 49.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000201/2.178, allocations: 113.1 kB / 0.8765 GB, free: 49.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003033/2.181, allocations: 1.776 MB / 0.8783 GB, free: 49.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.012/2.193, allocations: 6.416 MB / 0.8845 GB, free: 47.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/2.195, allocations: 1.175 MB / 0.8857 GB, free: 47.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006238/2.201, allocations: 4.177 MB / 0.8898 GB, free: 45.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/2.201, allocations: 48.38 kB / 0.8898 GB, free: 45.25 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001306/2.202, allocations: 205.4 kB / 0.89 GB, free: 45.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 4.959e-06/2.202, allocations: 0 / 0.89 GB, free: 45.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.02105/2.223, allocations: 5.365 MB / 0.8952 GB, free: 44.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.778e-05/2.223, allocations: 143.8 kB / 0.8954 GB, free: 44.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003171/2.227, allocations: 1.098 MB / 0.8964 GB, free: 44.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002519/2.227, allocations: 49.2 kB / 0.8965 GB, free: 44.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000795/2.228, allocations: 0.5984 MB / 0.8971 GB, free: 43.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005709/2.228, allocations: 387.2 kB / 0.8974 GB, free: 43.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/2.229, allocations: 29.31 kB / 0.8975 GB, free: 43.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002108/2.229, allocations: 366.7 kB / 0.8978 GB, free: 43.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/2.23, allocations: 0.6375 MB / 0.8984 GB, free: 43.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001745/2.232, allocations: 0.9663 MB / 0.8994 GB, free: 43.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/2.234, allocations: 0.7616 MB / 0.9001 GB, free: 43.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.869e-05/2.234, allocations: 3.688 kB / 0.9001 GB, free: 43.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00484/2.238, allocations: 2.111 MB / 0.9022 GB, free: 42.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001319/2.24, allocations: 3.513 MB / 0.9056 GB, free: 39.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.656e-05/2.24, allocations: 13.22 kB / 0.9056 GB, free: 39.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007321/2.247, allocations: 1.236 MB / 0.9068 GB, free: 39.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/2.249, allocations: 290.2 kB / 0.9071 GB, free: 39.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002475/2.251, allocations: 1.541 MB / 0.9086 GB, free: 38.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/2.253, allocations: 86.34 kB / 0.9087 GB, free: 38.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003208/2.254, allocations: 74.2 kB / 0.9088 GB, free: 38.67 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/2.254, allocations: 3.094 kB / 0.9088 GB, free: 38.67 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003617/2.257, allocations: 1.791 MB / 0.9105 GB, free: 38.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/2.257, allocations: 6.5 kB / 0.9105 GB, free: 38.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006228/2.264, allocations: 0.9702 MB / 0.9115 GB, free: 38.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/2.265, allocations: 303.3 kB / 0.9118 GB, free: 38.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/2.267, allocations: 1.229 MB / 0.913 GB, free: 38.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/2.269, allocations: 83.22 kB / 0.9131 GB, free: 38.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003032/2.269, allocations: 67.28 kB / 0.9131 GB, free: 38.08 MB / 362.7 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 () * Number of clocked 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001285/2.271, allocations: 464 kB / 0.9136 GB, free: 37.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005324/2.271, allocations: 143.2 kB / 0.9137 GB, free: 37.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004791/2.276, allocations: 2.026 MB / 0.9157 GB, free: 37.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/2.276, allocations: 15.56 kB / 0.9157 GB, free: 37.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/2.276, allocations: 0 / 0.9157 GB, free: 37.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/2.276, allocations: 7.734 kB / 0.9157 GB, free: 37.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007455/2.284, allocations: 3.442 MB / 0.9191 GB, free: 35.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/2.284, allocations: 0 / 0.9191 GB, free: 35.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/2.285, allocations: 192.1 kB / 0.9192 GB, free: 35.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004262/2.289, allocations: 0.962 MB / 0.9202 GB, free: 35.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001824/2.289, allocations: 31.08 kB / 0.9202 GB, free: 35.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002599/2.292, allocations: 1.562 MB / 0.9217 GB, free: 34.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/2.292, allocations: 3.953 kB / 0.9217 GB, free: 34.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005113/2.297, allocations: 2.749 MB / 0.9244 GB, free: 33.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/2.298, allocations: 399.2 kB / 0.9248 GB, free: 33.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006677/2.299, allocations: 23.72 kB / 0.9248 GB, free: 33.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/2.301, allocations: 90.61 kB / 0.9249 GB, free: 33.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002874/2.301, allocations: 95.89 kB / 0.925 GB, free: 33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001907/2.301, allocations: 54.77 kB / 0.9251 GB, free: 32.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00183/2.303, allocations: 0.8392 MB / 0.9259 GB, free: 32.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.303, allocations: 0 / 0.9259 GB, free: 32.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004828/2.308, allocations: 1.245 MB / 0.9271 GB, free: 32.34 MB / 362.7 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 () * Number of clocked 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.003737/2.312, allocations: 1.066 MB / 0.9281 GB, free: 31.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005867/2.318, allocations: 2.571 MB / 0.9306 GB, free: 30.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/2.318, allocations: 0 / 0.9306 GB, free: 30.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/2.32, allocations: 0.8413 MB / 0.9315 GB, free: 29.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00324/2.323, allocations: 0.5839 MB / 0.932 GB, free: 28.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006819/2.33, allocations: 3.532 MB / 0.9355 GB, free: 25.83 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/2.331, allocations: 1.315 MB / 0.9368 GB, free: 24.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002537/2.333, allocations: 0.5525 MB / 0.9373 GB, free: 24.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000494/2.334, allocations: 130.3 kB / 0.9374 GB, free: 24.23 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/2.334, allocations: 1.594 kB / 0.9374 GB, free: 24.23 MB / 362.7 MB Notification: Performance of Templates: time 0.3294/2.663, allocations: 40.05 MB / 0.9765 GB, free: 46.5 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)