Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001179/0.001179, allocations: 113.1 kB / 17.28 MB, free: 6.219 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.001143/0.001144, allocations: 193.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 55.91 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1285, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01999/0.1485, allocations: 16.64 MB / 343.4 MB, free: 4.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.1606, allocations: 7.002 MB / 350.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001438/0.1621, allocations: 31.75 kB / 350.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.1633, allocations: 290.4 kB / 350.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003039/0.1663, allocations: 0.9957 MB / 351.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005274/0.1716, allocations: 1.638 MB / 353.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003401/0.175, allocations: 2.163 MB / 355.5 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/0.1761, allocations: 0.6074 MB / 356.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001563/0.1777, allocations: 0.798 MB / 356.9 MB, free: 6.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001255/0.179, allocations: 0.833 MB / 357.8 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001555/0.1791, allocations: 80 kB / 357.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.1817, allocations: 1.213 MB / 359.1 MB, free: 4.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004075/0.1821, allocations: 311.2 kB / 359.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006256/0.1828, allocations: 461.9 kB / 359.8 MB, free: 3.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003741/0.1865, allocations: 1.831 MB / 361.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1865, allocations: 0 / 361.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1866, allocations: 0 / 361.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.1866, allocations: 0 / 361.6 MB, free: 1.793 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.003321/0.1899, allocations: 1.262 MB / 362.9 MB, free: 488 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.19, allocations: 12.03 kB / 362.9 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000375/0.1904, allocations: 88 kB / 363 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.1916, allocations: 0.5973 MB / 363.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.1918, allocations: 112.7 kB / 363.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.1919, allocations: 55.98 kB / 363.8 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.1935, allocations: 0.8962 MB / 364.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.1936, allocations: 0 / 364.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.039e-05/0.1937, allocations: 19.98 kB / 364.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.419e-05/0.1937, allocations: 57.22 kB / 364.7 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.1953, allocations: 0.8482 MB / 365.6 MB, free: 13.71 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.006753/0.202, allocations: 3.446 MB / 369 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.2032, allocations: 0.6647 MB / 369.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005827/0.2038, allocations: 366.3 kB / 370.1 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003591/0.2074, allocations: 2.043 MB / 372.1 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.2075, allocations: 47.12 kB / 372.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.435e-06/0.2075, allocations: 0 / 372.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007597/0.2151, allocations: 2.824 MB / 375 MB, free: 3.859 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/0.2153, allocations: 85.67 kB / 375.1 MB, free: 3.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.2164, allocations: 0.6837 MB / 375.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.711e-05/0.2165, allocations: 41.7 kB / 375.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004829/0.217, allocations: 336.4 kB / 376.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002868/0.2173, allocations: 232.7 kB / 376.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002975/0.2176, allocations: 146.6 kB / 376.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002915/0.2179, allocations: 386.8 kB / 376.9 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006692/0.2186, allocations: 368.6 kB / 377.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008264/0.2194, allocations: 0.5191 MB / 377.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.2208, allocations: 0.8716 MB / 378.6 MB, free: 44 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.2208, allocations: 0 / 378.6 MB, free: 44 kB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.1796/0.4004, allocations: 1.15 MB / 379.8 MB, free: 55.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.4005, allocations: 10.7 kB / 379.8 MB, free: 55.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.4005, allocations: 7.125 kB / 379.8 MB, free: 55.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.4019, allocations: 454.9 kB / 380.2 MB, free: 55.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000738/0.4027, allocations: 159.9 kB / 380.4 MB, free: 55.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.4039, allocations: 1.023 MB / 381.4 MB, free: 54.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007313/0.4046, allocations: 36.36 kB / 381.4 MB, free: 54.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.623e-05/0.4047, allocations: 37.09 kB / 381.5 MB, free: 54.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008188/0.4055, allocations: 0.5325 MB / 382 MB, free: 54.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006533/0.4062, allocations: 0.5102 MB / 382.5 MB, free: 54.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001125/0.4073, allocations: 0.8469 MB / 383.4 MB, free: 53.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.919e-06/0.4074, allocations: 2.625 kB / 383.4 MB, free: 53.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001812/0.4092, allocations: 1.101 MB / 384.5 MB, free: 53.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.4092, allocations: 7.312 kB / 384.5 MB, free: 53.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.4092, allocations: 7 kB / 384.5 MB, free: 53.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007247/0.4099, allocations: 308.4 kB / 384.8 MB, free: 53.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/0.4106, allocations: 170.9 kB / 384.9 MB, free: 53.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009426/0.4116, allocations: 0.9041 MB / 385.8 MB, free: 52.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.4122, allocations: 48.33 kB / 385.9 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-05/0.4123, allocations: 35.45 kB / 385.9 MB, free: 52.39 MB / 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.0002662/0.4126, allocations: 224.1 kB / 386.1 MB, free: 52.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.4127, allocations: 81.56 kB / 386.2 MB, free: 52.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.4148, allocations: 1.091 MB / 387.3 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.4148, allocations: 8.062 kB / 387.3 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.4148, allocations: 3.938 kB / 387.3 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4148, allocations: 3.609 kB / 387.3 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003112/0.418, allocations: 2.009 MB / 389.3 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.418, allocations: 0 / 389.3 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006032/0.4186, allocations: 116.8 kB / 389.5 MB, free: 50.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001216/0.4198, allocations: 445.5 kB / 389.9 MB, free: 50.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.676e-05/0.4199, allocations: 15.98 kB / 389.9 MB, free: 50.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.421, allocations: 1.034 MB / 390.9 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.421, allocations: 5 kB / 390.9 MB, free: 50.03 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.4231, allocations: 1.594 MB / 392.5 MB, free: 49.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000347/0.4234, allocations: 242.2 kB / 392.8 MB, free: 49.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.4236, allocations: 15.72 kB / 392.8 MB, free: 49.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.4241, allocations: 42.8 kB / 392.8 MB, free: 49.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.4243, allocations: 57.23 kB / 392.9 MB, free: 49.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-05/0.4244, allocations: 25.52 kB / 392.9 MB, free: 49.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006699/0.4251, allocations: 489.7 kB / 393.4 MB, free: 48.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4251, allocations: 0.875 kB / 393.4 MB, free: 48.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001908/0.427, allocations: 0.5871 MB / 394 MB, free: 48.85 MB / 318.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.001145/0.4281, allocations: 486.5 kB / 394.5 MB, free: 48.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003218/0.4314, allocations: 1.554 MB / 396 MB, free: 48.17 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.4314, allocations: 5.344 kB / 396 MB, free: 48.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008918/0.4323, allocations: 473.4 kB / 396.5 MB, free: 47.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.4339, allocations: 394.2 kB / 396.9 MB, free: 47.76 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.4368, allocations: 1.986 MB / 398.9 MB, free: 46.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.4371, allocations: 1.007 MB / 399.9 MB, free: 45.26 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.4382, allocations: 302.5 kB / 400.2 MB, free: 44.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.4384, allocations: 71.41 kB / 400.2 MB, free: 44.89 MB / 318.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4384, allocations: 0 / 400.2 MB, free: 44.89 MB / 318.1 MB Notification: Performance of Templates: time 0.02975/0.4682, allocations: 22.8 MB / 423 MB, free: 22.08 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches