Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 106.2 kB / 18.25 MB, free: 4.785 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.001216/0.001216, allocations: 195.3 kB / 19.18 MB, free: 3.863 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.438/1.438, allocations: 205.1 MB / 225 MB, free: 12.31 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.00123/0.00123, allocations: 47.92 kB / 281.3 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1168, allocations: 46.63 MB / 327.9 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.006341/0.1231, allocations: 2.754 MB / 330.7 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.1255, allocations: 0.8577 MB / 331.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002368/0.1258, allocations: 4 kB / 331.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003757/0.1262, allocations: 75.41 kB / 331.6 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004678/0.1267, allocations: 130.9 kB / 331.8 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.1271, allocations: 91.81 kB / 331.8 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007338/0.1278, allocations: 434.4 kB / 332.3 MB, free: 120 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002835/0.1281, allocations: 99.34 kB / 332.4 MB, free: 20 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/0.1284, allocations: 159.4 kB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003673/0.1288, allocations: 183.2 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.769e-05/0.1289, allocations: 32 kB / 332.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.1291, allocations: 36 kB / 332.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.1292, allocations: 75.77 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.1295, allocations: 191.1 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000646/0.1302, allocations: 438.8 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.1302, allocations: 4 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1302, allocations: 3.938 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.1302, allocations: 0 / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001612/0.1319, allocations: 0.6795 MB / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1319, allocations: 11.89 kB / 334.2 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.1321, allocations: 44.47 kB / 334.2 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005207/0.1326, allocations: 299.4 kB / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.1328, allocations: 46.69 kB / 334.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.42e-05/0.1328, allocations: 24.38 kB / 334.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008249/0.1337, allocations: 317.6 kB / 334.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.1337, allocations: 0 / 334.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/0.1338, allocations: 12 kB / 334.9 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.1338, allocations: 8 kB / 334.9 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007468/0.1346, allocations: 205.6 kB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.1369, allocations: 0.8064 MB / 335.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009754/0.1379, allocations: 271 kB / 336.2 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/0.1383, allocations: 124.9 kB / 336.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.031e-05/0.1384, allocations: 7.984 kB / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.1384, allocations: 42.55 kB / 336.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 6.091e-06/0.1384, allocations: 96 / 336.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001861/0.1403, allocations: 487.1 kB / 336.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002079/0.1405, allocations: 312.4 kB / 337.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004983/0.1411, allocations: 279 kB / 337.4 MB, free: 10.67 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.486e-05/0.1411, allocations: 29.7 kB / 337.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.1413, allocations: 176.6 kB / 337.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.1415, allocations: 106.5 kB / 337.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.1417, allocations: 61.7 kB / 337.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.1419, allocations: 342.8 kB / 338.1 MB, free: 9.941 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.1423, allocations: 91.95 kB / 338.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005172/0.1428, allocations: 219.7 kB / 338.4 MB, free: 9.594 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008035/0.1436, allocations: 270.6 kB / 338.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1437, allocations: 0 / 338.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001164/0.1448, allocations: 360.8 kB / 339 MB, free: 8.945 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.755e-05/0.1449, allocations: 33.7 kB / 339 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.1449, allocations: 0 / 339 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002526/0.1452, allocations: 48.88 kB / 339.1 MB, free: 8.855 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.1469, allocations: 155.8 kB / 339.2 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006248/0.1532, allocations: 3.244 MB / 342.5 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005763/0.1538, allocations: 31.78 kB / 342.5 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.1539, allocations: 12 kB / 342.5 MB, free: 5.141 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000321/0.1542, allocations: 157.7 kB / 342.7 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.1544, allocations: 31.72 kB / 342.7 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.1545, allocations: 35.08 kB / 342.8 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1545, allocations: 4 kB / 342.8 MB, free: 4.906 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1545, allocations: 0 / 342.8 MB, free: 4.906 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001136/0.1556, allocations: 0.6549 MB / 343.4 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006814/0.1563, allocations: 389.1 kB / 343.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1564, allocations: 4 kB / 343.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002284/0.1587, allocations: 203.7 kB / 344 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/0.1589, allocations: 32.78 kB / 344 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.1589, allocations: 4 kB / 344 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005508/0.1644, allocations: 3.041 MB / 347.1 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1645, allocations: 0 / 347.1 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.1661, allocations: 0.5197 MB / 347.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.1663, allocations: 136.7 kB / 347.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.933e-05/0.1664, allocations: 8 kB / 347.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.1669, allocations: 15.98 kB / 347.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.167, allocations: 24.2 kB / 347.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.483e-05/0.1671, allocations: 12 kB / 347.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003406/0.1674, allocations: 198 kB / 348 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1674, allocations: 0 / 348 MB, free: 15.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007475/0.1682, allocations: 103.9 kB / 348.1 MB, free: 15.1 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002207/0.1684, allocations: 111.2 kB / 348.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002633/0.1711, allocations: 0.5566 MB / 348.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1711, allocations: 0 / 348.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002326/0.1734, allocations: 394.4 kB / 349.1 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.1745, allocations: 95.55 kB / 349.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003159/0.1777, allocations: 0.8917 MB / 350.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.1782, allocations: 0.7723 MB / 350.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.1784, allocations: 27.44 kB / 350.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.473e-06/0.1784, allocations: 0 / 350.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01459/0.193, allocations: 6.796 MB / 357.7 MB, free: 5.367 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches