Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008126/0.0008127, allocations: 99.42 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008613/0.0008613, allocations: 192.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 246.4 MB, free: 11.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002311, allocations: 8 kB / 307.1 MB, free: 1.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.09739, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1999/0.2973, allocations: 28.05 MB / 386.7 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.018/0.3153, allocations: 14.33 MB / 401 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001869/0.3172, allocations: 59.81 kB / 401.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.3186, allocations: 0.5013 MB / 401.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005373/0.324, allocations: 2.173 MB / 403.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009499/0.3335, allocations: 2.899 MB / 406.6 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006779/0.3403, allocations: 5.059 MB / 411.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.342, allocations: 0.9866 MB / 412.7 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002794/0.3448, allocations: 1.416 MB / 414.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003113/0.3479, allocations: 1.599 MB / 415.7 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003183/0.3483, allocations: 88 kB / 415.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00525/0.3535, allocations: 2.11 MB / 417.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007804/0.3543, allocations: 0.5335 MB / 418.4 MB, free: 236 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006728/0.355, allocations: 317.1 kB / 418.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004324/0.3593, allocations: 2.607 MB / 421.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.577e-06/0.3594, allocations: 4 kB / 421.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3594, allocations: 3.938 kB / 421.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.3594, allocations: 0 / 421.3 MB, free: 13.29 MB / 334.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.004564/0.364, allocations: 1.908 MB / 423.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.364, allocations: 11.97 kB / 423.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004722/0.3645, allocations: 182.1 kB / 423.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.366, allocations: 0.9568 MB / 424.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.3662, allocations: 183 kB / 424.6 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/0.3664, allocations: 95.97 kB / 424.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/0.3692, allocations: 1.753 MB / 426.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.3692, allocations: 0 / 426.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.3694, allocations: 47.91 kB / 426.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.3695, allocations: 117.8 kB / 426.6 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00271/0.3722, allocations: 1.78 MB / 428.4 MB, free: 6.086 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.01037/0.3826, allocations: 6.724 MB / 435.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.3843, allocations: 1.23 MB / 436.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.3854, allocations: 0.765 MB / 437.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005231/0.3907, allocations: 4.294 MB / 441.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.3907, allocations: 43.56 kB / 441.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007213/0.3914, allocations: 206.7 kB / 441.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.936e-06/0.3914, allocations: 0 / 441.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.0167/0.4082, allocations: 5.718 MB / 447.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.4083, allocations: 145.5 kB / 447.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.4098, allocations: 1.242 MB / 448.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.4099, allocations: 49.7 kB / 448.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004135/0.4103, allocations: 0.6091 MB / 449.4 MB, free: 192 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/0.4107, allocations: 398.5 kB / 449.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.4108, allocations: 28 kB / 449.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4109, allocations: 357.9 kB / 450.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.412, allocations: 0.6949 MB / 450.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.4133, allocations: 1.044 MB / 451.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.4146, allocations: 0.822 MB / 452.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.4146, allocations: 4 kB / 452.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003626/0.4182, allocations: 2.238 MB / 455 MB, free: 10.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000268/0.4185, allocations: 375.1 kB / 455.3 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.4185, allocations: 8 kB / 455.3 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006578/0.4251, allocations: 1.271 MB / 456.6 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/0.4266, allocations: 299.5 kB / 456.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/0.4291, allocations: 1.606 MB / 458.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.4306, allocations: 91.73 kB / 458.6 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002707/0.4309, allocations: 79.95 kB / 458.7 MB, free: 6.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.4309, allocations: 4 kB / 458.7 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003883/0.4348, allocations: 2.015 MB / 460.7 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.908e-05/0.4349, allocations: 12 kB / 460.7 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005824/0.4407, allocations: 1.112 MB / 461.8 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.442, allocations: 311.5 kB / 462.1 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/0.4441, allocations: 1.458 MB / 463.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.4455, allocations: 83.8 kB / 463.6 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.4457, allocations: 67.97 kB / 463.7 MB, free: 1.488 MB / 366.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 (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 (156): * Single equations (assignments): 155 * 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.0008065/0.4465, allocations: 456.7 kB / 464.2 MB, free: 1.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/0.4468, allocations: 154.2 kB / 464.3 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004072/0.4509, allocations: 2.086 MB / 466.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.4509, allocations: 12 kB / 466.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4509, allocations: 0 / 466.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.451, allocations: 7.922 kB / 466.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005383/0.4564, allocations: 3.575 MB / 470 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4564, allocations: 3.953 kB / 470 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009075/0.4573, allocations: 191.8 kB / 470.2 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00339/0.4607, allocations: 0.9961 MB / 471.2 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.4608, allocations: 31.98 kB / 471.2 MB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/0.4628, allocations: 1.622 MB / 472.8 MB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4629, allocations: 0 / 472.8 MB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004179/0.467, allocations: 2.899 MB / 475.7 MB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006874/0.4677, allocations: 407.1 kB / 476.1 MB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/0.468, allocations: 24.12 kB / 476.2 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009902/0.469, allocations: 91.78 kB / 476.2 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/0.4692, allocations: 97.11 kB / 476.3 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.4693, allocations: 55.95 kB / 476.4 MB, free: 4.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001098/0.4704, allocations: 0.8324 MB / 477.2 MB, free: 3.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4705, allocations: 4 kB / 477.2 MB, free: 3.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002792/0.4733, allocations: 1.163 MB / 478.4 MB, free: 2.656 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 (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.002015/0.4753, allocations: 0.8339 MB / 479.2 MB, free: 1.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006156/0.4814, allocations: 2.781 MB / 482 MB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.4815, allocations: 4 kB / 482 MB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.4833, allocations: 0.8634 MB / 482.9 MB, free: 14.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/0.4863, allocations: 0.6243 MB / 483.5 MB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006195/0.4925, allocations: 3.563 MB / 487.1 MB, free: 9.973 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.4936, allocations: 1.3 MB / 488.4 MB, free: 8.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002144/0.4957, allocations: 0.5784 MB / 488.9 MB, free: 8.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/0.4961, allocations: 127.4 kB / 489.1 MB, free: 7.938 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4961, allocations: 0 / 489.1 MB, free: 7.938 MB / 398.1 MB Notification: Performance of Templates: time 0.06162/0.5577, allocations: 40.47 MB / 0.5171 GB, free: 15.69 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches