Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001186/0.001186, allocations: 95.08 kB / 16.3 MB, free: 6.457 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.001997/0.001997, allocations: 184.5 kB / 17.19 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.000273, allocations: 6.188 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08405/0.08434, allocations: 50.42 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0128/0.09717, allocations: 13.86 MB / 365 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008073/0.1053, allocations: 6.198 MB / 371.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006714/0.106, allocations: 27.75 kB / 371.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007399/0.1067, allocations: 294.5 kB / 371.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001975/0.1087, allocations: 0.8763 MB / 372.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003741/0.1125, allocations: 1.385 MB / 373.8 MB, free: 5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0023/0.1148, allocations: 1.218 MB / 375 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008681/0.1157, allocations: 0.4939 MB / 375.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.1168, allocations: 0.6192 MB / 376.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008392/0.1177, allocations: 0.5138 MB / 376.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.1178, allocations: 40 kB / 376.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001998/0.1198, allocations: 1.092 MB / 377.7 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.1201, allocations: 247.3 kB / 378 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.1203, allocations: 173.3 kB / 378.1 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.1218, allocations: 1.29 MB / 379.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.1219, allocations: 0 / 379.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1219, allocations: 0 / 379.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1219, allocations: 0 / 379.4 MB, free: 15.29 MB / 318.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.002204/0.1241, allocations: 1.114 MB / 380.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.1241, allocations: 8.031 kB / 380.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.1244, allocations: 91.06 kB / 380.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009445/0.1254, allocations: 0.5817 MB / 381.2 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.1255, allocations: 116.6 kB / 381.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-05/0.1256, allocations: 51.98 kB / 381.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.1269, allocations: 0.8884 MB / 382.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.127, allocations: 0 / 382.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.653e-05/0.1271, allocations: 23.98 kB / 382.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-05/0.1271, allocations: 57.28 kB / 382.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.1285, allocations: 0.8365 MB / 383.2 MB, free: 11.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.005299/0.1338, allocations: 3.478 MB / 386.7 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00094/0.1347, allocations: 0.663 MB / 387.3 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002635/0.1374, allocations: 2.043 MB / 389.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.1374, allocations: 51.08 kB / 389.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.863e-06/0.1374, allocations: 4 kB / 389.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.00645/0.1439, allocations: 2.848 MB / 392.3 MB, free: 1.848 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.1439, allocations: 89.61 kB / 392.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007879/0.1447, allocations: 0.6759 MB / 393.1 MB, free: 1.059 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.247e-05/0.1448, allocations: 41.7 kB / 393.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/0.145, allocations: 328.5 kB / 393.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.1452, allocations: 228.7 kB / 393.6 MB, free: 472 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.1453, allocations: 23.94 kB / 393.7 MB, free: 448 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1455, allocations: 390.7 kB / 394 MB, free: 48 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005775/0.146, allocations: 353.8 kB / 394.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006513/0.1467, allocations: 0.5074 MB / 394.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006291/0.1473, allocations: 407 kB / 395.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1474, allocations: 0 / 395.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001851/0.1492, allocations: 1.142 MB / 396.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005479/0.1498, allocations: 1.66 MB / 398.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.639e-06/0.1498, allocations: 4 kB / 398.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.151, allocations: 456.4 kB / 398.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006504/0.1517, allocations: 155.8 kB / 398.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.1529, allocations: 1.013 MB / 399.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006087/0.1535, allocations: 43.89 kB / 399.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.358e-05/0.1536, allocations: 35.98 kB / 399.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.1536, allocations: 4 kB / 399.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00164/0.1552, allocations: 1.004 MB / 400.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1552, allocations: 4 kB / 400.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006629/0.1559, allocations: 320.9 kB / 401.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/0.1566, allocations: 167.8 kB / 401.3 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009022/0.1575, allocations: 0.9035 MB / 402.2 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005453/0.158, allocations: 43.97 kB / 402.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-05/0.1581, allocations: 35.92 kB / 402.3 MB, free: 7.57 MB / 334.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 (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 initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004128/0.1585, allocations: 332.9 kB / 402.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.1587, allocations: 79.06 kB / 402.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.1606, allocations: 1.091 MB / 403.7 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.1606, allocations: 8 kB / 403.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1606, allocations: 0 / 403.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.1606, allocations: 3.984 kB / 403.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.1635, allocations: 2.013 MB / 405.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1635, allocations: 96 / 405.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005731/0.1641, allocations: 115.9 kB / 405.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.1653, allocations: 452.4 kB / 406.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.419e-05/0.1654, allocations: 23.94 kB / 406.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.1665, allocations: 1.028 MB / 407.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1665, allocations: 4 kB / 407.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/0.1687, allocations: 1.588 MB / 409 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/0.1691, allocations: 252 kB / 409.2 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.1693, allocations: 16 kB / 409.2 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000557/0.1698, allocations: 51.89 kB / 409.3 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.17, allocations: 52.58 kB / 409.3 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.406e-05/0.17, allocations: 35.97 kB / 409.4 MB, free: 296 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005374/0.1706, allocations: 479 kB / 409.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1706, allocations: 0 / 409.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001402/0.172, allocations: 0.574 MB / 410.4 MB, free: 15.25 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008752/0.1729, allocations: 479.4 kB / 410.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002564/0.1755, allocations: 1.372 MB / 412.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1755, allocations: 1.812 kB / 412.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008753/0.1764, allocations: 467.5 kB / 412.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.1778, allocations: 348.2 kB / 413.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/0.1809, allocations: 2.028 MB / 415.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.1814, allocations: 1.023 MB / 416.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009856/0.1824, allocations: 306.5 kB / 416.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.1826, allocations: 71.42 kB / 416.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1826, allocations: 0 / 416.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of Templates: time 0.1745/0.3571, allocations: 21.15 MB / 437.6 MB, free: 64.23 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches