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.001322/0.001322, allocations: 108 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001559/0.001559, allocations: 209.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 59.06 kB / 306.4 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1085, allocations: 50.54 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1953/0.3038, allocations: 16.74 MB / 373.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009523/0.3134, allocations: 7.075 MB / 380.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.3145, allocations: 32.25 kB / 380.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.3157, allocations: 292.8 kB / 381.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003245/0.3189, allocations: 1.007 MB / 382.1 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005901/0.3248, allocations: 1.639 MB / 383.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003058/0.3279, allocations: 2.161 MB / 385.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.3293, allocations: 0.6078 MB / 386.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001952/0.3312, allocations: 0.8022 MB / 387.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.3333, allocations: 0.8335 MB / 388.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004085/0.3337, allocations: 84.03 kB / 388.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003499/0.3372, allocations: 1.239 MB / 389.5 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005459/0.3378, allocations: 310.9 kB / 389.8 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001143/0.3389, allocations: 467.9 kB / 390.2 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004114/0.343, allocations: 1.842 MB / 392.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3431, allocations: 0 / 392.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3431, allocations: 1.656 kB / 392.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.3431, allocations: 0 / 392.1 MB, free: 4.441 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.00281/0.3459, allocations: 1.256 MB / 393.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.346, allocations: 12.97 kB / 393.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003404/0.3463, allocations: 98.27 kB / 393.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007852/0.3471, allocations: 0.6099 MB / 394.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.523e-05/0.3472, allocations: 106.4 kB / 394.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3473, allocations: 55.67 kB / 394.2 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.3488, allocations: 0.895 MB / 395.1 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.3488, allocations: 1.031 kB / 395.1 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.672e-05/0.3489, allocations: 26.55 kB / 395.1 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.91e-05/0.349, allocations: 52.36 kB / 395.2 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.3504, allocations: 0.8453 MB / 396 MB, free: 1.809 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.005302/0.3557, allocations: 3.463 MB / 399.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.357, allocations: 0.6618 MB / 400.2 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000554/0.3576, allocations: 369.7 kB / 400.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003043/0.3607, allocations: 2.03 MB / 402.5 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001342/0.3608, allocations: 44.59 kB / 402.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.763e-06/0.3608, allocations: 0 / 402.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006984/0.3678, allocations: 2.828 MB / 405.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/0.3679, allocations: 88.75 kB / 405.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008547/0.3687, allocations: 0.6856 MB / 406.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.43e-05/0.3688, allocations: 41.64 kB / 406.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.3692, allocations: 336.5 kB / 406.6 MB, free: 9.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.3694, allocations: 224.7 kB / 406.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002623/0.3697, allocations: 154.5 kB / 406.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.3699, allocations: 382.8 kB / 407.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006028/0.3705, allocations: 376.6 kB / 407.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007132/0.3712, allocations: 0.5152 MB / 408.2 MB, free: 8.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.3725, allocations: 0.8638 MB / 409 MB, free: 7.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3726, allocations: 4 kB / 409.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002207/0.3748, allocations: 1.157 MB / 410.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3748, allocations: 8 kB / 410.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3748, allocations: 4.562 kB / 410.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.3761, allocations: 448.4 kB / 410.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006922/0.3768, allocations: 163.7 kB / 410.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.378, allocations: 1.024 MB / 411.8 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006968/0.3787, allocations: 47.95 kB / 411.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.691e-05/0.3788, allocations: 31.98 kB / 411.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008343/0.3797, allocations: 0.5369 MB / 412.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007692/0.3805, allocations: 0.5137 MB / 413 MB, free: 3.227 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001278/0.3817, allocations: 0.849 MB / 413.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.429e-06/0.3818, allocations: 3.938 kB / 413.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001894/0.3837, allocations: 1.095 MB / 414.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3837, allocations: 8 kB / 414.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3837, allocations: 4 kB / 414.9 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007305/0.3844, allocations: 308.9 kB / 415.2 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006678/0.3851, allocations: 171.7 kB / 415.4 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.3862, allocations: 0.9073 MB / 416.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006788/0.3869, allocations: 35.98 kB / 416.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-05/0.387, allocations: 35.98 kB / 416.4 MB, free: 15.72 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.0003297/0.3873, allocations: 233.1 kB / 416.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.3875, allocations: 79.05 kB / 416.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002069/0.3896, allocations: 1.094 MB / 417.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.3896, allocations: 8 kB / 417.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3896, allocations: 1.5 kB / 417.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.3896, allocations: 7.984 kB / 417.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003173/0.3928, allocations: 2.009 MB / 419.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3928, allocations: 0 / 419.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006011/0.3934, allocations: 123.8 kB / 419.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.3946, allocations: 436.5 kB / 420.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.3947, allocations: 23.98 kB / 420.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.3958, allocations: 1.021 MB / 421.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.3958, allocations: 3.938 kB / 421.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.3983, allocations: 1.599 MB / 423 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003995/0.3987, allocations: 240.1 kB / 423.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.3988, allocations: 24 kB / 423.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000619/0.3994, allocations: 39.91 kB / 423.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.3996, allocations: 56.52 kB / 423.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.372e-05/0.3997, allocations: 35.97 kB / 423.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005729/0.4003, allocations: 475 kB / 423.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4003, allocations: 4 kB / 423.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001619/0.4019, allocations: 0.5818 MB / 424.4 MB, free: 7.516 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.001013/0.4029, allocations: 494.4 kB / 424.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003302/0.4062, allocations: 1.559 MB / 426.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4062, allocations: 1.75 kB / 426.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.4073, allocations: 471.8 kB / 426.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.409, allocations: 388.6 kB / 427.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003556/0.4126, allocations: 1.998 MB / 429.3 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005873/0.4132, allocations: 0.9988 MB / 430.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001054/0.4143, allocations: 306.6 kB / 430.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.4145, allocations: 79.41 kB / 430.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4145, allocations: 0 / 430.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of Templates: time 0.03546/0.4499, allocations: 22.87 MB / 453.6 MB, free: 10.47 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches