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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000796/0.000796, allocations: 87.62 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004026/0.004026, allocations: 159.4 kB / 24.69 MB, free: 9.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8979/0.8979, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 298.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.000311/0.0003129, allocations: 6.281 kB / 298.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00292/0.003233, allocations: 2.559 MB / 301 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.004398, allocations: 0.811 MB / 301.8 MB, free: 144 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.004555, allocations: 11.88 kB / 301.8 MB, free: 132 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.004782, allocations: 67.48 kB / 301.9 MB, free: 64 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1305/0.1353, allocations: 144.5 kB / 302 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002648/0.1356, allocations: 87.72 kB / 302.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004216/0.136, allocations: 455.3 kB / 302.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.1361, allocations: 61.53 kB / 302.6 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.1363, allocations: 248.2 kB / 302.8 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.1365, allocations: 129.8 kB / 303 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.1365, allocations: 34.09 kB / 303 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.691e-05/0.1366, allocations: 35.06 kB / 303 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.189e-05/0.1366, allocations: 80.34 kB / 303.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.1368, allocations: 134.7 kB / 303.3 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004569/0.1372, allocations: 462.7 kB / 303.7 MB, free: 12.99 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1372, allocations: 1.75 kB / 303.7 MB, free: 12.99 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1372, allocations: 0 / 303.7 MB, free: 12.99 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1372, allocations: 1.25 kB / 303.7 MB, free: 12.99 MB / 282.7 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.0008083/0.138, allocations: 0.6079 MB / 304.3 MB, free: 12.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1381, allocations: 18.08 kB / 304.3 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.484e-05/0.1382, allocations: 75.16 kB / 304.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.437e-05/0.1382, allocations: 45.45 kB / 304.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.1386, allocations: 252.7 kB / 304.7 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.813e-05/0.1387, allocations: 102.6 kB / 304.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.1387, allocations: 23.84 kB / 304.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.1391, allocations: 0.6743 MB / 305.5 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1391, allocations: 2.578 kB / 305.5 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.1391, allocations: 14.69 kB / 305.5 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.1391, allocations: 9.703 kB / 305.5 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.1394, allocations: 215 kB / 305.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000917/0.1404, allocations: 0.715 MB / 306.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.1407, allocations: 252.8 kB / 306.7 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.1408, allocations: 109 kB / 306.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.1409, allocations: 3.594 kB / 306.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.1409, allocations: 42.83 kB / 306.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.203e-06/0.1409, allocations: 0 / 306.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006789/0.1416, allocations: 406.9 kB / 307.2 MB, free: 10.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.1416, allocations: 317.3 kB / 307.6 MB, free: 10.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.1418, allocations: 283.1 kB / 307.8 MB, free: 10.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.1418, allocations: 32.42 kB / 307.9 MB, free: 10.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.436e-05/0.1419, allocations: 176.7 kB / 308 MB, free: 10.12 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.293e-05/0.142, allocations: 110.4 kB / 308.1 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.337e-05/0.142, allocations: 68.72 kB / 308.2 MB, free: 9.992 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.095e-05/0.1421, allocations: 348.1 kB / 308.5 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.1422, allocations: 113.9 kB / 308.7 MB, free: 9.602 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.1424, allocations: 0.4988 MB / 309.2 MB, free: 9.086 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002759/0.1427, allocations: 268.4 kB / 309.4 MB, free: 8.93 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1427, allocations: 1.188 kB / 309.4 MB, free: 8.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004054/0.1431, allocations: 385.8 kB / 309.8 MB, free: 8.723 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.1432, allocations: 36.73 kB / 309.8 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1432, allocations: 1.062 kB / 309.8 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001204/0.1433, allocations: 41.3 kB / 309.9 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.1438, allocations: 163.8 kB / 310 MB, free: 8.664 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.1455, allocations: 3.003 MB / 313 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.1456, allocations: 36.73 kB / 313.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.1456, allocations: 8.594 kB / 313.1 MB, free: 5.922 MB / 282.7 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.0001056/0.1458, allocations: 161.7 kB / 313.2 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.1458, allocations: 38.2 kB / 313.3 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.603e-05/0.1458, allocations: 38.86 kB / 313.3 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1458, allocations: 3.672 kB / 313.3 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1458, allocations: 1.094 kB / 313.3 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003667/0.1462, allocations: 0.6595 MB / 314 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.1465, allocations: 313.9 kB / 314.3 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1465, allocations: 0 / 314.3 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006402/0.1471, allocations: 210.8 kB / 314.5 MB, free: 4.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-05/0.1472, allocations: 29.11 kB / 314.5 MB, free: 4.863 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.1472, allocations: 7.156 kB / 314.5 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.1485, allocations: 2.818 MB / 317.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1485, allocations: 1.812 kB / 317.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004857/0.149, allocations: 0.5148 MB / 317.9 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.416e-05/0.1491, allocations: 59.86 kB / 317.9 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.1491, allocations: 7.547 kB / 317.9 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.1493, allocations: 19.8 kB / 317.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.793e-05/0.1493, allocations: 23.97 kB / 318 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1493, allocations: 10.67 kB / 318 MB, free: 1.871 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001192/0.1495, allocations: 201.3 kB / 318.2 MB, free: 1.754 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1495, allocations: 1.375 kB / 318.2 MB, free: 1.754 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002836/0.1497, allocations: 113 kB / 318.3 MB, free: 1.73 MB / 282.7 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.0006444/0.1504, allocations: 1.057 MB / 319.3 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008769/0.1513, allocations: 0.5381 MB / 319.9 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1513, allocations: 1.375 kB / 319.9 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006722/0.1519, allocations: 395.9 kB / 320.3 MB, free: 476 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.1523, allocations: 95.48 kB / 320.4 MB, free: 444 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00375/0.156, allocations: 3.416 MB / 323.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001579/0.1562, allocations: 172.4 kB / 323.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.1563, allocations: 36.05 kB / 324 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.1565, allocations: 111.4 kB / 324.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1565, allocations: 0 / 324.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.1838, allocations: 10.97 MB / 335.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/7.855, allocations: 4 kB / 335.1 MB, free: 8.27 MB / 298.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.561310591176152]