Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 114.2 kB / 17.75 MB, free: 5.324 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.001148/0.001148, allocations: 181.4 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009676/0.0009676, allocations: 47.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2064, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02688/0.2333, allocations: 28.68 MB / 430.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01814/0.2515, allocations: 15.02 MB / 445.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009904/0.2525, allocations: 43.75 kB / 445.1 MB, free: 13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.2539, allocations: 0.5979 MB / 445.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004646/0.2585, allocations: 2.317 MB / 448.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007493/0.2661, allocations: 3.744 MB / 451.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004446/0.2705, allocations: 4.139 MB / 455.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001621/0.2721, allocations: 1.16 MB / 457.1 MB, free: 1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002352/0.2745, allocations: 1.569 MB / 458.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002376/0.2769, allocations: 1.666 MB / 460.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003923/0.2773, allocations: 160 kB / 460.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004054/0.2814, allocations: 2.418 MB / 462.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007069/0.2821, allocations: 0.6233 MB / 463.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.2832, allocations: 0.875 MB / 464.4 MB, free: 9.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004762/0.288, allocations: 3.721 MB / 468.1 MB, free: 5.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.288, allocations: 0 / 468.1 MB, free: 5.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.288, allocations: 0 / 468.1 MB, free: 5.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.341e-05/0.2881, allocations: 4 kB / 468.1 MB, free: 5.938 MB / 382.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.005257/0.2933, allocations: 2.204 MB / 470.3 MB, free: 3.676 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2934, allocations: 11.89 kB / 470.3 MB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005834/0.294, allocations: 170.1 kB / 470.5 MB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001844/0.2958, allocations: 1.057 MB / 471.6 MB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.296, allocations: 187 kB / 471.7 MB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.2962, allocations: 95.97 kB / 471.8 MB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002918/0.2991, allocations: 1.753 MB / 473.6 MB, free: 304 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.2992, allocations: 7.938 kB / 473.6 MB, free: 296 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.2993, allocations: 43.97 kB / 473.6 MB, free: 252 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001558/0.2995, allocations: 109.9 kB / 473.8 MB, free: 140 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002978/0.3025, allocations: 1.788 MB / 475.5 MB, free: 14.34 MB / 398.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.01147/0.3139, allocations: 6.696 MB / 482.2 MB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.3159, allocations: 1.242 MB / 483.5 MB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001143/0.317, allocations: 0.7655 MB / 484.2 MB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005731/0.3227, allocations: 4.274 MB / 488.5 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.3228, allocations: 47.56 kB / 488.6 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006228/0.3234, allocations: 170.7 kB / 488.7 MB, free: 392 kB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 2.916e-06/0.3234, allocations: 0 / 488.7 MB, free: 392 kB / 398.1 MB Notification: Performance of matching and sorting (n=112): time 0.01834/0.3418, allocations: 5.695 MB / 494.4 MB, free: 10.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.3419, allocations: 141.5 kB / 494.6 MB, free: 10.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.3434, allocations: 1.253 MB / 495.8 MB, free: 9.195 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.3435, allocations: 49.7 kB / 495.9 MB, free: 9.141 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004364/0.344, allocations: 0.6091 MB / 496.5 MB, free: 8.523 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/0.3443, allocations: 390.4 kB / 496.9 MB, free: 8.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004719/0.3448, allocations: 299.3 kB / 497.1 MB, free: 7.836 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.526e-05/0.3449, allocations: 301.1 kB / 497.4 MB, free: 7.539 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.346, allocations: 0.723 MB / 498.2 MB, free: 6.812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.3475, allocations: 1.064 MB / 499.2 MB, free: 5.605 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002598/0.3501, allocations: 1.751 MB / 0.4892 GB, free: 3.723 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.3501, allocations: 3.984 kB / 0.4892 GB, free: 3.719 MB / 414.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003933/0.3541, allocations: 2.285 MB / 0.4915 GB, free: 1.422 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3541, allocations: 11.94 kB / 0.4915 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3541, allocations: 8 kB / 0.4915 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007375/0.3615, allocations: 1.292 MB / 0.4928 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.3628, allocations: 299.6 kB / 0.493 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/0.3652, allocations: 1.599 MB / 0.4946 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.3663, allocations: 55.97 kB / 0.4947 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.3664, allocations: 71.97 kB / 0.4947 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001552/0.368, allocations: 0.9762 MB / 0.4957 GB, free: 13.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001412/0.3694, allocations: 1.059 MB / 0.4967 GB, free: 11.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002492/0.3719, allocations: 1.718 MB / 0.4984 GB, free: 10.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.346e-06/0.3719, allocations: 7.938 kB / 0.4984 GB, free: 10 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003782/0.3757, allocations: 2.203 MB / 0.5005 GB, free: 7.789 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3757, allocations: 8 kB / 0.5006 GB, free: 7.781 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3757, allocations: 16.09 kB / 0.5006 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006488/0.3822, allocations: 1.092 MB / 0.5016 GB, free: 6.672 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.3835, allocations: 311.5 kB / 0.5019 GB, free: 6.367 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.3854, allocations: 1.445 MB / 0.5033 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.3865, allocations: 67.95 kB / 0.5034 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.3867, allocations: 71.91 kB / 0.5035 GB, free: 4.762 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],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 (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0003464/0.387, allocations: 279.7 kB / 0.5037 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/0.3873, allocations: 146.2 kB / 0.5039 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004064/0.3914, allocations: 2.075 MB / 0.5059 GB, free: 2.246 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.3914, allocations: 7.969 kB / 0.5059 GB, free: 2.238 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3914, allocations: 3.938 kB / 0.5059 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006847/0.3921, allocations: 395 kB / 0.5063 GB, free: 1.828 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002283/0.3923, allocations: 24 kB / 0.5063 GB, free: 1.805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009683/0.3933, allocations: 63.89 kB / 0.5064 GB, free: 1.742 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/0.3935, allocations: 93.17 kB / 0.5065 GB, free: 1.652 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004597/0.3981, allocations: 2.045 MB / 0.5085 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003812/0.402, allocations: 2.521 MB / 0.5109 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001081/0.4031, allocations: 0.7207 MB / 0.5116 GB, free: 12.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001075/0.4042, allocations: 0.8479 MB / 0.5125 GB, free: 11.49 MB / 446.1 MB Notification: Performance of Backend: time 3.71e-07/0.4042, allocations: 0 / 0.5125 GB, free: 11.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007502/0.4117, allocations: 3.116 MB / 0.5155 GB, free: 8.379 MB / 446.1 MB Notification: Performance of SimCode: time 0.005335/0.417, allocations: 3.722 MB / 0.5191 GB, free: 4.621 MB / 446.1 MB Notification: Performance of Templates: time 0.2115/0.6285, allocations: 48.49 MB / 0.5665 GB, free: 117.9 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)