Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 115.1 kB / 17.06 MB, free: 5.965 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.001162/0.001162, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009866/0.0009867, allocations: 51.91 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2841, allocations: 49.42 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01636/0.3005, allocations: 15.85 MB / 416.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009307/0.3098, allocations: 6.905 MB / 423.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007682/0.3106, allocations: 19.88 kB / 423.5 MB, free: 2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008831/0.3115, allocations: 330 kB / 423.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002372/0.3139, allocations: 1.073 MB / 424.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003942/0.3179, allocations: 1.797 MB / 426.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00258/0.3205, allocations: 2.14 MB / 428.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007798/0.3213, allocations: 0.5958 MB / 429.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.3224, allocations: 0.8176 MB / 430.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009841/0.3234, allocations: 0.7902 MB / 431 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3235, allocations: 80 kB / 431.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002222/0.3257, allocations: 1.221 MB / 432.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002885/0.326, allocations: 307.2 kB / 432.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004212/0.3265, allocations: 465.8 kB / 433.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002178/0.3287, allocations: 1.836 MB / 434.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3287, allocations: 0 / 434.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3287, allocations: 4 kB / 434.9 MB, free: 6.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.3287, allocations: 0 / 434.9 MB, free: 6.535 MB / 350.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.00258/0.3313, allocations: 1.274 MB / 436.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3313, allocations: 8.031 kB / 436.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.3317, allocations: 95.91 kB / 436.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009918/0.3327, allocations: 0.6247 MB / 436.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.3328, allocations: 108.7 kB / 437 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.771e-05/0.3329, allocations: 55.98 kB / 437.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.3343, allocations: 0.8923 MB / 438 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.3343, allocations: 0 / 438 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.973e-05/0.3344, allocations: 27.98 kB / 438 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.91e-05/0.3345, allocations: 45.28 kB / 438 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.3358, allocations: 0.8483 MB / 438.9 MB, free: 2.434 MB / 350.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.005216/0.341, allocations: 3.454 MB / 442.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009812/0.342, allocations: 0.6765 MB / 443 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005205/0.3425, allocations: 374.3 kB / 443.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002759/0.3453, allocations: 2.039 MB / 445.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.3453, allocations: 43.06 kB / 445.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.195e-06/0.3453, allocations: 0 / 445.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006716/0.3521, allocations: 2.824 MB / 448.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.3521, allocations: 85.67 kB / 448.4 MB, free: 8.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007853/0.3529, allocations: 0.6836 MB / 449 MB, free: 7.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.542e-05/0.353, allocations: 37.7 kB / 449.1 MB, free: 7.723 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.3533, allocations: 340.4 kB / 449.4 MB, free: 7.383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.3534, allocations: 228.8 kB / 449.6 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.3537, allocations: 146.6 kB / 449.8 MB, free: 7.008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3538, allocations: 386.8 kB / 450.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005768/0.3544, allocations: 380.6 kB / 450.5 MB, free: 6.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006877/0.3551, allocations: 0.5104 MB / 451 MB, free: 5.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.3564, allocations: 0.8715 MB / 451.9 MB, free: 4.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3564, allocations: 0 / 451.9 MB, free: 4.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002011/0.3584, allocations: 1.165 MB / 453.1 MB, free: 3.566 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3584, allocations: 8 kB / 453.1 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3584, allocations: 4 kB / 453.1 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.3597, allocations: 448.5 kB / 453.5 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/0.3603, allocations: 163.8 kB / 453.7 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.3615, allocations: 1.021 MB / 454.7 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005788/0.3621, allocations: 28.03 kB / 454.7 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.3622, allocations: 35.98 kB / 454.8 MB, free: 1.844 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009039/0.3632, allocations: 0.5331 MB / 455.3 MB, free: 1.305 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007122/0.3639, allocations: 0.5082 MB / 455.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001372/0.3653, allocations: 0.849 MB / 456.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.468e-06/0.3653, allocations: 7.875 kB / 456.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001962/0.3672, allocations: 1.098 MB / 457.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3673, allocations: 11.98 kB / 457.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3673, allocations: 4 kB / 457.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007315/0.368, allocations: 308.9 kB / 458.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006183/0.3687, allocations: 163.8 kB / 458.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.3698, allocations: 0.9151 MB / 459.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005956/0.3704, allocations: 32.03 kB / 459.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.191e-05/0.3705, allocations: 35.98 kB / 459.2 MB, free: 13.22 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.0003046/0.3708, allocations: 220.1 kB / 459.4 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.3709, allocations: 75.06 kB / 459.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002144/0.3731, allocations: 1.099 MB / 460.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.3731, allocations: 8 kB / 460.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3731, allocations: 0 / 460.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.3731, allocations: 7.984 kB / 460.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003245/0.3764, allocations: 2 MB / 462.6 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3764, allocations: 0 / 462.6 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005511/0.377, allocations: 119.8 kB / 462.7 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.3781, allocations: 440.5 kB / 463.2 MB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.038e-05/0.3782, allocations: 15.98 kB / 463.2 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.3795, allocations: 1.032 MB / 464.2 MB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.3796, allocations: 7.938 kB / 464.2 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.3819, allocations: 1.6 MB / 465.8 MB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004539/0.3824, allocations: 240.1 kB / 466.1 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.3825, allocations: 16 kB / 466.1 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005263/0.383, allocations: 35.97 kB / 466.1 MB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.3832, allocations: 60.45 kB / 466.2 MB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.74e-05/0.3832, allocations: 27.98 kB / 466.2 MB, free: 6.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005689/0.3838, allocations: 479 kB / 466.7 MB, free: 5.629 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3838, allocations: 0 / 466.7 MB, free: 5.629 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001481/0.3853, allocations: 0.5895 MB / 467.3 MB, free: 5.039 MB / 382.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.001142/0.3864, allocations: 486.5 kB / 467.7 MB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002974/0.3894, allocations: 1.404 MB / 469.1 MB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3895, allocations: 0 / 469.1 MB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3905, allocations: 467.8 kB / 469.6 MB, free: 2.691 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.3923, allocations: 391.9 kB / 470 MB, free: 2.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/0.3959, allocations: 1.728 MB / 471.7 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006073/0.3965, allocations: 0.9911 MB / 472.7 MB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.3975, allocations: 306.5 kB / 473 MB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.3977, allocations: 83.34 kB / 473.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.425e-06/0.3977, allocations: 0 / 473.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of Templates: time 0.0394/0.4371, allocations: 23.55 MB / 496.6 MB, free: 7.789 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches