Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001412/0.001412, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001716/0.001716, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 63.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2981, allocations: 50.53 MB / 409.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01675/0.3148, allocations: 15.97 MB / 425.2 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009838/0.3247, allocations: 6.917 MB / 432.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006186/0.3254, allocations: 23.88 kB / 432.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008858/0.3263, allocations: 334 kB / 432.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002355/0.3287, allocations: 1.077 MB / 433.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004505/0.3332, allocations: 1.79 MB / 435.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002609/0.3358, allocations: 2.155 MB / 437.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008475/0.3367, allocations: 0.6035 MB / 438.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.3378, allocations: 0.7981 MB / 438.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.3388, allocations: 0.798 MB / 439.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.339, allocations: 80 kB / 439.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002281/0.3413, allocations: 1.24 MB / 441 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.3416, allocations: 319.1 kB / 441.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004743/0.3421, allocations: 461.9 kB / 441.8 MB, free: 1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002391/0.3445, allocations: 1.857 MB / 443.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3445, allocations: 0 / 443.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3445, allocations: 0 / 443.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.3445, allocations: 8 kB / 443.6 MB, free: 15.13 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.002479/0.347, allocations: 1.299 MB / 444.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.3471, allocations: 8.031 kB / 444.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003169/0.3474, allocations: 104.4 kB / 445 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008978/0.3483, allocations: 0.629 MB / 445.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.3484, allocations: 104.7 kB / 445.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.693e-05/0.3485, allocations: 59.92 kB / 445.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.3499, allocations: 0.8963 MB / 446.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.3499, allocations: 7.891 kB / 446.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.227e-05/0.35, allocations: 23.98 kB / 446.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.181e-05/0.3501, allocations: 49.28 kB / 446.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.3515, allocations: 0.8444 MB / 447.6 MB, free: 10.97 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.005286/0.3568, allocations: 3.455 MB / 451.1 MB, free: 7.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.3579, allocations: 0.6618 MB / 451.8 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005573/0.3584, allocations: 366.3 kB / 452.1 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002708/0.3611, allocations: 2.032 MB / 454.2 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.3612, allocations: 51 kB / 454.2 MB, free: 4.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.074e-06/0.3612, allocations: 0 / 454.2 MB, free: 4.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006927/0.3681, allocations: 2.841 MB / 457 MB, free: 1.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.3682, allocations: 85.66 kB / 457.1 MB, free: 1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007994/0.369, allocations: 0.6838 MB / 457.8 MB, free: 312 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.537e-05/0.3691, allocations: 37.7 kB / 457.8 MB, free: 268 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.3694, allocations: 345 kB / 458.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.3696, allocations: 238 kB / 458.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002566/0.3698, allocations: 150.6 kB / 458.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.37, allocations: 386.8 kB / 458.9 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006057/0.3706, allocations: 372.6 kB / 459.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007405/0.3713, allocations: 0.523 MB / 459.8 MB, free: 14.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3727, allocations: 0.8638 MB / 460.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3727, allocations: 0 / 460.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002036/0.3747, allocations: 1.165 MB / 461.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3747, allocations: 4 kB / 461.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3748, allocations: 7.938 kB / 461.9 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.3761, allocations: 460.5 kB / 462.3 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006379/0.3767, allocations: 151.8 kB / 462.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.3779, allocations: 1.021 MB / 463.5 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006387/0.3786, allocations: 32.02 kB / 463.5 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.245e-05/0.3787, allocations: 31.98 kB / 463.5 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008314/0.3795, allocations: 0.5292 MB / 464.1 MB, free: 9.836 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007289/0.3802, allocations: 0.5199 MB / 464.6 MB, free: 9.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001274/0.3815, allocations: 0.845 MB / 465.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.433e-05/0.3816, allocations: 3.938 kB / 465.4 MB, free: 8.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001967/0.3835, allocations: 1.103 MB / 466.5 MB, free: 7.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3836, allocations: 8 kB / 466.6 MB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3836, allocations: 4 kB / 466.6 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007297/0.3843, allocations: 320.8 kB / 466.9 MB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000624/0.3849, allocations: 159.8 kB / 467 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009375/0.3859, allocations: 0.9147 MB / 467.9 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.3864, allocations: 36.02 kB / 468 MB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.527e-05/0.3865, allocations: 32 kB / 468 MB, free: 5.746 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.0002728/0.3868, allocations: 232 kB / 468.2 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.387, allocations: 83.48 kB / 468.3 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.3889, allocations: 1.091 MB / 469.4 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.3889, allocations: 11.98 kB / 469.4 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.389, allocations: 0 / 469.4 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.389, allocations: 0 / 469.4 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003104/0.3921, allocations: 2.012 MB / 471.4 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3921, allocations: 0 / 471.4 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005701/0.3927, allocations: 119.9 kB / 471.6 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.3938, allocations: 444.5 kB / 472 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.458e-05/0.3939, allocations: 16 kB / 472 MB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.395, allocations: 1.029 MB / 473 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.395, allocations: 3.938 kB / 473 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.3974, allocations: 1.601 MB / 474.6 MB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.3978, allocations: 248.5 kB / 474.9 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.3979, allocations: 12 kB / 474.9 MB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005576/0.3985, allocations: 35.97 kB / 474.9 MB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.3987, allocations: 56.52 kB / 475 MB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-05/0.3988, allocations: 35.97 kB / 475 MB, free: 14.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005736/0.3993, allocations: 475 kB / 475.5 MB, free: 14.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3993, allocations: 0 / 475.5 MB, free: 14.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00148/0.4008, allocations: 0.5926 MB / 476.1 MB, free: 13.54 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.0009785/0.4018, allocations: 0.494 MB / 476.6 MB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002829/0.4047, allocations: 1.412 MB / 478 MB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4047, allocations: 0 / 478 MB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009255/0.4056, allocations: 467.5 kB / 478.4 MB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.4073, allocations: 391.4 kB / 478.8 MB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.4104, allocations: 1.753 MB / 480.6 MB, free: 9.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.4109, allocations: 0.9911 MB / 481.6 MB, free: 7.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008539/0.4118, allocations: 302.6 kB / 481.9 MB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.4121, allocations: 75.41 kB / 481.9 MB, free: 7.613 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4121, allocations: 0 / 481.9 MB, free: 7.613 MB / 398.1 MB Notification: Performance of Templates: time 0.03723/0.4493, allocations: 23.21 MB / 0.4933 GB, free: 0.5312 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches