Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",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.001243/0.001243, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001093/0.001094, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.42/1.42, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 48.8 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1219, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00541/0.1273, allocations: 2.738 MB / 352.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.1295, allocations: 0.8255 MB / 353.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.1299, allocations: 7.938 kB / 353.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.1304, allocations: 71.47 kB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004804/0.1309, allocations: 142.9 kB / 353.9 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.1312, allocations: 79.89 kB / 354 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007774/0.132, allocations: 442.2 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.1323, allocations: 99.31 kB / 354.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.1327, allocations: 155.5 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.1331, allocations: 179.3 kB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.121e-05/0.1332, allocations: 35.94 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.081e-05/0.1333, allocations: 36 kB / 355 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.764e-05/0.1334, allocations: 75.69 kB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.1336, allocations: 191.2 kB / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000506/0.1341, allocations: 430.8 kB / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1341, allocations: 0 / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1342, allocations: 4 kB / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1342, allocations: 4 kB / 355.6 MB, free: 14.8 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001274/0.1354, allocations: 0.6871 MB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.1355, allocations: 8.031 kB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.1356, allocations: 75.19 kB / 356.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.919e-05/0.1357, allocations: 36.56 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.1362, allocations: 307.3 kB / 356.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.1363, allocations: 50.81 kB / 356.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.466e-05/0.1364, allocations: 28.36 kB / 356.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006423/0.137, allocations: 339.2 kB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.1371, allocations: 0 / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.1371, allocations: 12 kB / 357.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.1371, allocations: 8 kB / 357.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004738/0.1376, allocations: 210.1 kB / 357.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.1393, allocations: 0.8265 MB / 358.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000623/0.1399, allocations: 279.5 kB / 358.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.1402, allocations: 112.8 kB / 358.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.63e-05/0.1402, allocations: 4 kB / 358.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.1403, allocations: 42.59 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.1403, allocations: 0 / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001144/0.1414, allocations: 487.1 kB / 359.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.1416, allocations: 312.4 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.1419, allocations: 283 kB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.142, allocations: 37.7 kB / 359.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.1421, allocations: 172.6 kB / 359.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.1422, allocations: 110.5 kB / 360 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.1424, allocations: 69.69 kB / 360.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.1426, allocations: 342.8 kB / 360.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.1428, allocations: 95.89 kB / 360.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.1431, allocations: 208.6 kB / 360.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004522/0.1436, allocations: 263.5 kB / 361 MB, free: 9.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1436, allocations: 4 kB / 361 MB, free: 9.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006229/0.1442, allocations: 365.6 kB / 361.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.961e-05/0.1443, allocations: 33.69 kB / 361.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1443, allocations: 3.938 kB / 361.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.1445, allocations: 36.84 kB / 361.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000963/0.1455, allocations: 163.9 kB / 361.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003992/0.1495, allocations: 3.236 MB / 364.8 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.1497, allocations: 35.81 kB / 364.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.1498, allocations: 8 kB / 364.8 MB, free: 4.879 MB / 302.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.0001884/0.15, allocations: 165 kB / 365 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.15, allocations: 31.62 kB / 365 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.021e-05/0.1501, allocations: 39.17 kB / 365.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1501, allocations: 7.938 kB / 365.1 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1501, allocations: 3.938 kB / 365.1 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006924/0.1508, allocations: 0.6501 MB / 365.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004556/0.1513, allocations: 389.2 kB / 366.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.1513, allocations: 0 / 366.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.1525, allocations: 207.7 kB / 366.3 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.974e-05/0.1526, allocations: 24.84 kB / 366.3 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.1527, allocations: 8 kB / 366.3 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1999/0.3526, allocations: 3.038 MB / 369.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.3526, allocations: 1.094 kB / 369.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.3538, allocations: 0.5096 MB / 369.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002187/0.354, allocations: 134.1 kB / 370 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.388e-05/0.3541, allocations: 8.469 kB / 370 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.3544, allocations: 23.98 kB / 370.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3545, allocations: 25.94 kB / 370.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.3546, allocations: 7.422 kB / 370.1 MB, free: 24.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.3548, allocations: 202.1 kB / 370.3 MB, free: 24.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3548, allocations: 1.25 kB / 370.3 MB, free: 24.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005394/0.3554, allocations: 103.9 kB / 370.4 MB, free: 24.74 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.001337/0.3567, allocations: 1.059 MB / 371.4 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.3587, allocations: 0.5474 MB / 372 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3588, allocations: 2.812 kB / 372 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.3602, allocations: 406.6 kB / 372.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/0.3609, allocations: 90.3 kB / 372.5 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005105/0.366, allocations: 3.431 MB / 375.9 MB, free: 21.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3663, allocations: 0.78 MB / 376.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002154/0.3665, allocations: 36.7 kB / 376.7 MB, free: 21.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.3667, allocations: 110.2 kB / 376.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3667, allocations: 3.844 kB / 376.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03868/0.4053, allocations: 9.462 MB / 386.3 MB, free: 18.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.37, allocations: 6.047 kB / 386.3 MB, free: 18.4 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches