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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001789/0.001789, allocations: 119 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 189.2 kB / 21.39 MB, free: 1.672 MB / 14.72 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 1.328/1.328, allocations: 207.6 MB / 231.8 MB, free: 4.105 MB / 174.1 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.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_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: 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.001655/0.001655, allocations: 59.91 kB / 342.2 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09136/0.09301, allocations: 49.11 MB / 391.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003984/0.097, allocations: 2.775 MB / 394.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.0983, allocations: 0.873 MB / 395 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.09842, allocations: 3.938 kB / 395 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.09868, allocations: 75.39 kB / 395.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.09895, allocations: 138.9 kB / 395.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.09916, allocations: 91.81 kB / 395.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.09966, allocations: 434.4 kB / 395.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.09982, allocations: 67.23 kB / 395.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.09999, allocations: 155.5 kB / 395.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.1002, allocations: 187.2 kB / 396.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.463e-05/0.1003, allocations: 36 kB / 396.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.121e-05/0.1003, allocations: 36 kB / 396.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.226e-05/0.1004, allocations: 75.75 kB / 396.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.1006, allocations: 191.1 kB / 396.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004599/0.101, allocations: 446.2 kB / 396.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1011, allocations: 0 / 396.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1011, allocations: 0 / 396.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1011, allocations: 0 / 396.9 MB, free: 3.191 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001122/0.1022, allocations: 0.6909 MB / 397.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1022, allocations: 12.03 kB / 397.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.51e-05/0.1023, allocations: 67.23 kB / 397.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.773e-05/0.1024, allocations: 44.7 kB / 397.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.1028, allocations: 307.6 kB / 398 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.188e-05/0.1029, allocations: 50.83 kB / 398.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.103, allocations: 24.38 kB / 398.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005326/0.1035, allocations: 343.2 kB / 398.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1035, allocations: 0 / 398.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.1035, allocations: 15.94 kB / 398.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1036, allocations: 7.984 kB / 398.4 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004253/0.104, allocations: 210.1 kB / 398.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.1054, allocations: 0.8189 MB / 399.5 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.1059, allocations: 255 kB / 399.7 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.1061, allocations: 104.8 kB / 399.8 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.1062, allocations: 4 kB / 399.8 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.1062, allocations: 38.56 kB / 399.9 MB, free: 8 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.024e-06/0.1062, allocations: 0 / 399.9 MB, free: 8 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001047/0.1072, allocations: 487.4 kB / 400.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/0.1074, allocations: 316.4 kB / 400.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/0.1077, allocations: 290.9 kB / 400.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.1078, allocations: 29.7 kB / 401 MB, free: 14.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1079, allocations: 176.9 kB / 401.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.108, allocations: 115 kB / 401.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.1081, allocations: 65.64 kB / 401.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1083, allocations: 346.7 kB / 401.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.1085, allocations: 87.97 kB / 401.7 MB, free: 14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.1088, allocations: 220.2 kB / 401.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/0.1093, allocations: 258.7 kB / 402.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1093, allocations: 0 / 402.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006219/0.1099, allocations: 364.9 kB / 402.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.1099, allocations: 37.61 kB / 402.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1099, allocations: 0 / 402.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001487/0.1101, allocations: 40.84 kB / 402.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009699/0.1111, allocations: 163.8 kB / 402.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003831/0.1149, allocations: 3.236 MB / 406 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003074/0.1152, allocations: 35.94 kB / 406.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.1152, allocations: 8.188 kB / 406.1 MB, free: 9.297 MB / 334.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.0002071/0.1154, allocations: 153.8 kB / 406.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-05/0.1155, allocations: 31.81 kB / 406.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.786e-05/0.1156, allocations: 39.08 kB / 406.3 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.1156, allocations: 8 kB / 406.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1156, allocations: 7.875 kB / 406.3 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007045/0.1163, allocations: 0.655 MB / 407 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004757/0.1168, allocations: 389.2 kB / 407.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.1168, allocations: 3.984 kB / 407.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.1181, allocations: 207.7 kB / 407.5 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-05/0.1182, allocations: 24.84 kB / 407.6 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.1182, allocations: 8 kB / 407.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003606/0.1218, allocations: 3.037 MB / 410.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1218, allocations: 0 / 410.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009698/0.1228, allocations: 0.5159 MB / 411.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.1229, allocations: 140.9 kB / 411.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.123, allocations: 12 kB / 411.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.1232, allocations: 19.92 kB / 411.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.1233, allocations: 19.97 kB / 411.3 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.1233, allocations: 19.98 kB / 411.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002128/0.1235, allocations: 198 kB / 411.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1235, allocations: 0 / 411.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004278/0.124, allocations: 111.9 kB / 411.6 MB, free: 3.234 MB / 334.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.001214/0.1252, allocations: 1.049 MB / 412.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.1267, allocations: 0.5221 MB / 413.2 MB, free: 1.609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1267, allocations: 0 / 413.2 MB, free: 1.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.1281, allocations: 390.5 kB / 413.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.1286, allocations: 92.47 kB / 413.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00478/0.1334, allocations: 3.416 MB / 417.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.1338, allocations: 0.7762 MB / 417.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.134, allocations: 34.97 kB / 417.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.1341, allocations: 107.4 kB / 418 MB, free: 12.64 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.1341, allocations: 3.938 kB / 418 MB, free: 12.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05206/0.1862, allocations: 9.686 MB / 427.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.18, allocations: 8.062 kB / 427.7 MB, free: 2.887 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.578937221318483]