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.001097/0.001097, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 62.91 kB / 306.9 MB, free: 0.668 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1079, allocations: 50.53 MB / 357.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1798/0.2877, allocations: 15.95 MB / 373.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008595/0.2963, allocations: 6.919 MB / 380.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006226/0.297, allocations: 26.56 kB / 380.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008417/0.2979, allocations: 332.7 kB / 380.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002356/0.3003, allocations: 1.075 MB / 381.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004399/0.3047, allocations: 1.797 MB / 383.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002519/0.3072, allocations: 2.148 MB / 385.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008039/0.308, allocations: 0.6079 MB / 386.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001285/0.3093, allocations: 0.8026 MB / 387.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009732/0.3103, allocations: 0.8006 MB / 387.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.3105, allocations: 79.59 kB / 388 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.313, allocations: 1.23 MB / 389.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.3133, allocations: 314.2 kB / 389.5 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004563/0.3138, allocations: 468.6 kB / 390 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002164/0.316, allocations: 1.83 MB / 391.8 MB, free: 4.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.316, allocations: 4 kB / 391.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.316, allocations: 0 / 391.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.316, allocations: 0 / 391.8 MB, free: 4.75 MB / 302.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.002363/0.3184, allocations: 1.267 MB / 393.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.3184, allocations: 10.12 kB / 393.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003192/0.3187, allocations: 94.81 kB / 393.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007613/0.3195, allocations: 0.6008 MB / 393.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.479e-05/0.3196, allocations: 107.3 kB / 393.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.3197, allocations: 51.27 kB / 393.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.3211, allocations: 0.8992 MB / 394.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.3211, allocations: 5.094 kB / 394.8 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/0.3212, allocations: 26.3 kB / 394.9 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.9e-05/0.3212, allocations: 48.44 kB / 394.9 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.3226, allocations: 0.8411 MB / 395.8 MB, free: 2.125 MB / 302.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.004948/0.3276, allocations: 3.468 MB / 399.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.3286, allocations: 0.6649 MB / 399.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005556/0.3292, allocations: 370.2 kB / 400.3 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00279/0.332, allocations: 2.021 MB / 402.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.332, allocations: 49.81 kB / 402.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.004e-06/0.3321, allocations: 0 / 402.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006967/0.339, allocations: 2.833 MB / 405.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.3391, allocations: 85.36 kB / 405.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009475/0.3401, allocations: 0.6837 MB / 405.9 MB, free: 10.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.133e-05/0.3402, allocations: 37.7 kB / 406 MB, free: 10.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.3404, allocations: 336.4 kB / 406.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.3406, allocations: 228.7 kB / 406.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002604/0.3409, allocations: 154.5 kB / 406.7 MB, free: 9.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3411, allocations: 390.7 kB / 407 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006143/0.3417, allocations: 368.6 kB / 407.4 MB, free: 9.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000716/0.3425, allocations: 0.5191 MB / 407.9 MB, free: 8.594 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.3438, allocations: 0.8599 MB / 408.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3438, allocations: 0 / 408.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002065/0.3458, allocations: 1.165 MB / 410 MB, free: 6.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.3459, allocations: 8 kB / 410 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3459, allocations: 4 kB / 410 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.3472, allocations: 448.7 kB / 410.4 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006359/0.3478, allocations: 163.7 kB / 410.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.3491, allocations: 1.017 MB / 411.6 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/0.3497, allocations: 32.02 kB / 411.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.829e-05/0.3498, allocations: 32 kB / 411.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000817/0.3507, allocations: 0.5369 MB / 412.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007054/0.3514, allocations: 0.5199 MB / 412.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001265/0.3526, allocations: 0.8373 MB / 413.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.352e-06/0.3527, allocations: 4 kB / 413.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001934/0.3546, allocations: 1.102 MB / 414.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.3546, allocations: 8 kB / 414.6 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3546, allocations: 4 kB / 414.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007169/0.3554, allocations: 313.2 kB / 415 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/0.356, allocations: 171.8 kB / 415.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009909/0.357, allocations: 0.9033 MB / 416 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007465/0.3578, allocations: 32.03 kB / 416.1 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-05/0.3579, allocations: 35.98 kB / 416.1 MB, free: 172 kB / 318.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.0003749/0.3582, allocations: 237.1 kB / 416.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.3584, allocations: 83.06 kB / 416.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.3606, allocations: 1.087 MB / 417.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.3606, allocations: 8 kB / 417.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.3607, allocations: 0 / 417.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.3607, allocations: 3.984 kB / 417.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003173/0.3638, allocations: 2.005 MB / 419.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3639, allocations: 0 / 419.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005848/0.3645, allocations: 123.7 kB / 419.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.3656, allocations: 448.5 kB / 420.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.601e-05/0.3657, allocations: 16.55 kB / 420.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.3668, allocations: 1.021 MB / 421.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3668, allocations: 4.641 kB / 421.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.3692, allocations: 1.591 MB / 422.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004111/0.3697, allocations: 252 kB / 423 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.3698, allocations: 16.94 kB / 423 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.3704, allocations: 27.97 kB / 423 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.3705, allocations: 60.52 kB / 423.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.279e-05/0.3706, allocations: 27.97 kB / 423.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005942/0.3712, allocations: 483 kB / 423.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3712, allocations: 0 / 423.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001648/0.3729, allocations: 0.5896 MB / 424.1 MB, free: 7.973 MB / 334.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.00104/0.3739, allocations: 497.6 kB / 424.6 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003265/0.3772, allocations: 1.556 MB / 426.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.3772, allocations: 4 kB / 426.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009649/0.3782, allocations: 475.5 kB / 426.7 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.38, allocations: 387.5 kB / 427 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.3833, allocations: 1.749 MB / 428.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005518/0.3838, allocations: 0.9989 MB / 429.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001066/0.3849, allocations: 306.5 kB / 430.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.3851, allocations: 71.42 kB / 430.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3851, allocations: 4 kB / 430.2 MB, free: 1.914 MB / 334.1 MB Notification: Performance of Templates: time 0.03685/0.422, allocations: 23.02 MB / 453.2 MB, free: 11.03 MB / 366.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