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.001339/0.00134, allocations: 104.4 kB / 17.15 MB, free: 6.309 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.001201/0.001202, allocations: 198 kB / 18.07 MB, free: 5.41 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.508/1.508, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.001277/0.001277, allocations: 51.92 kB / 280 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1102, allocations: 46.64 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01618/0.1264, allocations: 16.67 MB / 343.3 MB, free: 4.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.1368, allocations: 7.202 MB / 350.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.1379, allocations: 35.69 kB / 350.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009802/0.1389, allocations: 290.5 kB / 350.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.1416, allocations: 1.007 MB / 351.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003984/0.1456, allocations: 1.512 MB / 353.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003391/0.149, allocations: 3.185 MB / 356.5 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007152/0.1497, allocations: 0.5295 MB / 357 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001107/0.1509, allocations: 0.6888 MB / 357.7 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.152, allocations: 0.8057 MB / 358.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.1521, allocations: 51.88 kB / 358.6 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.1547, allocations: 1.19 MB / 359.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003311/0.155, allocations: 283.2 kB / 360 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004909/0.1555, allocations: 425.9 kB / 360.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002412/0.1579, allocations: 1.792 MB / 362.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.158, allocations: 7.984 kB / 362.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.158, allocations: 0 / 362.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.158, allocations: 0 / 362.2 MB, free: 1.109 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.002593/0.1606, allocations: 1.262 MB / 363.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1606, allocations: 12.03 kB / 363.5 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.1609, allocations: 91.98 kB / 363.6 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008246/0.1618, allocations: 0.5932 MB / 364.2 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.1619, allocations: 104.7 kB / 364.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.162, allocations: 55.98 kB / 364.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.1634, allocations: 0.9001 MB / 365.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.1635, allocations: 0 / 365.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-05/0.1636, allocations: 19.98 kB / 365.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.758e-05/0.1636, allocations: 61.2 kB / 365.3 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.165, allocations: 0.8404 MB / 366.2 MB, free: 13.04 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.005252/0.1702, allocations: 3.443 MB / 369.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009839/0.1712, allocations: 0.6685 MB / 370.3 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005189/0.1718, allocations: 366.3 kB / 370.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002744/0.1745, allocations: 2.043 MB / 372.7 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.1746, allocations: 43.11 kB / 372.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.903e-06/0.1746, allocations: 0 / 372.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006883/0.1815, allocations: 2.832 MB / 375.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.1815, allocations: 89.67 kB / 375.7 MB, free: 3.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007842/0.1823, allocations: 0.6759 MB / 376.3 MB, free: 2.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.962e-05/0.1824, allocations: 41.7 kB / 376.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/0.1826, allocations: 332.4 kB / 376.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.1828, allocations: 232.7 kB / 376.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002413/0.1831, allocations: 150.5 kB / 377.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1832, allocations: 386.8 kB / 377.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005799/0.1838, allocations: 372.6 kB / 377.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006673/0.1845, allocations: 0.5191 MB / 378.3 MB, free: 304 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2547/0.4392, allocations: 0.8594 MB / 379.2 MB, free: 54.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.4392, allocations: 4.656 kB / 379.2 MB, free: 54.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00289/0.4421, allocations: 1.16 MB / 380.4 MB, free: 54.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.4422, allocations: 10.75 kB / 380.4 MB, free: 54.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.4422, allocations: 4.188 kB / 380.4 MB, free: 54.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/0.4439, allocations: 455.1 kB / 380.8 MB, free: 54.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007783/0.4447, allocations: 158.9 kB / 381 MB, free: 54.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.4462, allocations: 1.019 MB / 382 MB, free: 54.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007703/0.447, allocations: 40.81 kB / 382 MB, free: 54.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.311e-05/0.4471, allocations: 32.39 kB / 382.1 MB, free: 54.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009566/0.448, allocations: 0.5314 MB / 382.6 MB, free: 53.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000775/0.4488, allocations: 0.5159 MB / 383.1 MB, free: 53.49 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001356/0.4502, allocations: 0.8459 MB / 384 MB, free: 53.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.837e-06/0.4502, allocations: 1.031 kB / 384 MB, free: 53.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.00211/0.4523, allocations: 1.104 MB / 385.1 MB, free: 52.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.4523, allocations: 6.812 kB / 385.1 MB, free: 52.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.4524, allocations: 8.781 kB / 385.1 MB, free: 52.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008486/0.4532, allocations: 305.5 kB / 385.4 MB, free: 52.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007232/0.4539, allocations: 171.8 kB / 385.5 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/0.455, allocations: 0.8986 MB / 386.4 MB, free: 51.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007364/0.4558, allocations: 52.03 kB / 386.5 MB, free: 51.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/0.4559, allocations: 31.56 kB / 386.5 MB, free: 51.88 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.0003846/0.4563, allocations: 232.8 kB / 386.7 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.4565, allocations: 77.34 kB / 386.8 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002501/0.459, allocations: 1.088 MB / 387.9 MB, free: 51.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.459, allocations: 11.3 kB / 387.9 MB, free: 51.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.459, allocations: 0 / 387.9 MB, free: 51.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.459, allocations: 8.594 kB / 387.9 MB, free: 51.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003513/0.4625, allocations: 2.006 MB / 389.9 MB, free: 50.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4626, allocations: 1.719 kB / 389.9 MB, free: 50.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005946/0.4632, allocations: 116.1 kB / 390.1 MB, free: 50.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001354/0.4645, allocations: 456.2 kB / 390.5 MB, free: 50.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-05/0.4646, allocations: 21.72 kB / 390.5 MB, free: 50.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.4657, allocations: 1.031 MB / 391.5 MB, free: 49.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.4658, allocations: 1.031 kB / 391.5 MB, free: 49.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.4681, allocations: 1.6 MB / 393.1 MB, free: 48.81 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003799/0.4684, allocations: 238.8 kB / 393.4 MB, free: 48.63 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.4686, allocations: 12.06 kB / 393.4 MB, free: 48.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005869/0.4692, allocations: 43.56 kB / 393.4 MB, free: 48.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.4693, allocations: 63.59 kB / 393.5 MB, free: 48.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.218e-05/0.4694, allocations: 32.25 kB / 393.5 MB, free: 48.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006312/0.47, allocations: 479.2 kB / 394 MB, free: 48.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.47, allocations: 0 / 394 MB, free: 48.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001777/0.4718, allocations: 0.5858 MB / 394.6 MB, free: 48.34 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.001006/0.4728, allocations: 481.1 kB / 395.1 MB, free: 48.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002734/0.4756, allocations: 1.397 MB / 396.5 MB, free: 47.58 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.4756, allocations: 3.312 kB / 396.5 MB, free: 47.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008708/0.4765, allocations: 463.8 kB / 396.9 MB, free: 47.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.4781, allocations: 371.7 kB / 397.3 MB, free: 47.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.4816, allocations: 1.991 MB / 399.3 MB, free: 45.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.4819, allocations: 0.9913 MB / 400.3 MB, free: 44.74 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001044/0.483, allocations: 312.9 kB / 400.6 MB, free: 44.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.4832, allocations: 75.41 kB / 400.6 MB, free: 44.36 MB / 318.1 MB Notification: Performance of SimCode: time 2.074e-06/0.4832, allocations: 3.609 kB / 400.6 MB, free: 44.36 MB / 318.1 MB Notification: Performance of Templates: time 0.02914/0.5123, allocations: 21.91 MB / 422.5 MB, free: 22.44 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