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.001474/0.001475, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001491/0.001491, allocations: 191 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.376/1.376, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.00136/0.00136, allocations: 47.94 kB / 282.1 MB, free: 2.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.09628, allocations: 46.63 MB / 328.7 MB, free: 3.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01613/0.1125, allocations: 15.85 MB / 344.6 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009655/0.1221, allocations: 6.854 MB / 351.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008949/0.1231, allocations: 27.81 kB / 351.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009661/0.1241, allocations: 330 kB / 351.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002381/0.1265, allocations: 1.065 MB / 352.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004337/0.1309, allocations: 1.792 MB / 354.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00255/0.1334, allocations: 2.148 MB / 356.8 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007441/0.1342, allocations: 0.6035 MB / 357.4 MB, free: 7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.1352, allocations: 0.7942 MB / 358.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009841/0.1362, allocations: 0.798 MB / 359 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001289/0.1363, allocations: 80 kB / 359.1 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.1386, allocations: 1.213 MB / 360.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003082/0.1389, allocations: 315.2 kB / 360.6 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004521/0.1394, allocations: 457.8 kB / 361 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002185/0.1416, allocations: 1.839 MB / 362.9 MB, free: 1.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1416, allocations: 4 kB / 362.9 MB, free: 1.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1416, allocations: 4 kB / 362.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1416, allocations: 0 / 362.9 MB, free: 1.5 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.002599/0.1442, allocations: 1.258 MB / 364.1 MB, free: 192 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1443, allocations: 8.031 kB / 364.1 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003404/0.1446, allocations: 99.89 kB / 364.2 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.1457, allocations: 0.6322 MB / 364.9 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.1458, allocations: 104.7 kB / 365 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.1459, allocations: 47.98 kB / 365 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.1473, allocations: 0.9001 MB / 365.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.1474, allocations: 4 kB / 365.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.297e-05/0.1475, allocations: 23.98 kB / 365.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.601e-05/0.1475, allocations: 53.27 kB / 366 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.1489, allocations: 0.8405 MB / 366.8 MB, free: 13.4 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.005539/0.1545, allocations: 3.454 MB / 370.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.1555, allocations: 0.6569 MB / 370.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000544/0.1561, allocations: 366.3 kB / 371.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00285/0.159, allocations: 2.043 MB / 373.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.716e-05/0.1591, allocations: 43.11 kB / 373.4 MB, free: 6.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.235e-06/0.1591, allocations: 0 / 373.4 MB, free: 6.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006973/0.166, allocations: 2.836 MB / 376.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.1661, allocations: 93.59 kB / 376.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009246/0.1671, allocations: 0.676 MB / 377 MB, free: 2.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.456e-05/0.1671, allocations: 37.7 kB / 377 MB, free: 2.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.1674, allocations: 344.4 kB / 377.4 MB, free: 2.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.1676, allocations: 228.6 kB / 377.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.1679, allocations: 150.6 kB / 377.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1681, allocations: 386.8 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006077/0.1687, allocations: 368.6 kB / 378.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007624/0.1695, allocations: 0.5191 MB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.151/0.3205, allocations: 0.8583 MB / 379.9 MB, free: 54.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.3206, allocations: 1.844 kB / 379.9 MB, free: 54.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002422/0.323, allocations: 1.159 MB / 381 MB, free: 54.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.323, allocations: 7 kB / 381 MB, free: 54.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.3231, allocations: 4.156 kB / 381 MB, free: 54.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.3245, allocations: 451.4 kB / 381.5 MB, free: 54.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007292/0.3253, allocations: 157.6 kB / 381.6 MB, free: 54.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.3264, allocations: 1.026 MB / 382.6 MB, free: 54.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006372/0.327, allocations: 28.38 kB / 382.7 MB, free: 54.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.957e-05/0.3271, allocations: 32.98 kB / 382.7 MB, free: 54.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008247/0.3279, allocations: 0.5307 MB / 383.2 MB, free: 53.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006505/0.3286, allocations: 0.5162 MB / 383.8 MB, free: 53.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001195/0.3298, allocations: 0.849 MB / 384.6 MB, free: 52.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.027e-06/0.3298, allocations: 1.125 kB / 384.6 MB, free: 52.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001909/0.3317, allocations: 1.101 MB / 385.7 MB, free: 52.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.3318, allocations: 7.031 kB / 385.7 MB, free: 52.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3318, allocations: 4.281 kB / 385.7 MB, free: 52.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007483/0.3325, allocations: 312.4 kB / 386 MB, free: 52.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006992/0.3332, allocations: 170.6 kB / 386.2 MB, free: 52.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009361/0.3342, allocations: 0.9056 MB / 387.1 MB, free: 51.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000598/0.3348, allocations: 35.28 kB / 387.1 MB, free: 51.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-05/0.3349, allocations: 37.17 kB / 387.2 MB, free: 51.84 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.0002281/0.3351, allocations: 225.4 kB / 387.4 MB, free: 51.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.3353, allocations: 79.08 kB / 387.5 MB, free: 51.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.3373, allocations: 1.09 MB / 388.6 MB, free: 51.2 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.3373, allocations: 10.98 kB / 388.6 MB, free: 51.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3373, allocations: 0 / 388.6 MB, free: 51.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.3373, allocations: 5.078 kB / 388.6 MB, free: 51.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003172/0.3405, allocations: 1.995 MB / 390.6 MB, free: 50.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3405, allocations: 1.031 kB / 390.6 MB, free: 50.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006104/0.3411, allocations: 120.9 kB / 390.7 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/0.3424, allocations: 444.4 kB / 391.1 MB, free: 50.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-05/0.3424, allocations: 20.58 kB / 391.1 MB, free: 50.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.3435, allocations: 1.024 MB / 392.2 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3435, allocations: 1.062 kB / 392.2 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.3458, allocations: 1.605 MB / 393.8 MB, free: 48.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004693/0.3463, allocations: 244.3 kB / 394 MB, free: 48.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.3464, allocations: 22.44 kB / 394 MB, free: 48.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005454/0.347, allocations: 30.31 kB / 394.1 MB, free: 48.56 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.3471, allocations: 58.19 kB / 394.1 MB, free: 48.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-05/0.3472, allocations: 32.7 kB / 394.1 MB, free: 48.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005344/0.3477, allocations: 479.1 kB / 394.6 MB, free: 48.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3477, allocations: 1.219 kB / 394.6 MB, free: 48.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001485/0.3492, allocations: 0.5881 MB / 395.2 MB, free: 48.29 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.0009137/0.3501, allocations: 478.8 kB / 395.7 MB, free: 48.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.3526, allocations: 1.405 MB / 397.1 MB, free: 47.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3526, allocations: 3.938 kB / 397.1 MB, free: 47.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008377/0.3535, allocations: 474.9 kB / 397.5 MB, free: 47.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.3549, allocations: 393.2 kB / 397.9 MB, free: 47.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.3577, allocations: 1.732 MB / 399.7 MB, free: 46.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.3581, allocations: 0.9892 MB / 400.6 MB, free: 45.28 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008014/0.3589, allocations: 310.7 kB / 400.9 MB, free: 45.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.3591, allocations: 75.41 kB / 401 MB, free: 44.94 MB / 318.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3591, allocations: 0 / 401 MB, free: 44.94 MB / 318.1 MB Notification: Performance of Templates: time 0.0275/0.3866, allocations: 22.93 MB / 423.9 MB, free: 22.01 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 cvode -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