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.001134/0.001134, allocations: 109.4 kB / 18.36 MB, free: 4.637 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.001068/0.001068, allocations: 192 kB / 19.29 MB, free: 3.715 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.426/1.426, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001194/0.001194, allocations: 47.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09269, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.017/0.1097, allocations: 15.86 MB / 344.6 MB, free: 3.828 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009722/0.1195, allocations: 6.854 MB / 351.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008865/0.1204, allocations: 19.88 kB / 351.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009583/0.1215, allocations: 326 kB / 351.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002626/0.1241, allocations: 1.069 MB / 352.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004789/0.1289, allocations: 1.8 MB / 354.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003636/0.1326, allocations: 2.144 MB / 356.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001019/0.1336, allocations: 0.5957 MB / 357.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00126/0.1349, allocations: 0.802 MB / 358.2 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.1359, allocations: 0.7902 MB / 359 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.1361, allocations: 80 kB / 359.1 MB, free: 5.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003244/0.1393, allocations: 1.221 MB / 360.3 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003712/0.1397, allocations: 315.2 kB / 360.6 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005349/0.1402, allocations: 457.9 kB / 361 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002961/0.1432, allocations: 1.839 MB / 362.9 MB, free: 1.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1432, allocations: 0 / 362.9 MB, free: 1.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1432, allocations: 4 kB / 362.9 MB, free: 1.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.1433, allocations: 0 / 362.9 MB, free: 1.477 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.002775/0.1461, allocations: 1.266 MB / 364.1 MB, free: 160 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1461, allocations: 8.031 kB / 364.1 MB, free: 152 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003334/0.1464, allocations: 99.84 kB / 364.2 MB, free: 52 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.1475, allocations: 0.6284 MB / 364.9 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.1476, allocations: 104.7 kB / 365 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1478, allocations: 55.98 kB / 365 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.1492, allocations: 0.8962 MB / 365.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.1492, allocations: 0 / 365.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.679e-05/0.1493, allocations: 27.97 kB / 365.9 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-05/0.1494, allocations: 49.28 kB / 366 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.1507, allocations: 0.8482 MB / 366.8 MB, free: 13.37 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.005512/0.1562, allocations: 3.443 MB / 370.3 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.1572, allocations: 0.6686 MB / 371 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005308/0.1578, allocations: 366.3 kB / 371.3 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002808/0.1606, allocations: 2.039 MB / 373.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.1606, allocations: 43.12 kB / 373.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.424e-06/0.1607, allocations: 0 / 373.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.00669/0.1674, allocations: 2.836 MB / 376.2 MB, free: 3.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.1674, allocations: 85.67 kB / 376.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000807/0.1682, allocations: 0.676 MB / 377 MB, free: 2.723 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.738e-05/0.1683, allocations: 41.7 kB / 377 MB, free: 2.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000256/0.1686, allocations: 340.4 kB / 377.4 MB, free: 2.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.1688, allocations: 232.7 kB / 377.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00025/0.1691, allocations: 146.6 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1692, allocations: 386.8 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000573/0.1698, allocations: 368.6 kB / 378.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007123/0.1705, allocations: 0.5191 MB / 379 MB, free: 0.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1791/0.3497, allocations: 0.8636 MB / 379.9 MB, free: 54.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.3497, allocations: 1.375 kB / 379.9 MB, free: 54.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002515/0.3522, allocations: 1.152 MB / 381 MB, free: 54.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.3523, allocations: 6.969 kB / 381 MB, free: 54.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.3523, allocations: 4.312 kB / 381 MB, free: 54.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/0.354, allocations: 456.5 kB / 381.5 MB, free: 54.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007191/0.3547, allocations: 160.1 kB / 381.6 MB, free: 54.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.3558, allocations: 1.019 MB / 382.6 MB, free: 53.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006155/0.3565, allocations: 29.55 kB / 382.7 MB, free: 53.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.013e-05/0.3565, allocations: 37.02 kB / 382.7 MB, free: 53.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008653/0.3574, allocations: 0.5318 MB / 383.2 MB, free: 53.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000767/0.3582, allocations: 0.5139 MB / 383.8 MB, free: 53.42 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001283/0.3595, allocations: 0.8533 MB / 384.6 MB, free: 52.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.99e-06/0.3595, allocations: 1.406 kB / 384.6 MB, free: 52.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001836/0.3613, allocations: 1.108 MB / 385.7 MB, free: 52.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3614, allocations: 6.062 kB / 385.7 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3614, allocations: 5.844 kB / 385.7 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007237/0.3621, allocations: 305.6 kB / 386 MB, free: 52.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006705/0.3628, allocations: 171.4 kB / 386.2 MB, free: 52.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009688/0.3638, allocations: 0.9027 MB / 387.1 MB, free: 51.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006185/0.3644, allocations: 31.77 kB / 387.1 MB, free: 51.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-05/0.3645, allocations: 35.12 kB / 387.2 MB, free: 51.8 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.0003013/0.3648, allocations: 225.2 kB / 387.4 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.365, allocations: 78.16 kB / 387.5 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.3672, allocations: 1.098 MB / 388.6 MB, free: 51.15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.3672, allocations: 11.19 kB / 388.6 MB, free: 51.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3672, allocations: 4.281 kB / 388.6 MB, free: 51.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3672, allocations: 4.875 kB / 388.6 MB, free: 51.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.3703, allocations: 1.993 MB / 390.6 MB, free: 50.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3703, allocations: 1.062 kB / 390.6 MB, free: 50.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006065/0.3709, allocations: 117.1 kB / 390.7 MB, free: 50.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.3721, allocations: 444.4 kB / 391.1 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.512e-05/0.3722, allocations: 15.86 kB / 391.1 MB, free: 50.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.3732, allocations: 1.03 MB / 392.2 MB, free: 49.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3732, allocations: 1.031 kB / 392.2 MB, free: 49.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002169/0.3754, allocations: 1.602 MB / 393.8 MB, free: 48.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003908/0.3758, allocations: 248.4 kB / 394 MB, free: 48.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.3759, allocations: 10.75 kB / 394 MB, free: 48.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005503/0.3765, allocations: 35.67 kB / 394.1 MB, free: 48.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.3767, allocations: 54.7 kB / 394.1 MB, free: 48.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.482e-05/0.3767, allocations: 31.95 kB / 394.1 MB, free: 48.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000567/0.3773, allocations: 486.6 kB / 394.6 MB, free: 48.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3773, allocations: 0 / 394.6 MB, free: 48.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001634/0.379, allocations: 0.5816 MB / 395.2 MB, free: 48.25 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.0008871/0.3799, allocations: 491.5 kB / 395.7 MB, free: 48.1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002492/0.3824, allocations: 1.4 MB / 397.1 MB, free: 47.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3824, allocations: 3.531 kB / 397.1 MB, free: 47.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008205/0.3832, allocations: 468.5 kB / 397.5 MB, free: 47.31 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.3846, allocations: 399.8 kB / 397.9 MB, free: 47.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.3874, allocations: 1.725 MB / 399.7 MB, free: 46.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.3877, allocations: 0.9933 MB / 400.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007795/0.3885, allocations: 306.5 kB / 400.9 MB, free: 44.94 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.3887, allocations: 71.42 kB / 401 MB, free: 44.87 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3887, allocations: 0 / 401 MB, free: 44.87 MB / 318.1 MB Notification: Performance of Templates: time 0.02679/0.4155, allocations: 22.93 MB / 423.9 MB, free: 21.94 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches