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.001826/0.001826, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002218/0.002218, allocations: 215.1 kB / 24.48 MB, free: 3.84 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.518/1.518, allocations: 230.6 MB / 258.2 MB, free: 7.801 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.001651/0.001651, allocations: 55.91 kB / 379 MB, free: 2.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2619, allocations: 53.37 MB / 432.3 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0182/0.2801, allocations: 14.68 MB / 447 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.2904, allocations: 6.271 MB / 453.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007726/0.2912, allocations: 35.62 kB / 453.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009626/0.2921, allocations: 326 kB / 453.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002966/0.2951, allocations: 1.12 MB / 454.7 MB, free: 264 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004634/0.2997, allocations: 1.8 MB / 456.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003156/0.3029, allocations: 2.218 MB / 458.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008607/0.3037, allocations: 0.5063 MB / 459.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001472/0.3052, allocations: 0.8449 MB / 460.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001287/0.3065, allocations: 0.8291 MB / 460.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.3067, allocations: 80 kB / 461 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.309, allocations: 1.018 MB / 462 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003968/0.3094, allocations: 327 kB / 462.4 MB, free: 8.629 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004812/0.3099, allocations: 382.4 kB / 462.7 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002834/0.3127, allocations: 1.838 MB / 464.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3127, allocations: 0 / 464.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3127, allocations: 0 / 464.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.3128, allocations: 0 / 464.6 MB, free: 6.41 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.002806/0.3156, allocations: 1.224 MB / 465.8 MB, free: 5.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3156, allocations: 12.03 kB / 465.8 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003268/0.3159, allocations: 100.4 kB / 465.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.3171, allocations: 0.5713 MB / 466.5 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.3172, allocations: 156.1 kB / 466.6 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.3173, allocations: 55.92 kB / 466.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001829/0.3192, allocations: 1.172 MB / 467.9 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.3192, allocations: 3.953 kB / 467.9 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.944e-05/0.3193, allocations: 27.98 kB / 467.9 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.698e-05/0.3194, allocations: 53.27 kB / 467.9 MB, free: 2.863 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.3208, allocations: 0.8327 MB / 468.8 MB, free: 2.027 MB / 366.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.005474/0.3263, allocations: 2.598 MB / 471.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.3274, allocations: 0.6306 MB / 472 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005475/0.3279, allocations: 338.2 kB / 472.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002539/0.3305, allocations: 1.197 MB / 473.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.3305, allocations: 47 kB / 473.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.334e-06/0.3305, allocations: 0 / 473.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.007074/0.3376, allocations: 2.694 MB / 476.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.711e-05/0.3377, allocations: 81.77 kB / 476.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007294/0.3384, allocations: 0.5496 MB / 476.9 MB, free: 9.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.524e-05/0.3385, allocations: 41.64 kB / 476.9 MB, free: 9.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002963/0.3387, allocations: 356.7 kB / 477.3 MB, free: 9.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.339, allocations: 242 kB / 477.5 MB, free: 9.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000256/0.3392, allocations: 146.6 kB / 477.7 MB, free: 8.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.3394, allocations: 386.7 kB / 478 MB, free: 8.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000625/0.3401, allocations: 376.6 kB / 478.4 MB, free: 8.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008544/0.3409, allocations: 0.5442 MB / 479 MB, free: 7.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.3423, allocations: 0.8641 MB / 479.8 MB, free: 6.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.3423, allocations: 4 kB / 479.8 MB, free: 6.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00209/0.3444, allocations: 1.142 MB / 481 MB, free: 5.516 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.3444, allocations: 8.562 kB / 481 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.3445, allocations: 4 kB / 481 MB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.3458, allocations: 460.4 kB / 481.4 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006628/0.3464, allocations: 151.8 kB / 481.6 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.3478, allocations: 1.024 MB / 482.6 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/0.3484, allocations: 32.02 kB / 482.6 MB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.436e-05/0.3484, allocations: 32 kB / 482.7 MB, free: 3.789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009037/0.3493, allocations: 0.5331 MB / 483.2 MB, free: 3.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008086/0.3501, allocations: 0.5372 MB / 483.7 MB, free: 2.648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00137/0.3515, allocations: 0.8533 MB / 484.6 MB, free: 1.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.136e-06/0.3515, allocations: 0 / 484.6 MB, free: 1.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002019/0.3535, allocations: 1.091 MB / 485.7 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3535, allocations: 8 kB / 485.7 MB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3536, allocations: 4 kB / 485.7 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007304/0.3543, allocations: 317.1 kB / 486 MB, free: 316 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006435/0.3549, allocations: 159.8 kB / 486.2 MB, free: 156 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.356, allocations: 0.9151 MB / 487.1 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005205/0.3565, allocations: 36.02 kB / 487.1 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.3566, allocations: 28 kB / 487.1 MB, free: 15.15 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.0003019/0.3569, allocations: 232.1 kB / 487.4 MB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.357, allocations: 71.58 kB / 487.4 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002079/0.3591, allocations: 1.071 MB / 488.5 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.3591, allocations: 11.94 kB / 488.5 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3591, allocations: 0 / 488.5 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3591, allocations: 3.984 kB / 488.5 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003249/0.3624, allocations: 1.785 MB / 490.3 MB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3624, allocations: 3.984 kB / 490.3 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005869/0.363, allocations: 119.8 kB / 490.4 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/0.3642, allocations: 443.2 kB / 490.8 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.355e-05/0.3642, allocations: 20 kB / 490.9 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.3655, allocations: 1.027 MB / 491.9 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3655, allocations: 0 / 491.9 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.3681, allocations: 1.593 MB / 493.5 MB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004836/0.3685, allocations: 159.4 kB / 493.6 MB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.3687, allocations: 12 kB / 493.7 MB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.3692, allocations: 27.98 kB / 493.7 MB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.3694, allocations: 56.55 kB / 493.7 MB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.198e-05/0.3695, allocations: 27.98 kB / 493.8 MB, free: 8.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005048/0.37, allocations: 378.8 kB / 494.1 MB, free: 8.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.37, allocations: 0 / 494.1 MB, free: 8.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001637/0.3716, allocations: 0.5887 MB / 494.7 MB, free: 7.445 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.001164/0.3728, allocations: 489.6 kB / 495.2 MB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003003/0.3758, allocations: 1.327 MB / 496.5 MB, free: 5.629 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3758, allocations: 8.312 kB / 496.5 MB, free: 5.621 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009853/0.3768, allocations: 435.5 kB / 497 MB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.3784, allocations: 360.4 kB / 497.3 MB, free: 4.852 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.3819, allocations: 1.781 MB / 499.1 MB, free: 3.039 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.3823, allocations: 400.4 kB / 499.5 MB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3826, allocations: 79.41 kB / 499.6 MB, free: 2.547 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3826, allocations: 0 / 499.6 MB, free: 2.547 MB / 398.1 MB Notification: Performance of Templates: time 0.03151/0.4141, allocations: 18.96 MB / 0.5064 GB, free: 15.66 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/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: 9.738312876783311]