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.001307/0.001307, allocations: 111.5 kB / 18.45 MB, free: 4.605 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.001357/0.001357, allocations: 208.3 kB / 21.41 MB, free: 1.648 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 / 254.8 MB, free: 15.1 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.001562/0.001562, allocations: 51.92 kB / 374.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1068, allocations: 53.34 MB / 427.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2273/0.3341, allocations: 16.05 MB / 443.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.3446, allocations: 6.928 MB / 450.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.3458, allocations: 34 kB / 450.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.347, allocations: 338.4 kB / 450.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003431/0.3504, allocations: 1.093 MB / 451.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005385/0.3558, allocations: 1.795 MB / 453.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004366/0.3602, allocations: 2.148 MB / 455.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.3613, allocations: 0.5283 MB / 456.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.3631, allocations: 0.8201 MB / 457.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.3646, allocations: 0.853 MB / 458.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001747/0.3648, allocations: 78.38 kB / 458.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003275/0.3681, allocations: 1.249 MB / 459.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004998/0.3686, allocations: 324.4 kB / 459.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006937/0.3693, allocations: 458.2 kB / 460.1 MB, free: 9.332 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005125/0.3744, allocations: 1.884 MB / 462 MB, free: 8.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.3744, allocations: 4 kB / 462 MB, free: 8.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3744, allocations: 0 / 462 MB, free: 8.121 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.3744, allocations: 1.031 kB / 462 MB, free: 8.121 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.003159/0.3776, allocations: 1.292 MB / 463.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3776, allocations: 9.312 kB / 463.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003804/0.378, allocations: 99.41 kB / 463.4 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.3791, allocations: 0.6324 MB / 464.1 MB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.3792, allocations: 113.8 kB / 464.2 MB, free: 6.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.3794, allocations: 50.95 kB / 464.2 MB, free: 6.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.381, allocations: 0.8914 MB / 465.1 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/0.381, allocations: 8.594 kB / 465.1 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-05/0.3811, allocations: 25.98 kB / 465.2 MB, free: 5.875 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-05/0.3812, allocations: 57.27 kB / 465.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.3827, allocations: 0.8412 MB / 466.1 MB, free: 5.434 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.005876/0.3885, allocations: 3.419 MB / 469.5 MB, free: 2.719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.3896, allocations: 0.6318 MB / 470.1 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005735/0.3902, allocations: 343.7 kB / 470.4 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003088/0.3933, allocations: 2.024 MB / 472.5 MB, free: 416 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.3933, allocations: 42.53 kB / 472.5 MB, free: 368 kB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.414e-06/0.3933, allocations: 4 kB / 472.5 MB, free: 364 kB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007559/0.4009, allocations: 2.847 MB / 475.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.401, allocations: 87.14 kB / 475.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009437/0.4019, allocations: 0.6748 MB / 476.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/0.402, allocations: 41.27 kB / 476.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.4023, allocations: 342.7 kB / 476.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.4025, allocations: 238 kB / 476.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.4028, allocations: 149.2 kB / 476.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.403, allocations: 393.2 kB / 477.3 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006154/0.4036, allocations: 368.6 kB / 477.6 MB, free: 13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000795/0.4044, allocations: 0.5162 MB / 478.1 MB, free: 12.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.4058, allocations: 0.8689 MB / 479 MB, free: 12.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4058, allocations: 5.312 kB / 479 MB, free: 12.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002218/0.408, allocations: 1.151 MB / 480.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.408, allocations: 8.562 kB / 480.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.4081, allocations: 8 kB / 480.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.4094, allocations: 452.1 kB / 480.6 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/0.4101, allocations: 163.7 kB / 480.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.4114, allocations: 1.024 MB / 481.8 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007084/0.4121, allocations: 31.98 kB / 481.8 MB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.363e-05/0.4122, allocations: 36.55 kB / 481.9 MB, free: 9.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008918/0.4131, allocations: 0.5253 MB / 482.4 MB, free: 8.895 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007593/0.4139, allocations: 0.5121 MB / 482.9 MB, free: 8.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001342/0.4152, allocations: 0.845 MB / 483.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.377e-06/0.4152, allocations: 0 / 483.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002064/0.4173, allocations: 1.108 MB / 484.9 MB, free: 6.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.4173, allocations: 5.188 kB / 484.9 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4173, allocations: 12 kB / 484.9 MB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000747/0.418, allocations: 310.2 kB / 485.2 MB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006551/0.4187, allocations: 176.5 kB / 485.3 MB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.4198, allocations: 0.8996 MB / 486.2 MB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006523/0.4204, allocations: 36.02 kB / 486.3 MB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.712e-05/0.4205, allocations: 35.98 kB / 486.3 MB, free: 4.812 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.0003164/0.4208, allocations: 228.1 kB / 486.5 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/0.421, allocations: 83.48 kB / 486.6 MB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/0.4231, allocations: 1.083 MB / 487.7 MB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4232, allocations: 11.94 kB / 487.7 MB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4232, allocations: 0 / 487.7 MB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.4232, allocations: 3.984 kB / 487.7 MB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.4265, allocations: 1.99 MB / 489.7 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.4265, allocations: 4 kB / 489.7 MB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005786/0.4271, allocations: 119.9 kB / 489.8 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.4283, allocations: 435.1 kB / 490.3 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.295e-05/0.4284, allocations: 23.98 kB / 490.3 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.4296, allocations: 1.025 MB / 491.3 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4296, allocations: 8.562 kB / 491.3 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/0.4323, allocations: 1.593 MB / 492.9 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/0.4328, allocations: 246.6 kB / 493.1 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.4329, allocations: 15.94 kB / 493.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000521/0.4334, allocations: 27.98 kB / 493.2 MB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.4336, allocations: 60.5 kB / 493.2 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/0.4337, allocations: 27.98 kB / 493.3 MB, free: 13.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006697/0.4343, allocations: 483 kB / 493.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4343, allocations: 4 kB / 493.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001863/0.4362, allocations: 0.5886 MB / 494.3 MB, free: 12.66 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.001125/0.4373, allocations: 0.4899 MB / 494.8 MB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002988/0.4403, allocations: 1.321 MB / 496.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.4403, allocations: 0 / 496.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000967/0.4413, allocations: 441 kB / 496.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/0.443, allocations: 395.8 kB / 497 MB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.4466, allocations: 1.794 MB / 498.8 MB, free: 8.223 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/0.4473, allocations: 0.9949 MB / 499.8 MB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002853/0.4476, allocations: 83.41 kB / 499.8 MB, free: 7.113 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4476, allocations: 0 / 499.8 MB, free: 7.113 MB / 398.1 MB Notification: Performance of Templates: time 0.0287/0.4763, allocations: 19.27 MB / 0.5069 GB, free: 3.918 MB / 414.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: 10.062438436987577]