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.001347/0.001347, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.98 kB / 306.3 MB, free: 1.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09177/0.09302, allocations: 50.54 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.198/0.291, allocations: 30.44 MB / 387.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02038/0.3115, allocations: 15.76 MB / 403 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002368/0.3139, allocations: 64.25 kB / 403 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.3156, allocations: 0.5206 MB / 403.6 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006452/0.3221, allocations: 2.164 MB / 405.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009104/0.3312, allocations: 3.16 MB / 408.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006844/0.338, allocations: 6.174 MB / 415.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001633/0.3397, allocations: 1.023 MB / 416.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002719/0.3424, allocations: 1.335 MB / 417.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00236/0.3448, allocations: 1.674 MB / 419.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002649/0.3451, allocations: 92 kB / 419.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005127/0.3502, allocations: 2.379 MB / 421.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007088/0.3509, allocations: 0.5491 MB / 422.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001083/0.352, allocations: 0.8047 MB / 422.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005794/0.3578, allocations: 3.678 MB / 426.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3578, allocations: 3.938 kB / 426.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.3579, allocations: 0 / 426.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.3579, allocations: 7.938 kB / 426.6 MB, free: 6.312 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.005061/0.3629, allocations: 2.2 MB / 428.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.363, allocations: 12.03 kB / 428.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005601/0.3636, allocations: 174.1 kB / 429 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.3651, allocations: 0.9989 MB / 430 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.3653, allocations: 171.9 kB / 430.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/0.3654, allocations: 107.8 kB / 430.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/0.3682, allocations: 1.757 MB / 432 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.3682, allocations: 4 kB / 432 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.3683, allocations: 39.97 kB / 432.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/0.3685, allocations: 109.9 kB / 432.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/0.3713, allocations: 1.788 MB / 434 MB, free: 14.78 MB / 350.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.01127/0.3826, allocations: 6.697 MB / 440.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001949/0.3845, allocations: 1.247 MB / 441.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.3856, allocations: 0.7717 MB / 442.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0055/0.3911, allocations: 4.267 MB / 446.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.3912, allocations: 47.55 kB / 447 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007488/0.3919, allocations: 206.7 kB / 447.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.807e-06/0.392, allocations: 0 / 447.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01898/0.4109, allocations: 5.682 MB / 452.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.942e-05/0.4111, allocations: 141.5 kB / 453 MB, free: 10.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/0.4128, allocations: 1.261 MB / 454.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.413, allocations: 49.7 kB / 454.3 MB, free: 9.547 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004715/0.4135, allocations: 0.6091 MB / 454.9 MB, free: 8.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003878/0.4139, allocations: 390.3 kB / 455.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005152/0.4144, allocations: 291.4 kB / 455.6 MB, free: 8.254 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4145, allocations: 305.1 kB / 455.9 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.4157, allocations: 0.7153 MB / 456.6 MB, free: 7.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.4173, allocations: 1.068 MB / 457.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002629/0.4199, allocations: 1.751 MB / 459.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.4199, allocations: 0 / 459.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003908/0.4238, allocations: 2.284 MB / 461.7 MB, free: 1.848 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.4239, allocations: 11.94 kB / 461.7 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.4239, allocations: 8 kB / 461.7 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007494/0.4314, allocations: 1.29 MB / 463 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.4328, allocations: 299.5 kB / 463.3 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/0.4353, allocations: 1.595 MB / 464.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.4367, allocations: 83.8 kB / 465 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00022/0.437, allocations: 75.95 kB / 465.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001764/0.4387, allocations: 0.9801 MB / 466 MB, free: 13.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001438/0.4402, allocations: 1.055 MB / 467.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002518/0.4427, allocations: 1.722 MB / 468.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.999e-06/0.4427, allocations: 7.938 kB / 468.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004066/0.4468, allocations: 2.191 MB / 471 MB, free: 8.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.4469, allocations: 12.16 kB / 471 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.4469, allocations: 12 kB / 471 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006585/0.4535, allocations: 1.101 MB / 472.1 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.4548, allocations: 307.6 kB / 472.4 MB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.4568, allocations: 1.457 MB / 473.9 MB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.4582, allocations: 83.78 kB / 474 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/0.4584, allocations: 71.97 kB / 474.1 MB, free: 5.133 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.000447/0.4589, allocations: 267.8 kB / 474.3 MB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/0.4593, allocations: 150.2 kB / 474.5 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.4636, allocations: 2.085 MB / 476.5 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.4637, allocations: 12 kB / 476.6 MB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4637, allocations: 3.938 kB / 476.6 MB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.4637, allocations: 7.969 kB / 476.6 MB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005719/0.4694, allocations: 3.583 MB / 480.2 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.4694, allocations: 0 / 480.2 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.4705, allocations: 195.7 kB / 480.3 MB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003864/0.4744, allocations: 0.9924 MB / 481.3 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.4745, allocations: 31.98 kB / 481.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002893/0.4774, allocations: 1.607 MB / 483 MB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4774, allocations: 4 kB / 483 MB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005467/0.4829, allocations: 2.923 MB / 485.9 MB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008714/0.4838, allocations: 391.1 kB / 486.3 MB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003804/0.4842, allocations: 24 kB / 486.3 MB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.4855, allocations: 71.94 kB / 486.4 MB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002547/0.4857, allocations: 101.1 kB / 486.5 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.4859, allocations: 48.09 kB / 486.5 MB, free: 8.512 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.4872, allocations: 0.848 MB / 487.4 MB, free: 7.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4872, allocations: 4 kB / 487.4 MB, free: 7.656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003132/0.4903, allocations: 1.163 MB / 488.5 MB, free: 6.492 MB / 398.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.002156/0.4925, allocations: 0.8458 MB / 489.4 MB, free: 5.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006677/0.4992, allocations: 2.84 MB / 492.2 MB, free: 2.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.4992, allocations: 4 kB / 492.2 MB, free: 2.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.5012, allocations: 0.8789 MB / 493.1 MB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003999/0.5052, allocations: 0.6252 MB / 493.7 MB, free: 1.309 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006603/0.5119, allocations: 3.561 MB / 497.3 MB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001179/0.5131, allocations: 1.296 MB / 498.6 MB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002203/0.5153, allocations: 0.59 MB / 499.2 MB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004489/0.5157, allocations: 127.4 kB / 499.3 MB, free: 11.68 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5158, allocations: 4 kB / 499.3 MB, free: 11.68 MB / 414.1 MB Notification: Performance of Templates: time 0.06406/0.5798, allocations: 41.83 MB / 0.5285 GB, free: 2.059 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