Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 69.2 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1125, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1848/0.2974, allocations: 15.95 MB / 374.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009223/0.3067, allocations: 6.922 MB / 381.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009481/0.3076, allocations: 22.09 kB / 381.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.3087, allocations: 326.9 kB / 382.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003417/0.3122, allocations: 1.082 MB / 383.2 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005163/0.3174, allocations: 1.8 MB / 385 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003147/0.3205, allocations: 2.156 MB / 387.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.3216, allocations: 0.5997 MB / 387.7 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.3232, allocations: 0.8029 MB / 388.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/0.3245, allocations: 0.7903 MB / 389.3 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.3247, allocations: 81.06 kB / 389.4 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002664/0.3274, allocations: 1.247 MB / 390.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003717/0.3277, allocations: 312.7 kB / 391 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006389/0.3284, allocations: 460.2 kB / 391.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002881/0.3313, allocations: 1.856 MB / 393.3 MB, free: 4.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3313, allocations: 0 / 393.3 MB, free: 4.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3313, allocations: 0.9062 kB / 393.3 MB, free: 4.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.3313, allocations: 0 / 393.3 MB, free: 4.371 MB / 302.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.002419/0.3338, allocations: 1.263 MB / 394.5 MB, free: 3.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3338, allocations: 9.312 kB / 394.5 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003227/0.3341, allocations: 100.5 kB / 394.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009453/0.3351, allocations: 0.636 MB / 395.3 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.213e-05/0.3352, allocations: 107 kB / 395.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.3353, allocations: 51.55 kB / 395.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.3366, allocations: 0.9001 MB / 396.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.3366, allocations: 0 / 396.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.465e-05/0.3367, allocations: 27.36 kB / 396.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.099e-05/0.3368, allocations: 48.28 kB / 396.4 MB, free: 2.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.338, allocations: 0.8413 MB / 397.2 MB, free: 1.723 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.005266/0.3433, allocations: 3.458 MB / 400.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.3444, allocations: 0.6615 MB / 401.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005262/0.3449, allocations: 368.6 kB / 401.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002849/0.3478, allocations: 2.025 MB / 403.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.3478, allocations: 43.5 kB / 403.8 MB, free: 12.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.823e-06/0.3478, allocations: 4 kB / 403.8 MB, free: 12.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006749/0.3546, allocations: 2.837 MB / 406.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.3546, allocations: 85.67 kB / 406.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008084/0.3555, allocations: 0.676 MB / 407.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.3555, allocations: 41.69 kB / 407.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.3558, allocations: 336.4 kB / 407.8 MB, free: 9.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.356, allocations: 224.7 kB / 408 MB, free: 9.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002704/0.3562, allocations: 150.6 kB / 408.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3564, allocations: 394.7 kB / 408.5 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/0.3571, allocations: 376.6 kB / 408.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007839/0.3579, allocations: 0.5152 MB / 409.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.3592, allocations: 0.8608 MB / 410.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3592, allocations: 0 / 410.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002198/0.3615, allocations: 1.164 MB / 411.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3615, allocations: 8.562 kB / 411.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3615, allocations: 4 kB / 411.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.3629, allocations: 460.1 kB / 411.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006699/0.3636, allocations: 163.7 kB / 412 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.3648, allocations: 1.014 MB / 413.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006789/0.3655, allocations: 29.16 kB / 413.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.233e-05/0.3656, allocations: 39.98 kB / 413.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008429/0.3664, allocations: 0.5331 MB / 413.7 MB, free: 3.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007019/0.3671, allocations: 0.5117 MB / 414.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00122/0.3684, allocations: 0.8451 MB / 415 MB, free: 2.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.965e-06/0.3684, allocations: 0 / 415 MB, free: 2.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001878/0.3703, allocations: 1.102 MB / 416.1 MB, free: 1.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.3703, allocations: 8.547 kB / 416.1 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3703, allocations: 8 kB / 416.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006726/0.371, allocations: 308.7 kB / 416.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006516/0.3716, allocations: 171.7 kB / 416.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009511/0.3726, allocations: 0.9049 MB / 417.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.3732, allocations: 32.03 kB / 417.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.592e-05/0.3733, allocations: 39.98 kB / 417.6 MB, free: 15.57 MB / 334.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 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003154/0.3737, allocations: 233 kB / 417.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.3738, allocations: 83.06 kB / 417.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002056/0.3759, allocations: 1.093 MB / 419 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3759, allocations: 4 kB / 419 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3759, allocations: 4 kB / 419 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.376, allocations: 3.984 kB / 419 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003152/0.3791, allocations: 2 MB / 421 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.3791, allocations: 0 / 421 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005796/0.3797, allocations: 119.9 kB / 421.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/0.3809, allocations: 444.5 kB / 421.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/0.381, allocations: 15.98 kB / 421.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.3821, allocations: 1.027 MB / 422.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3822, allocations: 7.938 kB / 422.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.3845, allocations: 1.593 MB / 424.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.385, allocations: 244 kB / 424.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.3851, allocations: 19.94 kB / 424.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005686/0.3857, allocations: 31.97 kB / 424.5 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.3858, allocations: 60.52 kB / 424.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/0.3859, allocations: 27.98 kB / 424.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005766/0.3865, allocations: 479 kB / 425 MB, free: 7.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3865, allocations: 0 / 425 MB, free: 7.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001602/0.3881, allocations: 0.5896 MB / 425.6 MB, free: 7.371 MB / 334.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 (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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001015/0.3892, allocations: 494.4 kB / 426.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002842/0.392, allocations: 1.408 MB / 427.5 MB, free: 5.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.392, allocations: 0 / 427.5 MB, free: 5.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009549/0.393, allocations: 468.1 kB / 428 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.3945, allocations: 378.8 kB / 428.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003095/0.3977, allocations: 1.745 MB / 430.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000556/0.3982, allocations: 0.995 MB / 431.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008826/0.3991, allocations: 306.5 kB / 431.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.3993, allocations: 71.42 kB / 431.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3993, allocations: 4 kB / 431.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of Templates: time 0.03399/0.4333, allocations: 23.01 MB / 454.5 MB, free: 10.61 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches