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.001451/0.001451, allocations: 108.7 kB / 17.93 MB, free: 5.422 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.001312/0.001312, allocations: 189.8 kB / 18.86 MB, free: 4.5 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.413/1.413, allocations: 205.1 MB / 224.7 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.001181/0.001181, allocations: 47.92 kB / 280.8 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09943/0.1006, allocations: 46.62 MB / 327.4 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01769/0.1184, allocations: 16.65 MB / 344.1 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1286, allocations: 6.991 MB / 351.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.1299, allocations: 31.75 kB / 351.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.131, allocations: 294.4 kB / 351.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002776/0.1338, allocations: 0.9957 MB / 352.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004413/0.1382, allocations: 1.646 MB / 354 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002902/0.1411, allocations: 2.155 MB / 356.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008838/0.142, allocations: 0.6035 MB / 356.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.1433, allocations: 0.798 MB / 357.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.1445, allocations: 0.833 MB / 358.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001434/0.1446, allocations: 80 kB / 358.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002697/0.1473, allocations: 1.217 MB / 359.7 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003551/0.1477, allocations: 319.1 kB / 360 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005495/0.1483, allocations: 465.9 kB / 360.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002094/0.1504, allocations: 1.329 MB / 361.8 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1504, allocations: 3.938 kB / 361.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1504, allocations: 0 / 361.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.1504, allocations: 0 / 361.8 MB, free: 2.277 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.002796/0.1532, allocations: 1.258 MB / 363.1 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.1533, allocations: 8.031 kB / 363.1 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000325/0.1536, allocations: 96 kB / 363.2 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008635/0.1545, allocations: 0.601 MB / 363.8 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.1546, allocations: 108.7 kB / 363.9 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-05/0.1547, allocations: 51.98 kB / 363.9 MB, free: 52 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1562, allocations: 0.8962 MB / 364.8 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1562, allocations: 4 kB / 364.8 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.071e-05/0.1563, allocations: 23.98 kB / 364.9 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-05/0.1564, allocations: 53.28 kB / 364.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.1578, allocations: 0.8405 MB / 365.7 MB, free: 14.21 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.005514/0.1633, allocations: 3.45 MB / 369.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.1643, allocations: 0.6647 MB / 369.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005351/0.1649, allocations: 362.3 kB / 370.2 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002763/0.1677, allocations: 2.047 MB / 372.3 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.1677, allocations: 43.12 kB / 372.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.134e-06/0.1677, allocations: 0 / 372.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006664/0.1744, allocations: 2.824 MB / 375.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.1745, allocations: 89.67 kB / 375.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008066/0.1753, allocations: 0.6798 MB / 375.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/0.1754, allocations: 41.7 kB / 375.9 MB, free: 3.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.1756, allocations: 332.4 kB / 376.3 MB, free: 3.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.1758, allocations: 232.7 kB / 376.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002564/0.1761, allocations: 146.6 kB / 376.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1763, allocations: 390.7 kB / 377 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000568/0.1768, allocations: 376.6 kB / 377.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000709/0.1776, allocations: 0.5152 MB / 377.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.1787, allocations: 0.8599 MB / 378.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1788, allocations: 0 / 378.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.1879/0.3667, allocations: 1.164 MB / 379.9 MB, free: 54.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.3667, allocations: 6.875 kB / 379.9 MB, free: 54.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.3667, allocations: 4.312 kB / 379.9 MB, free: 54.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.368, allocations: 454.4 kB / 380.4 MB, free: 54.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007303/0.3688, allocations: 161.9 kB / 380.5 MB, free: 54.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.3701, allocations: 1.02 MB / 381.6 MB, free: 54.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007687/0.3709, allocations: 42.3 kB / 381.6 MB, free: 54.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.371, allocations: 35.44 kB / 381.6 MB, free: 54.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008382/0.3719, allocations: 0.533 MB / 382.2 MB, free: 54.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006922/0.3726, allocations: 0.5096 MB / 382.7 MB, free: 54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00121/0.3738, allocations: 0.8489 MB / 383.5 MB, free: 53.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.921e-06/0.3738, allocations: 2.812 kB / 383.5 MB, free: 53.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001945/0.3758, allocations: 1.097 MB / 384.6 MB, free: 53.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3758, allocations: 11.92 kB / 384.6 MB, free: 53.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3758, allocations: 4.75 kB / 384.6 MB, free: 53.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007431/0.3765, allocations: 308.2 kB / 384.9 MB, free: 53.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006405/0.3772, allocations: 167.3 kB / 385.1 MB, free: 53.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009102/0.3781, allocations: 0.9043 MB / 386 MB, free: 52.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006457/0.3788, allocations: 50.59 kB / 386.1 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/0.3789, allocations: 38.98 kB / 386.1 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.0002921/0.3792, allocations: 223.3 kB / 386.3 MB, free: 52.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.3793, allocations: 79.72 kB / 386.4 MB, free: 52.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.3813, allocations: 1.092 MB / 387.5 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.3813, allocations: 7.344 kB / 387.5 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3813, allocations: 3.938 kB / 387.5 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.3814, allocations: 8.938 kB / 387.5 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.3846, allocations: 2.006 MB / 389.5 MB, free: 50.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3846, allocations: 0 / 389.5 MB, free: 50.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000565/0.3852, allocations: 117.8 kB / 389.6 MB, free: 50.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/0.3864, allocations: 444.6 kB / 390.1 MB, free: 50.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-05/0.3865, allocations: 21.91 kB / 390.1 MB, free: 50.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.3876, allocations: 1.023 MB / 391.1 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3876, allocations: 3.969 kB / 391.1 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002257/0.3899, allocations: 1.601 MB / 392.7 MB, free: 49.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.3903, allocations: 244.1 kB / 392.9 MB, free: 49.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.3904, allocations: 13.31 kB / 393 MB, free: 49.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005661/0.391, allocations: 45.53 kB / 393 MB, free: 49.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.3911, allocations: 53.3 kB / 393.1 MB, free: 49.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.368e-05/0.3912, allocations: 25.39 kB / 393.1 MB, free: 49.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005441/0.3917, allocations: 485.8 kB / 393.6 MB, free: 48.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3917, allocations: 0 / 393.6 MB, free: 48.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001629/0.3934, allocations: 0.5787 MB / 394.1 MB, free: 48.89 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.0009733/0.3944, allocations: 485.3 kB / 394.6 MB, free: 48.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.3972, allocations: 1.569 MB / 396.2 MB, free: 48.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3973, allocations: 0 / 396.2 MB, free: 48.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008545/0.3981, allocations: 465.8 kB / 396.6 MB, free: 48.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.3997, allocations: 391.7 kB / 397 MB, free: 47.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.4026, allocations: 2.035 MB / 399 MB, free: 46.49 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.4029, allocations: 0.9921 MB / 400 MB, free: 45.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.4031, allocations: 84.31 kB / 400.1 MB, free: 45.62 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4032, allocations: 0 / 400.1 MB, free: 45.62 MB / 318.1 MB Notification: Performance of Templates: time 0.01882/0.422, allocations: 19.06 MB / 419.2 MB, free: 26.54 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/jenkins1/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