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.001815/0.001815, allocations: 69.72 kB / 21.24 MB, free: 0.5547 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.002254/0.002254, allocations: 162.5 kB / 24.5 MB, free: 3.711 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.426/1.426, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.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.002617/0.002617, allocations: 51.44 kB / 325.6 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1132, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01946/0.1327, allocations: 14.67 MB / 393.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.1428, allocations: 6.29 MB / 399.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006906/0.1435, allocations: 27.75 kB / 399.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000934/0.1444, allocations: 326 kB / 400.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002894/0.1473, allocations: 1.116 MB / 401.3 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004516/0.1518, allocations: 1.811 MB / 403.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003021/0.1548, allocations: 2.214 MB / 405.3 MB, free: 5.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007849/0.1556, allocations: 0.5141 MB / 405.8 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.157, allocations: 0.8372 MB / 406.7 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.1583, allocations: 0.8368 MB / 407.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001627/0.1584, allocations: 76 kB / 407.6 MB, free: 2.828 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002194/0.1606, allocations: 1.01 MB / 408.6 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003798/0.161, allocations: 331 kB / 408.9 MB, free: 1.492 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004867/0.1615, allocations: 390.4 kB / 409.3 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002609/0.1641, allocations: 1.83 MB / 411.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1641, allocations: 0 / 411.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1641, allocations: 0 / 411.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1641, allocations: 0 / 411.1 MB, free: 15.27 MB / 382.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.002763/0.1669, allocations: 1.227 MB / 412.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.1669, allocations: 12.03 kB / 412.4 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003294/0.1673, allocations: 100.4 kB / 412.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.1683, allocations: 0.5673 MB / 413 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.1685, allocations: 160.1 kB / 413.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.1686, allocations: 63.92 kB / 413.3 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.1703, allocations: 1.165 MB / 414.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.1704, allocations: 3.984 kB / 414.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.117e-05/0.1704, allocations: 27.98 kB / 414.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.611e-05/0.1705, allocations: 49.28 kB / 414.5 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.172, allocations: 0.8405 MB / 415.3 MB, free: 10.88 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.005364/0.1774, allocations: 2.598 MB / 417.9 MB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.1785, allocations: 0.6221 MB / 418.6 MB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005668/0.1791, allocations: 342.2 kB / 418.9 MB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002635/0.1817, allocations: 1.201 MB / 420.1 MB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.1817, allocations: 46.98 kB / 420.1 MB, free: 5.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.034e-06/0.1817, allocations: 0 / 420.1 MB, free: 5.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.007115/0.1888, allocations: 2.686 MB / 422.8 MB, free: 3.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.1889, allocations: 85.77 kB / 422.9 MB, free: 3.168 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000707/0.1896, allocations: 0.5496 MB / 423.5 MB, free: 2.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.084e-05/0.1897, allocations: 37.7 kB / 423.5 MB, free: 2.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.19, allocations: 360.7 kB / 423.9 MB, free: 2.207 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.1902, allocations: 241.9 kB / 424.1 MB, free: 1.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.1904, allocations: 150.6 kB / 424.2 MB, free: 1.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1906, allocations: 378.7 kB / 424.6 MB, free: 1.434 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006346/0.1913, allocations: 372.6 kB / 425 MB, free: 1.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007833/0.192, allocations: 0.5481 MB / 425.5 MB, free: 460 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.1934, allocations: 0.8603 MB / 426.4 MB, free: 15.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1935, allocations: 4 kB / 426.4 MB, free: 15.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002084/0.1955, allocations: 1.145 MB / 427.5 MB, free: 14.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.1956, allocations: 10.97 kB / 427.5 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.1956, allocations: 7.984 kB / 427.6 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.1969, allocations: 452.5 kB / 428 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006685/0.1975, allocations: 155.8 kB / 428.1 MB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.1988, allocations: 1.028 MB / 429.2 MB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.1994, allocations: 31.97 kB / 429.2 MB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.06e-05/0.1995, allocations: 35.98 kB / 429.2 MB, free: 12.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000868/0.2003, allocations: 0.5331 MB / 429.8 MB, free: 12.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007683/0.2011, allocations: 0.5364 MB / 430.3 MB, free: 11.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001353/0.2024, allocations: 0.8494 MB / 431.2 MB, free: 10.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.807e-06/0.2024, allocations: 0 / 431.2 MB, free: 10.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002019/0.2045, allocations: 1.091 MB / 432.2 MB, free: 9.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2045, allocations: 4 kB / 432.3 MB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.2045, allocations: 8 kB / 432.3 MB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007389/0.2052, allocations: 316.9 kB / 432.6 MB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006679/0.2059, allocations: 163.8 kB / 432.7 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.207, allocations: 0.9151 MB / 433.6 MB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005469/0.2075, allocations: 31.98 kB / 433.7 MB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.887e-05/0.2076, allocations: 43.97 kB / 433.7 MB, free: 7.988 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.0002768/0.2079, allocations: 220.8 kB / 433.9 MB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.208, allocations: 71.58 kB / 434 MB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.2101, allocations: 1.071 MB / 435.1 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.2101, allocations: 15.92 kB / 435.1 MB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2101, allocations: 0 / 435.1 MB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.2101, allocations: 0 / 435.1 MB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003213/0.2133, allocations: 1.786 MB / 436.9 MB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2133, allocations: 0 / 436.9 MB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005947/0.2139, allocations: 123.8 kB / 437 MB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.2151, allocations: 440.5 kB / 437.4 MB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/0.2152, allocations: 19.98 kB / 437.4 MB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.2165, allocations: 1.025 MB / 438.5 MB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2165, allocations: 0 / 438.5 MB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002612/0.2192, allocations: 1.589 MB / 440.1 MB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004941/0.2197, allocations: 155.5 kB / 440.2 MB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.2198, allocations: 16 kB / 440.2 MB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005216/0.2203, allocations: 27.98 kB / 440.3 MB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.2204, allocations: 60.53 kB / 440.3 MB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.632e-05/0.2205, allocations: 27.98 kB / 440.3 MB, free: 1.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005549/0.2211, allocations: 382.8 kB / 440.7 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2211, allocations: 0 / 440.7 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001732/0.2228, allocations: 0.5886 MB / 441.3 MB, free: 296 kB / 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.001207/0.224, allocations: 493.8 kB / 441.8 MB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003173/0.2272, allocations: 1.322 MB / 443.1 MB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2272, allocations: 0 / 443.1 MB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.2282, allocations: 436.1 kB / 443.5 MB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.2298, allocations: 367.5 kB / 443.9 MB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/0.2335, allocations: 1.725 MB / 445.6 MB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.234, allocations: 396.5 kB / 446 MB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009019/0.2349, allocations: 297.8 kB / 446.3 MB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.2351, allocations: 72.48 kB / 446.4 MB, free: 11.17 MB / 414.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2351, allocations: 0 / 446.4 MB, free: 11.17 MB / 414.1 MB Notification: Performance of Templates: time 0.03752/0.2726, allocations: 22.02 MB / 468.4 MB, free: 5.441 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 -s ida -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: 5.285768855013885]