Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001045, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001074/0.001074, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004868/0.0004869, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2885, allocations: 47.59 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01714/0.3057, allocations: 15.25 MB / 341.7 MB, free: 4.207 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0113/0.317, allocations: 6.559 MB / 348.3 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.3187, allocations: 31.75 kB / 348.3 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.3202, allocations: 282.2 kB / 348.6 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004349/0.3246, allocations: 1.018 MB / 349.6 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005443/0.3301, allocations: 1.376 MB / 351 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004599/0.3347, allocations: 2.615 MB / 353.6 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.3363, allocations: 0.4913 MB / 354.1 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002214/0.3386, allocations: 0.7161 MB / 354.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00181/0.3404, allocations: 0.763 MB / 355.6 MB, free: 6.316 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003794/0.3408, allocations: 44 kB / 355.6 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003173/0.344, allocations: 1.041 MB / 356.7 MB, free: 5.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007051/0.3447, allocations: 279.1 kB / 356.9 MB, free: 4.957 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000605/0.3453, allocations: 177.3 kB / 357.1 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002833/0.3481, allocations: 1.274 MB / 358.4 MB, free: 3.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3482, allocations: 0 / 358.4 MB, free: 3.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.3482, allocations: 4 kB / 358.4 MB, free: 3.496 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.491e-05/0.3482, allocations: 3.938 kB / 358.4 MB, free: 3.492 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003903/0.3521, allocations: 1.11 MB / 359.5 MB, free: 2.328 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/0.3522, allocations: 8.031 kB / 359.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007078/0.3529, allocations: 107 kB / 359.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.3543, allocations: 0.5701 MB / 360.2 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.3545, allocations: 104.7 kB / 360.3 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.3547, allocations: 51.98 kB / 360.3 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.3566, allocations: 0.8885 MB / 361.2 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.326e-05/0.3566, allocations: 7.938 kB / 361.2 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.191e-05/0.3567, allocations: 23.98 kB / 361.2 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.123e-05/0.3568, allocations: 57.27 kB / 361.3 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.3585, allocations: 0.8366 MB / 362.1 MB, free: 15.59 MB / 302.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.005964/0.3644, allocations: 3.466 MB / 365.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3655, allocations: 0.6646 MB / 366.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.3661, allocations: 362.3 kB / 366.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002851/0.3689, allocations: 2.055 MB / 368.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.369, allocations: 47.06 kB / 368.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.284e-06/0.369, allocations: 0 / 368.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006855/0.3759, allocations: 2.855 MB / 371.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.204e-05/0.3759, allocations: 89.67 kB / 371.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000944/0.3769, allocations: 0.672 MB / 372.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.679e-05/0.377, allocations: 41.7 kB / 372.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004102/0.3774, allocations: 328.4 kB / 372.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.3778, allocations: 232.7 kB / 372.9 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.202e-05/0.3778, allocations: 16 kB / 372.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.378, allocations: 382.8 kB / 373.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006382/0.3787, allocations: 353.8 kB / 373.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007451/0.3794, allocations: 0.523 MB / 374.2 MB, free: 2.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006988/0.3802, allocations: 407 kB / 374.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3802, allocations: 0 / 374.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002184/0.3824, allocations: 1.149 MB / 375.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.3826, allocations: 215.2 kB / 375.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.3826, allocations: 4 kB / 376 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001356/0.384, allocations: 440.5 kB / 376.4 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007106/0.3847, allocations: 163.7 kB / 376.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.3861, allocations: 1.025 MB / 377.6 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006874/0.3868, allocations: 55.66 kB / 377.6 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-05/0.3869, allocations: 31.98 kB / 377.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.3869, allocations: 4 kB / 377.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001801/0.3887, allocations: 0.9962 MB / 378.7 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3888, allocations: 8 kB / 378.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006775/0.3895, allocations: 308.8 kB / 379 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006489/0.3901, allocations: 167.7 kB / 379.1 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.3914, allocations: 0.9035 MB / 380 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000619/0.392, allocations: 47.92 kB / 380.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.395e-05/0.3921, allocations: 31.98 kB / 380.1 MB, free: 12.92 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004822/0.3926, allocations: 332.8 kB / 380.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.3928, allocations: 79.06 kB / 380.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/0.3949, allocations: 1.099 MB / 381.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.3949, allocations: 8 kB / 381.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3949, allocations: 0 / 381.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.395, allocations: 3.984 kB / 381.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/0.3984, allocations: 1.998 MB / 383.6 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3984, allocations: 4 kB / 383.6 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.399, allocations: 115.9 kB / 383.7 MB, free: 9.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.4003, allocations: 452.5 kB / 384.2 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.638e-05/0.4003, allocations: 15.94 kB / 384.2 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.4016, allocations: 1.04 MB / 385.2 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.4016, allocations: 0 / 385.2 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002611/0.4042, allocations: 1.58 MB / 386.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005092/0.4047, allocations: 252 kB / 387.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.4049, allocations: 15.95 kB / 387.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/0.4055, allocations: 51.88 kB / 387.1 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.4057, allocations: 56.56 kB / 387.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-05/0.4058, allocations: 27.98 kB / 387.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006529/0.4064, allocations: 471 kB / 387.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4064, allocations: 4 kB / 387.7 MB, free: 5.199 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001933/0.4084, allocations: 0.5818 MB / 388.3 MB, free: 4.617 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001351/0.4097, allocations: 482.7 kB / 388.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003119/0.4129, allocations: 1.385 MB / 390.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4129, allocations: 0 / 390.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009919/0.4139, allocations: 463.5 kB / 390.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/0.4157, allocations: 359.5 kB / 390.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00392/0.4197, allocations: 2.028 MB / 392.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006382/0.4203, allocations: 0.9952 MB / 393.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001345/0.4217, allocations: 302.6 kB / 394.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/0.4219, allocations: 79.34 kB / 394.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of SimCode: time 2.134e-06/0.4219, allocations: 0 / 394.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of Templates: time 0.03833/0.4603, allocations: 21.17 MB / 415.5 MB, free: 9.281 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)