Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 212.3 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 43.94 kB / 378.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2631, allocations: 53.36 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01928/0.2823, allocations: 16.21 MB / 447.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01113/0.2935, allocations: 6.963 MB / 454.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00081/0.2943, allocations: 31.69 kB / 454.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009901/0.2953, allocations: 341.9 kB / 455.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002877/0.2982, allocations: 1.112 MB / 456.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004463/0.3026, allocations: 1.822 MB / 458.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003161/0.3058, allocations: 2.231 MB / 460.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008658/0.3066, allocations: 0.5178 MB / 460.8 MB, free: 9.602 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001484/0.3081, allocations: 0.8372 MB / 461.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.3094, allocations: 0.8526 MB / 462.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.3096, allocations: 79.94 kB / 462.6 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002889/0.3125, allocations: 1.272 MB / 463.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003883/0.3129, allocations: 322.9 kB / 464.2 MB, free: 6.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000548/0.3134, allocations: 465.9 kB / 464.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002852/0.3163, allocations: 1.877 MB / 466.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3163, allocations: 0 / 466.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3163, allocations: 0 / 466.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.3163, allocations: 4 kB / 466.5 MB, free: 3.895 MB / 366.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.002941/0.3192, allocations: 1.212 MB / 467.7 MB, free: 2.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.3193, allocations: 8.031 kB / 467.7 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.3196, allocations: 104.4 kB / 467.8 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.3208, allocations: 0.5712 MB / 468.4 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.3209, allocations: 152.1 kB / 468.6 MB, free: 1.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.321, allocations: 59.97 kB / 468.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.3226, allocations: 0.8962 MB / 469.5 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.3226, allocations: 3.953 kB / 469.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.163e-05/0.3227, allocations: 23.98 kB / 469.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.361e-05/0.3228, allocations: 49.27 kB / 469.6 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.3243, allocations: 0.8483 MB / 470.4 MB, free: 15.86 MB / 382.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.006076/0.3304, allocations: 3.283 MB / 473.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.3315, allocations: 0.6302 MB / 474.4 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005784/0.3321, allocations: 342.2 kB / 474.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002842/0.3349, allocations: 1.329 MB / 476 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.335, allocations: 47 kB / 476.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.064e-06/0.335, allocations: 0 / 476.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.007368/0.3423, allocations: 2.69 MB / 478.8 MB, free: 7.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.3424, allocations: 85.77 kB / 478.8 MB, free: 7.215 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000985/0.3434, allocations: 0.6837 MB / 479.5 MB, free: 6.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-05/0.3435, allocations: 37.7 kB / 479.6 MB, free: 6.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.3438, allocations: 337 kB / 479.9 MB, free: 6.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.344, allocations: 246 kB / 480.1 MB, free: 5.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.3443, allocations: 150.6 kB / 480.3 MB, free: 5.742 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.3445, allocations: 386.8 kB / 480.7 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006556/0.3451, allocations: 372.6 kB / 481 MB, free: 4.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007852/0.3459, allocations: 0.5113 MB / 481.5 MB, free: 4.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.3473, allocations: 0.8758 MB / 482.4 MB, free: 3.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3473, allocations: 0 / 482.4 MB, free: 3.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002169/0.3495, allocations: 1.158 MB / 483.6 MB, free: 2.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3495, allocations: 6.812 kB / 483.6 MB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3495, allocations: 11.94 kB / 483.6 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.3509, allocations: 456 kB / 484 MB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006974/0.3516, allocations: 163.7 kB / 484.2 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.3529, allocations: 1.021 MB / 485.2 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006029/0.3535, allocations: 28.03 kB / 485.2 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.892e-05/0.3536, allocations: 35.98 kB / 485.3 MB, free: 0.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008844/0.3545, allocations: 0.5331 MB / 485.8 MB, free: 48 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008057/0.3553, allocations: 0.5044 MB / 486.3 MB, free: 15.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001357/0.3566, allocations: 0.8531 MB / 487.2 MB, free: 14.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.599e-06/0.3566, allocations: 7.938 kB / 487.2 MB, free: 14.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002088/0.3587, allocations: 1.099 MB / 488.3 MB, free: 13.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.3587, allocations: 8 kB / 488.3 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.3588, allocations: 4 kB / 488.3 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007666/0.3595, allocations: 308.9 kB / 488.6 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006886/0.3602, allocations: 167.7 kB / 488.7 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.3613, allocations: 0.9074 MB / 489.7 MB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006091/0.3619, allocations: 32.03 kB / 489.7 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.697e-05/0.362, allocations: 35.98 kB / 489.7 MB, free: 11.96 MB / 398.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.0002861/0.3623, allocations: 234.2 kB / 489.9 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.3625, allocations: 83.48 kB / 490 MB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/0.3647, allocations: 1.091 MB / 491.1 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.3647, allocations: 8 kB / 491.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3647, allocations: 3.938 kB / 491.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.3647, allocations: 3.984 kB / 491.1 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003476/0.3682, allocations: 1.976 MB / 493.1 MB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3682, allocations: 0 / 493.1 MB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006136/0.3688, allocations: 116 kB / 493.2 MB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.37, allocations: 444.4 kB / 493.7 MB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-05/0.3701, allocations: 12 kB / 493.7 MB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.3714, allocations: 1.035 MB / 494.7 MB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3714, allocations: 3.938 kB / 494.7 MB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/0.3741, allocations: 1.593 MB / 496.3 MB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005286/0.3747, allocations: 175.3 kB / 496.5 MB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.3748, allocations: 12 kB / 496.5 MB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005838/0.3754, allocations: 31.97 kB / 496.5 MB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3756, allocations: 64.48 kB / 496.6 MB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.793e-05/0.3756, allocations: 23.98 kB / 496.6 MB, free: 4.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007095/0.3763, allocations: 479 kB / 497.1 MB, free: 4.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3763, allocations: 0 / 497.1 MB, free: 4.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001696/0.378, allocations: 0.5849 MB / 497.7 MB, free: 3.914 MB / 398.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.001284/0.3793, allocations: 0.49 MB / 498.1 MB, free: 3.414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003231/0.3826, allocations: 1.322 MB / 499.5 MB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.3826, allocations: 4 kB / 499.5 MB, free: 2.086 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.3836, allocations: 444 kB / 499.9 MB, free: 1.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.3855, allocations: 389.9 kB / 0.4886 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/0.3892, allocations: 1.752 MB / 0.4903 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007034/0.3899, allocations: 0.9949 MB / 0.4912 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001025/0.3909, allocations: 302.6 kB / 0.4915 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.3912, allocations: 71.42 kB / 0.4916 GB, free: 14.1 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3912, allocations: 3.938 kB / 0.4916 GB, free: 14.1 MB / 414.1 MB Notification: Performance of Templates: time 0.04011/0.4313, allocations: 23.88 MB / 0.5149 GB, free: 6.406 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.53489969111979]