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.0009027/0.0009025, allocations: 96.31 kB / 17.3 MB, free: 6.023 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.001085/0.001085, allocations: 171.6 kB / 18.2 MB, free: 5.418 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.519/1.519, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005806/0.0005807, allocations: 10.97 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.123, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02006/0.1431, allocations: 16.12 MB / 345.1 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.1553, allocations: 7.089 MB / 352.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.1567, allocations: 39.62 kB / 352.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.1578, allocations: 286.5 kB / 352.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003186/0.161, allocations: 1.011 MB / 353.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004488/0.1655, allocations: 1.5 MB / 355 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004602/0.1701, allocations: 3.185 MB / 358.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009452/0.1711, allocations: 0.5296 MB / 358.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.1725, allocations: 0.681 MB / 359.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.1737, allocations: 0.794 MB / 360.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.1738, allocations: 44 kB / 360.2 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002671/0.1765, allocations: 1.193 MB / 361.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003694/0.1769, allocations: 279.2 kB / 361.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005675/0.1774, allocations: 451.5 kB / 362.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002617/0.1801, allocations: 1.776 MB / 363.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1801, allocations: 0 / 363.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.1801, allocations: 0 / 363.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1801, allocations: 0 / 363.9 MB, free: 0.6758 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.002538/0.1826, allocations: 1.11 MB / 365 MB, free: 15.51 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.1827, allocations: 8.031 kB / 365 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003222/0.183, allocations: 96 kB / 365.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009274/0.184, allocations: 0.5931 MB / 365.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.1841, allocations: 104.7 kB / 365.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.1842, allocations: 55.98 kB / 365.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.1858, allocations: 0.8923 MB / 366.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.1858, allocations: 4 kB / 366.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.082e-05/0.1859, allocations: 23.98 kB / 366.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.507e-05/0.186, allocations: 57.22 kB / 366.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.1874, allocations: 0.8481 MB / 367.7 MB, free: 12.75 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.005881/0.1933, allocations: 3.462 MB / 371.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.1943, allocations: 0.6685 MB / 371.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005419/0.1949, allocations: 362.3 kB / 372.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003209/0.1981, allocations: 2.062 MB / 374.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.1981, allocations: 39.12 kB / 374.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.1982, allocations: 0 / 374.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007824/0.206, allocations: 2.867 MB / 377.1 MB, free: 2.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/0.2061, allocations: 89.61 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009029/0.207, allocations: 0.6682 MB / 377.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.73e-05/0.2071, allocations: 41.7 kB / 377.9 MB, free: 2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.2074, allocations: 336.4 kB / 378.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.2076, allocations: 236.7 kB / 378.5 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.2077, allocations: 65.69 kB / 378.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0004051/0.2081, allocations: 386.8 kB / 378.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008873/0.209, allocations: 361.8 kB / 379.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00072/0.2097, allocations: 0.5191 MB / 379.8 MB, free: 44 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1867/0.3965, allocations: 0.8644 MB / 380.7 MB, free: 54.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.3965, allocations: 0.7188 kB / 380.7 MB, free: 54.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002589/0.3991, allocations: 1.161 MB / 381.8 MB, free: 53.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.3993, allocations: 219.7 kB / 382.1 MB, free: 53.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.3993, allocations: 6.281 kB / 382.1 MB, free: 53.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.4007, allocations: 450 kB / 382.5 MB, free: 53.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006559/0.4014, allocations: 161.4 kB / 382.7 MB, free: 53.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.4025, allocations: 1.019 MB / 383.7 MB, free: 53.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006777/0.4032, allocations: 43.53 kB / 383.7 MB, free: 53.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.287e-05/0.4033, allocations: 33.98 kB / 383.8 MB, free: 53.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.4033, allocations: 3.781 kB / 383.8 MB, free: 53.16 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001805/0.4052, allocations: 1.009 MB / 384.8 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.4052, allocations: 4.438 kB / 384.8 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007271/0.4059, allocations: 312.1 kB / 385.1 MB, free: 52.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006498/0.4066, allocations: 175.3 kB / 385.2 MB, free: 52.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009045/0.4075, allocations: 0.9001 MB / 386.1 MB, free: 52.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000631/0.4081, allocations: 43.91 kB / 386.2 MB, free: 52.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-05/0.4082, allocations: 33.94 kB / 386.2 MB, free: 52.05 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.0004887/0.4087, allocations: 330.3 kB / 386.5 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.4089, allocations: 85.61 kB / 386.6 MB, free: 51.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002051/0.4109, allocations: 1.09 MB / 387.7 MB, free: 51.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.4109, allocations: 7.062 kB / 387.7 MB, free: 51.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.411, allocations: 0 / 387.7 MB, free: 51.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.411, allocations: 5.469 kB / 387.7 MB, free: 51.35 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.4143, allocations: 2.011 MB / 389.7 MB, free: 50.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.4143, allocations: 0 / 389.7 MB, free: 50.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005923/0.4149, allocations: 116.6 kB / 389.9 MB, free: 50.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.4162, allocations: 457.2 kB / 390.3 MB, free: 50.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-05/0.4163, allocations: 24.22 kB / 390.3 MB, free: 50.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.4174, allocations: 1.026 MB / 391.4 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4174, allocations: 0.9375 kB / 391.4 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.4196, allocations: 1.602 MB / 393 MB, free: 48.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003758/0.42, allocations: 248.5 kB / 393.2 MB, free: 48.78 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.4201, allocations: 10.34 kB / 393.2 MB, free: 48.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005696/0.4207, allocations: 55.53 kB / 393.3 MB, free: 48.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.4208, allocations: 52.03 kB / 393.3 MB, free: 48.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.298e-05/0.4209, allocations: 28.78 kB / 393.3 MB, free: 48.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005658/0.4215, allocations: 484.2 kB / 393.8 MB, free: 48.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4215, allocations: 3.938 kB / 393.8 MB, free: 48.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001544/0.423, allocations: 0.5783 MB / 394.4 MB, free: 48.49 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.001022/0.4241, allocations: 478.2 kB / 394.9 MB, free: 48.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002585/0.4267, allocations: 1.4 MB / 396.3 MB, free: 47.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.4267, allocations: 0 / 396.3 MB, free: 47.85 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008367/0.4275, allocations: 468.1 kB / 396.7 MB, free: 47.63 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.4294, allocations: 363.2 kB / 397.1 MB, free: 47.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/0.4325, allocations: 2.114 MB / 399.2 MB, free: 46.03 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.4329, allocations: 0.9974 MB / 400.2 MB, free: 45.19 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.4341, allocations: 303.3 kB / 400.5 MB, free: 45.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.4343, allocations: 80.59 kB / 400.6 MB, free: 45.02 MB / 318.1 MB Notification: Performance of SimCode: time 2.244e-06/0.4343, allocations: 0 / 400.6 MB, free: 45.02 MB / 318.1 MB Notification: Performance of Templates: time 0.02901/0.4633, allocations: 21.72 MB / 422.3 MB, free: 23.38 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