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.0007393/0.0007393, allocations: 97.22 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008883/0.0008883, allocations: 202.7 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.8 MB / 246.8 MB, free: 9.668 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002407, allocations: 8 kB / 307.7 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1027, allocations: 51.52 MB / 359.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1926/0.2953, allocations: 29.69 MB / 388.9 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01913/0.3145, allocations: 15.52 MB / 404.5 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001543/0.3161, allocations: 62.94 kB / 404.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001341/0.3174, allocations: 0.5127 MB / 405 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005188/0.3226, allocations: 2.175 MB / 407.2 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009124/0.3318, allocations: 3.14 MB / 410.4 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006717/0.3385, allocations: 6.181 MB / 416.5 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.34, allocations: 1.024 MB / 417.6 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002269/0.3422, allocations: 1.339 MB / 418.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002138/0.3444, allocations: 1.651 MB / 420.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.3446, allocations: 88 kB / 420.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004866/0.3495, allocations: 2.383 MB / 423 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006014/0.3501, allocations: 0.5374 MB / 423.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009226/0.351, allocations: 0.8181 MB / 424.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005018/0.3561, allocations: 3.627 MB / 428 MB, free: 6.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3561, allocations: 0 / 428 MB, free: 6.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3561, allocations: 4 kB / 428 MB, free: 6.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.3561, allocations: 0 / 428 MB, free: 6.773 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.004258/0.3604, allocations: 1.889 MB / 429.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3604, allocations: 15.97 kB / 429.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004511/0.3609, allocations: 174.1 kB / 430.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.3623, allocations: 1.003 MB / 431.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.3624, allocations: 175.1 kB / 431.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001908/0.3626, allocations: 107.8 kB / 431.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002588/0.3652, allocations: 1.753 MB / 433.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.3653, allocations: 4 kB / 433.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.3654, allocations: 47.95 kB / 433.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001409/0.3656, allocations: 109.9 kB / 433.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00272/0.3683, allocations: 1.784 MB / 435.1 MB, free: 15.54 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.01051/0.3788, allocations: 6.735 MB / 441.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.3806, allocations: 1.238 MB / 443 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.3817, allocations: 0.7612 MB / 443.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005469/0.3872, allocations: 4.291 MB / 448.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3872, allocations: 43.56 kB / 448.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000745/0.388, allocations: 218.5 kB / 448.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.915e-06/0.388, allocations: 0 / 448.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01829/0.4063, allocations: 5.747 MB / 454.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.4064, allocations: 145.5 kB / 454.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.408, allocations: 1.257 MB / 455.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.4082, allocations: 45.7 kB / 455.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004918/0.4087, allocations: 0.613 MB / 456.1 MB, free: 9.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/0.4091, allocations: 386.4 kB / 456.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.4093, allocations: 125.6 kB / 456.6 MB, free: 9.062 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4094, allocations: 301.1 kB / 456.9 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.4106, allocations: 0.7066 MB / 457.6 MB, free: 8.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.412, allocations: 1.076 MB / 458.7 MB, free: 6.844 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002472/0.4145, allocations: 1.747 MB / 460.5 MB, free: 4.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.4145, allocations: 4 kB / 460.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003722/0.4182, allocations: 2.284 MB / 462.8 MB, free: 2.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002272/0.4185, allocations: 379.2 kB / 463.1 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.4185, allocations: 8 kB / 463.1 MB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007085/0.4256, allocations: 1.286 MB / 464.4 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.4269, allocations: 303.5 kB / 464.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.4292, allocations: 1.595 MB / 466.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.4305, allocations: 95.72 kB / 466.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.4307, allocations: 71.97 kB / 466.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.4307, allocations: 6.344 kB / 466.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003322/0.4341, allocations: 2.03 MB / 468.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.4341, allocations: 8.688 kB / 468.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006321/0.4404, allocations: 1.129 MB / 469.6 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.4416, allocations: 303.5 kB / 469.9 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/0.4437, allocations: 1.481 MB / 471.4 MB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.4451, allocations: 79.89 kB / 471.5 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.4452, allocations: 71.97 kB / 471.6 MB, free: 9.645 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.0008929/0.4461, allocations: 468.5 kB / 472 MB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.4464, allocations: 146.2 kB / 472.2 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.4504, allocations: 2.101 MB / 474.3 MB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4504, allocations: 12 kB / 474.3 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4504, allocations: 0 / 474.3 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4504, allocations: 15.91 kB / 474.3 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005391/0.4558, allocations: 3.571 MB / 477.9 MB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.4558, allocations: 3.938 kB / 477.9 MB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008939/0.4567, allocations: 195.8 kB / 478.1 MB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003737/0.4605, allocations: 0.9999 MB / 479.1 MB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.605e-05/0.4606, allocations: 27.98 kB / 479.1 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.4627, allocations: 1.615 MB / 480.7 MB, free: 404 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4627, allocations: 0 / 480.7 MB, free: 404 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004186/0.4669, allocations: 2.907 MB / 483.6 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006697/0.4676, allocations: 407.1 kB / 484 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.4678, allocations: 20 kB / 484 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009827/0.4688, allocations: 91.78 kB / 484.1 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.469, allocations: 97.17 kB / 484.2 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.4691, allocations: 47.97 kB / 484.3 MB, free: 12.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001148/0.4703, allocations: 0.848 MB / 485.1 MB, free: 11.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4703, allocations: 0 / 485.1 MB, free: 11.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002934/0.4732, allocations: 1.163 MB / 486.3 MB, free: 10.78 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.001719/0.475, allocations: 0.8582 MB / 487.1 MB, free: 9.914 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005717/0.4807, allocations: 2.82 MB / 490 MB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4807, allocations: 192 / 490 MB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001723/0.4824, allocations: 0.8751 MB / 490.8 MB, free: 6.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.4853, allocations: 0.6274 MB / 491.5 MB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005596/0.4909, allocations: 3.712 MB / 495.2 MB, free: 1.879 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007733/0.4917, allocations: 1.296 MB / 496.5 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001824/0.4935, allocations: 0.59 MB / 497.1 MB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00034/0.4939, allocations: 131.3 kB / 497.2 MB, free: 15.83 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4939, allocations: 0 / 497.2 MB, free: 15.83 MB / 414.1 MB Notification: Performance of Templates: time 0.06364/0.5575, allocations: 41.38 MB / 0.5259 GB, free: 6.664 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