Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008108/0.0008108, allocations: 94.56 kB / 17.31 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008877/0.0008878, allocations: 179.9 kB / 18.21 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002646/0.0002645, allocations: 11.92 kB / 302.1 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08611/0.08639, allocations: 50.41 MB / 352.5 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1885/0.2749, allocations: 30.73 MB / 383.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01264/0.2876, allocations: 10.66 MB / 393.9 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001234/0.2888, allocations: 44 kB / 393.9 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.2899, allocations: 412.5 kB / 394.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004088/0.294, allocations: 1.74 MB / 396.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006043/0.3, allocations: 2.323 MB / 398.4 MB, free: 2.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004881/0.3049, allocations: 5.193 MB / 403.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001472/0.3064, allocations: 1.007 MB / 404.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.3086, allocations: 1.303 MB / 405.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.3102, allocations: 1.391 MB / 407.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001639/0.3104, allocations: 84.06 kB / 407.4 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003658/0.3141, allocations: 1.989 MB / 409.4 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004557/0.3145, allocations: 0.4911 MB / 409.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007296/0.3153, allocations: 0.7549 MB / 410.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002524/0.3178, allocations: 2.374 MB / 413 MB, free: 9.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.3178, allocations: 0 / 413 MB, free: 9.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.3178, allocations: 3.984 kB / 413 MB, free: 9.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3178, allocations: 0 / 413 MB, free: 9.223 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003884/0.3217, allocations: 1.769 MB / 414.7 MB, free: 7.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.3218, allocations: 12.03 kB / 414.8 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004158/0.3222, allocations: 170.1 kB / 414.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.3234, allocations: 0.894 MB / 415.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.3236, allocations: 238.5 kB / 416 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000184/0.3237, allocations: 99.97 kB / 416.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002544/0.3263, allocations: 1.79 MB / 417.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.3263, allocations: 7.922 kB / 417.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001388/0.3265, allocations: 51.91 kB / 418 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.3266, allocations: 102 kB / 418.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002624/0.3292, allocations: 1.776 MB / 419.9 MB, free: 2.129 MB / 318.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.01/0.3392, allocations: 6.964 MB / 426.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.3417, allocations: 1.501 MB / 428.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.3429, allocations: 0.8783 MB / 429.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007573/0.3437, allocations: 0.6607 MB / 429.9 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.3437, allocations: 51.5 kB / 429.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 2.555e-06/0.3437, allocations: 0 / 429.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01517/0.3589, allocations: 6.676 MB / 436.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.422e-05/0.359, allocations: 167.5 kB / 436.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.3604, allocations: 1.107 MB / 437.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.3605, allocations: 53.7 kB / 437.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003639/0.3609, allocations: 0.5043 MB / 438.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003425/0.3612, allocations: 429.8 kB / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.3614, allocations: 117.7 kB / 439 MB, free: 14.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3615, allocations: 357.9 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.3628, allocations: 0.8393 MB / 440.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.3642, allocations: 1.076 MB / 441.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.3668, allocations: 1.804 MB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3668, allocations: 4 kB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004278/0.3711, allocations: 2.62 MB / 445.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.3712, allocations: 235.5 kB / 445.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.3712, allocations: 4 kB / 445.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003394/0.3746, allocations: 1.303 MB / 447.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008784/0.3755, allocations: 223.6 kB / 447.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006055/0.3816, allocations: 6.356 MB / 453.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.3828, allocations: 99.84 kB / 453.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.383, allocations: 55.97 kB / 453.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.792e-06/0.383, allocations: 4 kB / 453.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003931/0.3869, allocations: 2.35 MB / 456.3 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.3869, allocations: 4.344 kB / 456.3 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002337/0.3893, allocations: 1.039 MB / 457.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009166/0.3902, allocations: 223.6 kB / 457.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005407/0.3956, allocations: 6.099 MB / 463.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.3968, allocations: 99.84 kB / 463.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.3969, allocations: 59.97 kB / 463.8 MB, free: 4.578 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0006856/0.3976, allocations: 456.6 kB / 464.2 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.3979, allocations: 134.4 kB / 464.4 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004731/0.4026, allocations: 2.803 MB / 467.2 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.4026, allocations: 16 kB / 467.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4026, allocations: 4 kB / 467.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.4027, allocations: 7.969 kB / 467.2 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006799/0.4095, allocations: 4.53 MB / 471.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.4095, allocations: 0 / 471.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007457/0.4103, allocations: 155.8 kB / 471.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/0.4134, allocations: 1.299 MB / 473.2 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.4136, allocations: 43.97 kB / 473.2 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005968/0.4196, allocations: 6.39 MB / 479.6 MB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4196, allocations: 0 / 479.6 MB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00617/0.4258, allocations: 3.955 MB / 483.6 MB, free: 312 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000804/0.4266, allocations: 447 kB / 484 MB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002743/0.4269, allocations: 28 kB / 484 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.428, allocations: 95.88 kB / 484.1 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/0.4283, allocations: 149 kB / 484.3 MB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.4285, allocations: 47.97 kB / 484.3 MB, free: 15.54 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009797/0.4295, allocations: 0.7493 MB / 485.1 MB, free: 14.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4295, allocations: 0 / 485.1 MB, free: 14.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002759/0.4322, allocations: 1.054 MB / 486.1 MB, free: 13.72 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001763/0.434, allocations: 0.7364 MB / 486.9 MB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007342/0.4414, allocations: 3.802 MB / 490.7 MB, free: 9.133 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.4414, allocations: 0 / 490.7 MB, free: 9.133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002902/0.4443, allocations: 1.419 MB / 492.1 MB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/0.4473, allocations: 0.5946 MB / 492.7 MB, free: 7.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006197/0.4535, allocations: 3.762 MB / 496.4 MB, free: 3.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008918/0.4544, allocations: 1.256 MB / 497.7 MB, free: 2.035 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005217/0.455, allocations: 143.4 kB / 497.8 MB, free: 1.895 MB / 398.1 MB Notification: Performance of SimCode: time 1.192e-06/0.455, allocations: 0 / 497.8 MB, free: 1.895 MB / 398.1 MB Notification: Performance of Templates: time 0.2114/0.6663, allocations: 53.17 MB / 0.5381 GB, free: 153.3 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches