Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 98.52 kB / 17.58 MB, free: 5.418 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.002224/0.002224, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.431/2.431, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001702/0.001702, allocations: 47.92 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1332, allocations: 46.64 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.008629/0.1418, allocations: 2.847 MB / 330.2 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003857/0.1458, allocations: 1.17 MB / 331.4 MB, free: 340 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007297/0.1465, allocations: 7.938 kB / 331.4 MB, free: 332 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.1479, allocations: 187.1 kB / 331.6 MB, free: 144 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001285/0.1492, allocations: 206.8 kB / 331.8 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008552/0.1501, allocations: 143.6 kB / 331.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.1513, allocations: 454 kB / 332.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.1517, allocations: 107.8 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005518/0.1522, allocations: 179.3 kB / 332.7 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000531/0.1528, allocations: 207.2 kB / 332.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.1529, allocations: 28 kB / 332.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003274/0.1533, allocations: 67.97 kB / 332.9 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.1535, allocations: 87.69 kB / 333 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003997/0.1539, allocations: 195 kB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009226/0.1548, allocations: 474.4 kB / 333.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1548, allocations: 0 / 333.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.869e-06/0.1549, allocations: 7.938 kB / 333.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.365e-05/0.1549, allocations: 3.938 kB / 333.7 MB, free: 14.02 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.002025/0.1569, allocations: 0.7007 MB / 334.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.157, allocations: 8.031 kB / 334.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001764/0.1572, allocations: 63.17 kB / 334.5 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/0.1574, allocations: 48.38 kB / 334.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008528/0.1583, allocations: 334.7 kB / 334.8 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.1583, allocations: 20.81 kB / 334.9 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-05/0.1584, allocations: 27.84 kB / 334.9 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008734/0.1593, allocations: 301.5 kB / 335.2 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.1593, allocations: 0 / 335.2 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.068e-05/0.1594, allocations: 12 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.1594, allocations: 7.984 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005312/0.16, allocations: 145.7 kB / 335.3 MB, free: 12.23 MB / 286.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.002499/0.1625, allocations: 0.8515 MB / 336.2 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007174/0.1632, allocations: 187.1 kB / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/0.1635, allocations: 80.83 kB / 336.5 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.813e-05/0.1636, allocations: 3.938 kB / 336.5 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000629/0.1643, allocations: 135.3 kB / 336.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 3.547e-06/0.1643, allocations: 0 / 336.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001539/0.1658, allocations: 406.9 kB / 337 MB, free: 10.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002359/0.1661, allocations: 320.4 kB / 337.3 MB, free: 10.08 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008766/0.167, allocations: 425.7 kB / 337.7 MB, free: 9.656 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.167, allocations: 29.7 kB / 337.8 MB, free: 9.621 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/0.1674, allocations: 212.2 kB / 338 MB, free: 9.406 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.1675, allocations: 78.89 kB / 338 MB, free: 9.328 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.1677, allocations: 61.7 kB / 338.1 MB, free: 9.262 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000312/0.1681, allocations: 350.8 kB / 338.4 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.1683, allocations: 59.97 kB / 338.5 MB, free: 8.852 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.1688, allocations: 175.9 kB / 338.7 MB, free: 8.637 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004958/0.1693, allocations: 179.2 kB / 338.8 MB, free: 8.449 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1693, allocations: 0 / 338.8 MB, free: 8.449 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009552/0.1703, allocations: 274 kB / 339.1 MB, free: 8.172 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.1703, allocations: 4 kB / 339.1 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1703, allocations: 4 kB / 339.1 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.1705, allocations: 32.84 kB / 339.2 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/0.1709, allocations: 51.91 kB / 339.2 MB, free: 8.078 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002559/0.1735, allocations: 1.582 MB / 340.8 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/0.174, allocations: 23.88 kB / 340.8 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.174, allocations: 8 kB / 340.8 MB, free: 6.32 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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003691/0.1744, allocations: 165.9 kB / 341 MB, free: 6.148 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.1746, allocations: 47.41 kB / 341 MB, free: 6.102 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.1747, allocations: 39.59 kB / 341.1 MB, free: 6.059 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1748, allocations: 4 kB / 341.1 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1748, allocations: 4 kB / 341.1 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009561/0.1757, allocations: 0.5834 MB / 341.7 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001753/0.1775, allocations: 0.7039 MB / 342.4 MB, free: 4.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.1776, allocations: 4 kB / 342.4 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004666/0.178, allocations: 43.92 kB / 342.4 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.1781, allocations: 7.938 kB / 342.4 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.1781, allocations: 3.984 kB / 342.4 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/0.1781, allocations: 8 kB / 342.4 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1781, allocations: 0 / 342.4 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.1792, allocations: 402.7 kB / 342.8 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003294/0.1796, allocations: 136.5 kB / 343 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.1797, allocations: 8 kB / 343 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.1801, allocations: 8 kB / 343 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.616e-05/0.1802, allocations: 19.91 kB / 343 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.1803, allocations: 12.06 kB / 343 MB, free: 3.922 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006391/0.1809, allocations: 315.1 kB / 343.3 MB, free: 3.617 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1809, allocations: 0 / 343.3 MB, free: 3.617 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000851/0.1818, allocations: 95.88 kB / 343.4 MB, free: 3.523 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003195/0.185, allocations: 1.258 MB / 344.7 MB, free: 2.254 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.1862, allocations: 310.4 kB / 345 MB, free: 1.938 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.1862, allocations: 3.938 kB / 345 MB, free: 1.934 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.1865, allocations: 79.91 kB / 345 MB, free: 1.855 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.1877, allocations: 101.6 kB / 345.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008457/0.1961, allocations: 3.407 MB / 348.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008262/0.197, allocations: 0.796 MB / 349.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003415/0.1974, allocations: 46.94 kB / 349.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.1977, allocations: 127.4 kB / 349.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of SimCode: time 1.223e-06/0.1977, allocations: 0 / 349.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05108/0.2488, allocations: 9.982 MB / 359.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.92/18.17, allocations: 19.88 kB / 359.5 MB, free: 3.176 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches