Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 122.5 kB / 18.46 MB, free: 4.598 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 190.6 kB / 21.4 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 47.92 kB / 366.8 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.103, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02083/0.1239, allocations: 15.96 MB / 434.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0108/0.1347, allocations: 6.921 MB / 441.8 MB, free: 5.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007996/0.1355, allocations: 23.81 kB / 441.8 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.1365, allocations: 333.9 kB / 442.2 MB, free: 4.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002705/0.1392, allocations: 1.092 MB / 443.3 MB, free: 3.711 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004448/0.1436, allocations: 1.795 MB / 445 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2032/0.3469, allocations: 2.14 MB / 447.2 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.3479, allocations: 0.5366 MB / 447.7 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001338/0.3492, allocations: 0.8067 MB / 448.5 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001059/0.3503, allocations: 0.8452 MB / 449.4 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.3504, allocations: 78.5 kB / 449.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002355/0.3528, allocations: 1.226 MB / 450.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003469/0.3531, allocations: 329.2 kB / 451 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004843/0.3536, allocations: 457.2 kB / 451.4 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003187/0.3568, allocations: 1.849 MB / 453.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3568, allocations: 6.344 kB / 453.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3568, allocations: 0 / 453.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.3568, allocations: 0 / 453.3 MB, free: 8.543 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.002922/0.3597, allocations: 1.301 MB / 454.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3598, allocations: 9.688 kB / 454.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004063/0.3602, allocations: 97.17 kB / 454.7 MB, free: 7.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.3612, allocations: 0.637 MB / 455.3 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.3613, allocations: 104.8 kB / 455.4 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.3615, allocations: 56.97 kB / 455.5 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.3631, allocations: 0.8943 MB / 456.4 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.3631, allocations: 1.5 kB / 456.4 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.3e-05/0.3632, allocations: 26.38 kB / 456.4 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-05/0.3633, allocations: 54.02 kB / 456.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.3648, allocations: 0.8383 MB / 457.3 MB, free: 7.293 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.005631/0.3704, allocations: 3.469 MB / 460.8 MB, free: 5.906 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.3714, allocations: 0.629 MB / 461.4 MB, free: 5.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000523/0.372, allocations: 348.3 kB / 461.8 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00281/0.3748, allocations: 2.039 MB / 463.8 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.3748, allocations: 45.38 kB / 463.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.904e-06/0.3748, allocations: 0 / 463.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006695/0.3815, allocations: 2.846 MB / 466.7 MB, free: 4.082 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.3815, allocations: 84.55 kB / 466.8 MB, free: 3.988 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008203/0.3823, allocations: 0.6795 MB / 467.4 MB, free: 3.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.396e-05/0.3824, allocations: 37.27 kB / 467.5 MB, free: 3.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.3826, allocations: 341.6 kB / 467.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.3827, allocations: 234.2 kB / 468 MB, free: 3.512 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002612/0.383, allocations: 158.2 kB / 468.2 MB, free: 3.484 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3831, allocations: 391.8 kB / 468.6 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005849/0.3837, allocations: 372.7 kB / 468.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006788/0.3844, allocations: 0.5177 MB / 469.5 MB, free: 2.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.3856, allocations: 0.8581 MB / 470.3 MB, free: 2.824 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3856, allocations: 4.656 kB / 470.3 MB, free: 2.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002034/0.3876, allocations: 1.158 MB / 471.5 MB, free: 2.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3876, allocations: 10.62 kB / 471.5 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.3877, allocations: 4.719 kB / 471.5 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.3889, allocations: 451.9 kB / 471.9 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006492/0.3896, allocations: 161.6 kB / 472.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.3907, allocations: 1.019 MB / 473.1 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000691/0.3914, allocations: 35.48 kB / 473.2 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.004e-05/0.3914, allocations: 35.19 kB / 473.2 MB, free: 1.582 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000893/0.3923, allocations: 0.5282 MB / 473.7 MB, free: 1.336 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006439/0.393, allocations: 0.5189 MB / 474.2 MB, free: 1.023 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001159/0.3941, allocations: 0.8398 MB / 475.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.627e-06/0.3941, allocations: 1.375 kB / 475.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001862/0.396, allocations: 1.105 MB / 476.2 MB, free: 156 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.396, allocations: 15.12 kB / 476.2 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.396, allocations: 5.625 kB / 476.2 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006747/0.3967, allocations: 313.2 kB / 476.5 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.3973, allocations: 168.6 kB / 476.7 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.3984, allocations: 0.8951 MB / 477.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000671/0.3991, allocations: 32.31 kB / 477.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.929e-05/0.3991, allocations: 36.3 kB / 477.6 MB, free: 15.4 MB / 382.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.000352/0.3995, allocations: 235.5 kB / 477.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.3997, allocations: 82.83 kB / 477.9 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002122/0.4018, allocations: 1.088 MB / 479 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.4018, allocations: 7.5 kB / 479 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.4018, allocations: 5.766 kB / 479 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.4018, allocations: 3.984 kB / 479 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003226/0.405, allocations: 1.999 MB / 481 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4051, allocations: 0.625 kB / 481 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.4056, allocations: 117.6 kB / 481.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.4067, allocations: 447.2 kB / 481.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.334e-05/0.4068, allocations: 20.36 kB / 481.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.408, allocations: 1.022 MB / 482.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.408, allocations: 3.375 kB / 482.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.4106, allocations: 1.595 MB / 484.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005001/0.4111, allocations: 248.9 kB / 484.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.4112, allocations: 14.38 kB / 484.5 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005913/0.4118, allocations: 41.09 kB / 484.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.412, allocations: 55.45 kB / 484.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.664e-05/0.412, allocations: 25.17 kB / 484.6 MB, free: 11.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006146/0.4127, allocations: 483.8 kB / 485.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4127, allocations: 1.406 kB / 485.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00192/0.4146, allocations: 0.5851 MB / 485.7 MB, free: 10.77 MB / 382.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.001226/0.4158, allocations: 497 kB / 486.2 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002895/0.4187, allocations: 1.326 MB / 487.5 MB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.4187, allocations: 192 / 487.5 MB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009542/0.4197, allocations: 445.2 kB / 487.9 MB, free: 9.746 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.4216, allocations: 384.3 kB / 488.3 MB, free: 9.562 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003505/0.4251, allocations: 1.8 MB / 490.1 MB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/0.4257, allocations: 0.9833 MB / 491.1 MB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.426, allocations: 90.58 kB / 491.2 MB, free: 6.984 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.426, allocations: 0 / 491.2 MB, free: 6.984 MB / 382.1 MB Notification: Performance of Templates: time 0.02802/0.4541, allocations: 19.19 MB / 0.4984 GB, free: 3.906 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.034221736015752]