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/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 3.2.3+maint.om/package.mo", uses=false) 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 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="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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 47.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2677, allocations: 46.64 MB / 325.3 MB, free: 1.887 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.0291/0.2969, allocations: 28.68 MB / 354 MB, free: 7.176 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02097/0.3179, allocations: 15.01 MB / 369 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002566/0.3205, allocations: 43.75 kB / 369 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002086/0.3226, allocations: 0.5901 MB / 369.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007631/0.3303, allocations: 2.294 MB / 371.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009671/0.34, allocations: 3.736 MB / 375.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006366/0.3464, allocations: 4.143 MB / 379.8 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002117/0.3485, allocations: 1.156 MB / 381 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003715/0.3522, allocations: 1.534 MB / 382.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002703/0.355, allocations: 1.67 MB / 384.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003875/0.3554, allocations: 168 kB / 384.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00558/0.3609, allocations: 2.398 MB / 386.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000882/0.3619, allocations: 0.6194 MB / 387.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001296/0.3632, allocations: 0.8711 MB / 388.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007722/0.3709, allocations: 3.702 MB / 391.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3709, allocations: 0 / 391.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.371, allocations: 0 / 391.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.865e-05/0.371, allocations: 0 / 391.9 MB, free: 1.105 MB / 318.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.005954/0.3769, allocations: 2.2 MB / 394.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.377, allocations: 12.03 kB / 394.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005687/0.3776, allocations: 178.1 kB / 394.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.3793, allocations: 1.003 MB / 395.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/0.3795, allocations: 175.1 kB / 395.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.3797, allocations: 95.97 kB / 395.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002735/0.3824, allocations: 1.757 MB / 397.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.3825, allocations: 3.938 kB / 397.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001413/0.3826, allocations: 43.97 kB / 397.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.3828, allocations: 113.9 kB / 397.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002753/0.3855, allocations: 1.784 MB / 399.3 MB, free: 9.57 MB / 334.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.0113/0.3968, allocations: 6.707 MB / 406 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.3987, allocations: 1.238 MB / 407.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.3998, allocations: 0.7611 MB / 408 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005545/0.4053, allocations: 4.279 MB / 412.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.4054, allocations: 55.5 kB / 412.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006575/0.4061, allocations: 170.7 kB / 412.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 4.308e-06/0.4061, allocations: 4 kB / 412.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01821/0.4243, allocations: 5.68 MB / 418.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.014e-05/0.4244, allocations: 145.5 kB / 418.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.4264, allocations: 1.257 MB / 419.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.4266, allocations: 49.7 kB / 419.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000487/0.4271, allocations: 0.609 MB / 420.2 MB, free: 3.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003837/0.4275, allocations: 398.4 kB / 420.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005147/0.428, allocations: 283.4 kB / 420.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.4281, allocations: 309.1 kB / 421.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.4294, allocations: 0.7192 MB / 421.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001562/0.431, allocations: 1.064 MB / 423 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002845/0.4338, allocations: 1.743 MB / 424.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/0.4338, allocations: 4 kB / 424.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004294/0.4381, allocations: 2.296 MB / 427 MB, free: 12.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.4382, allocations: 12.03 kB / 427 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.4382, allocations: 11.94 kB / 427 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006844/0.4451, allocations: 1.281 MB / 428.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.4464, allocations: 299.5 kB / 428.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/0.4491, allocations: 1.595 MB / 430.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.4507, allocations: 67.95 kB / 430.3 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000232/0.451, allocations: 71.91 kB / 430.3 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001829/0.4528, allocations: 0.9762 MB / 431.3 MB, free: 8.293 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001496/0.4543, allocations: 1.063 MB / 432.4 MB, free: 7.082 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002787/0.4571, allocations: 1.718 MB / 434.1 MB, free: 5.223 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.136e-05/0.4571, allocations: 0 / 434.1 MB, free: 5.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004266/0.4614, allocations: 2.198 MB / 436.3 MB, free: 3.012 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4614, allocations: 12 kB / 436.3 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.4615, allocations: 8 kB / 436.3 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006354/0.4678, allocations: 1.101 MB / 437.4 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.4692, allocations: 307.5 kB / 437.7 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002154/0.4714, allocations: 1.454 MB / 439.2 MB, free: 108 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.4729, allocations: 63.97 kB / 439.2 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002518/0.4732, allocations: 72.02 kB / 439.3 MB, free: 15.97 MB / 382.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.0005703/0.4738, allocations: 259.9 kB / 439.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/0.4743, allocations: 146.2 kB / 439.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004539/0.4788, allocations: 2.102 MB / 441.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.4789, allocations: 19.94 kB / 441.8 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4789, allocations: 4 kB / 441.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.4789, allocations: 3.984 kB / 441.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00644/0.4853, allocations: 3.583 MB / 445.4 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.4854, allocations: 0 / 445.4 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009692/0.4864, allocations: 195.8 kB / 445.6 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002504/0.4889, allocations: 0.8557 MB / 446.5 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/0.489, allocations: 31.98 kB / 446.5 MB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.4913, allocations: 1.626 MB / 448.1 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4913, allocations: 0 / 448.1 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004889/0.4962, allocations: 2.903 MB / 451 MB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008729/0.4971, allocations: 399.1 kB / 451.4 MB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000353/0.4975, allocations: 27.98 kB / 451.4 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.4986, allocations: 59.89 kB / 451.5 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.4989, allocations: 93.17 kB / 451.6 MB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/0.499, allocations: 51.97 kB / 451.6 MB, free: 3.492 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001265/0.5003, allocations: 0.848 MB / 452.5 MB, free: 2.641 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5003, allocations: 0 / 452.5 MB, free: 2.641 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002975/0.5033, allocations: 1.156 MB / 453.6 MB, free: 1.484 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * 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 (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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002237/0.5055, allocations: 0.8496 MB / 454.5 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1625/0.6681, allocations: 3.295 MB / 457.8 MB, free: 117.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.6681, allocations: 1.406 kB / 457.8 MB, free: 117.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001794/0.6699, allocations: 0.8704 MB / 458.7 MB, free: 117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/0.673, allocations: 0.6568 MB / 459.3 MB, free: 116.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004745/0.6778, allocations: 3.089 MB / 462.4 MB, free: 115.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005543/0.6783, allocations: 1.294 MB / 463.7 MB, free: 114.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001774/0.6801, allocations: 0.5865 MB / 464.3 MB, free: 114.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/0.6804, allocations: 130.1 kB / 464.4 MB, free: 114.6 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.6804, allocations: 0 / 464.4 MB, free: 114.6 MB / 382.1 MB Notification: Performance of Templates: time 0.05352/0.734, allocations: 43.83 MB / 0.4963 GB, free: 73.81 MB / 382.1 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)