Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001096/0.001096, allocations: 106.2 kB / 18.4 MB, free: 4.648 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.001361/0.001361, allocations: 181.5 kB / 19.34 MB, free: 3.727 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.281/1.281, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.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.00134/0.00134, allocations: 55.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07215/0.0735, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1793/0.2529, allocations: 28.68 MB / 404.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0185/0.2714, allocations: 15.02 MB / 419.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.2732, allocations: 43.56 kB / 419.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.2747, allocations: 0.5866 MB / 420.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005554/0.2803, allocations: 2.33 MB / 422.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008803/0.2891, allocations: 3.73 MB / 426.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005137/0.2942, allocations: 4.146 MB / 430.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001478/0.2957, allocations: 1.168 MB / 431.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002294/0.298, allocations: 1.561 MB / 433.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002087/0.3001, allocations: 1.662 MB / 434.8 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002813/0.3004, allocations: 160 kB / 434.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004672/0.3051, allocations: 2.41 MB / 437.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005808/0.3057, allocations: 0.6233 MB / 437.9 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000878/0.3066, allocations: 0.8672 MB / 438.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004954/0.3115, allocations: 3.742 MB / 442.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3116, allocations: 3.984 kB / 442.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3116, allocations: 4 kB / 442.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.3116, allocations: 3.938 kB / 442.6 MB, free: 12.82 MB / 366.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.004575/0.3162, allocations: 2.258 MB / 444.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3162, allocations: 11.89 kB / 444.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005236/0.3168, allocations: 183 kB / 445 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.3183, allocations: 1.082 MB / 446.1 MB, free: 9.184 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.3185, allocations: 175 kB / 446.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.3187, allocations: 95.97 kB / 446.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002641/0.3213, allocations: 1.757 MB / 448.1 MB, free: 7.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.3214, allocations: 3.953 kB / 448.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.3215, allocations: 47.95 kB / 448.2 MB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/0.3216, allocations: 109.9 kB / 448.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002796/0.3244, allocations: 1.788 MB / 450.1 MB, free: 5.137 MB / 366.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.01037/0.3348, allocations: 6.702 MB / 456.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.3366, allocations: 1.245 MB / 458 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.3377, allocations: 0.7612 MB / 458.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005175/0.3429, allocations: 4.279 MB / 463 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.343, allocations: 47.56 kB / 463.1 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005931/0.3436, allocations: 175.1 kB / 463.3 MB, free: 7.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 2.375e-06/0.3436, allocations: 3.938 kB / 463.3 MB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.018/0.3616, allocations: 5.722 MB / 469 MB, free: 1.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.3617, allocations: 141.5 kB / 469.1 MB, free: 1.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001524/0.3632, allocations: 1.25 MB / 470.4 MB, free: 15.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3633, allocations: 49.7 kB / 470.4 MB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004158/0.3638, allocations: 0.6221 MB / 471 MB, free: 15.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.3641, allocations: 412.5 kB / 471.5 MB, free: 14.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000477/0.3645, allocations: 291.4 kB / 471.7 MB, free: 14.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.284e-05/0.3646, allocations: 305.1 kB / 472 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.3658, allocations: 0.7153 MB / 472.7 MB, free: 13.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.3672, allocations: 1.068 MB / 473.8 MB, free: 12.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002512/0.3698, allocations: 1.747 MB / 475.6 MB, free: 10.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.3698, allocations: 4 kB / 475.6 MB, free: 10.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003778/0.3736, allocations: 2.293 MB / 477.9 MB, free: 8.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3736, allocations: 8 kB / 477.9 MB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.3736, allocations: 8 kB / 477.9 MB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007287/0.3809, allocations: 1.285 MB / 479.2 MB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.3821, allocations: 300.5 kB / 479.5 MB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.3844, allocations: 1.603 MB / 481.1 MB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.3855, allocations: 59.95 kB / 481.1 MB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.3857, allocations: 71.97 kB / 481.2 MB, free: 4.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001507/0.3872, allocations: 0.98 MB / 482.2 MB, free: 3.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001335/0.3885, allocations: 1.06 MB / 483.2 MB, free: 2.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002345/0.3909, allocations: 1.726 MB / 485 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.282e-06/0.3909, allocations: 8 kB / 485 MB, free: 0.7266 MB / 398.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003596/0.3945, allocations: 2.196 MB / 487.2 MB, free: 14.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3945, allocations: 11.28 kB / 487.2 MB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.3945, allocations: 12 kB / 487.2 MB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006232/0.4008, allocations: 1.101 MB / 488.3 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.402, allocations: 308.4 kB / 488.6 MB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/0.4039, allocations: 1.45 MB / 490 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.4051, allocations: 59.91 kB / 490.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.4052, allocations: 73.53 kB / 490.2 MB, free: 11.48 MB / 414.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.0003853/0.4056, allocations: 272.7 kB / 490.4 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/0.406, allocations: 159 kB / 490.6 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004069/0.41, allocations: 2.089 MB / 492.7 MB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.4101, allocations: 7.922 kB / 492.7 MB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4101, allocations: 0 / 492.7 MB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006404/0.4107, allocations: 403.8 kB / 493.1 MB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.411, allocations: 24 kB / 493.1 MB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009695/0.4119, allocations: 59.95 kB / 493.2 MB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.4122, allocations: 93.17 kB / 493.2 MB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004472/0.4167, allocations: 2.055 MB / 495.3 MB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003686/0.4204, allocations: 2.529 MB / 497.8 MB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001043/0.4214, allocations: 0.7168 MB / 498.5 MB, free: 3.039 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001143/0.4226, allocations: 0.8441 MB / 499.4 MB, free: 2.191 MB / 414.1 MB Notification: Performance of Backend: time 4.01e-07/0.4226, allocations: 0 / 499.4 MB, free: 2.191 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007856/0.4304, allocations: 3.138 MB / 0.4908 GB, free: 15.05 MB / 430.1 MB Notification: Performance of SimCode: time 0.005915/0.4364, allocations: 3.776 MB / 0.4944 GB, free: 11.21 MB / 430.1 MB Notification: Performance of Templates: time 0.07189/0.5083, allocations: 48.5 MB / 0.5418 GB, free: 10.62 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)